Team:Warsaw/Calendar-Main/EmptyDays
From 2008.igem.org
(Difference between revisions)
Line 72: | Line 72: | ||
eday=eday.replace("y","yday"); | eday=eday.replace("y","yday"); | ||
- | function next_empty(day) | + | function next_empty(day,end_day) |
{ | { | ||
Line 91: | Line 91: | ||
ans=req.responseText; | ans=req.responseText; | ||
if(ans.search(eday)>0) document.getElementById("results").innerHTML=document.getElementById("results").innerHTML+'<li><a href="'+adresbase+nday+'">'+nday+"</a></li>"; | if(ans.search(eday)>0) document.getElementById("results").innerHTML=document.getElementById("results").innerHTML+'<li><a href="'+adresbase+nday+'">'+nday+"</a></li>"; | ||
- | + | if (day==end_day) { | |
- | next_empty(nday); | + | document.getElementById("progress").innerHTML="Done"; |
+ | return true; | ||
+ | } | ||
+ | else { next_empty(nday,end_day); } | ||
} | } | ||
Line 103: | Line 106: | ||
} | } | ||
- | next_empty("1_May_2008"); | + | next_empty("1_May_2008","5_May_2008"); |
/* ]]> */</script> | /* ]]> */</script> |
Revision as of 16:42, 10 October 2008
Empty entries locator
|