Skip to content
Snippets Groups Projects
Commit 14674924 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

skip over featured huskers we dont have photos for

parent d59ddc82
No related branches found
No related tags found
No related merge requests found
......@@ -56,11 +56,16 @@ function show(type){
//put in the pins for featured huskers
for(counter=0;counter<counterMax;counter++){
per = husker[counter];
if(counter !== 4 && counter !== 6 && counter !== 20 && counter !== 29 && counter !== 33 && counter !== 36)
placePin(per.lng,per.lat,per.username,per.location,per.displayname,per.title,per.comment,per.linkname);
else{}
}
//auto fill the globe with featured huskers
counter=Math.floor(Math.random()*counterMax);
if(counter == 4 || counter == 6 || counter == 20 || counter == 29 || counter == 33 || counter == 36)
counter++;
else{}
setTimeout("displayPeople('featured');",1000);
} else {
//error
......@@ -95,7 +100,10 @@ function displayPeople(type){
}
openLocation(p.lng,p.lat,p.username,p.location,p.displayname,p.title,p.comment,p.linkname);
if(counter !== 3 && counter !== 5 && counter !== 19 && counter !== 28 && counter !== 32 && counter !== 35)
counter++;
else
counter=counter+2;
if(counter>=counterMax)
counter=0;
setT=setTimeout("displayPeople('"+type+"')",5000);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment