Team:Tsinghua/leftbar
From 2010.igem.org
(Difference between revisions)
Line 7: | Line 7: | ||
Until Jamboree</div> | Until Jamboree</div> | ||
<div class="countback"> | <div class="countback"> | ||
- | <p class="countstatic"><span class="countdyna" id=" | + | <p class="countstatic" id="pday"> <span class="countdyna" id="sday"></span> days</p> |
- | <p class="countstatic"><span class="countdyna" | + | <p class="countstatic" id="phour"><span class="countdyna" id="shour"></span> hours</p> |
- | <p class="countstatic"><span class="countdyna" id=" | + | <p class="countstatic" id="pmin"> <span class="countdyna" id="smin"></span> minutes</p> |
- | <p class="countstatic"><span class="countdyna" id=" | + | <p class="countstatic" id="psec"> <span class="countdyna" id="ssec"></span> seconds</p> |
</div> | </div> | ||
</div> | </div> | ||
Line 30: | Line 30: | ||
snum = Math.round(seconds); | snum = Math.round(seconds); | ||
- | document.getElementById(" | + | days=-1; |
- | document.getElementById(" | + | dnum=-1; |
- | document.getElementById(" | + | if(days>0) |
- | document.getElementById(" | + | { |
- | + | document.getElementById("sday").innerHTML = String(dnum); | |
+ | document.getElementById("shour").innerHTML = hnum; | ||
+ | document.getElementById("smin").innerHTML = mnum; | ||
+ | document.getElementById("ssec").innerHTML = snum; | ||
} | } | ||
+ | else if(dnum>=-3) | ||
+ | { | ||
+ | daytext = new Array("First", "Second", "Third", "Fourth", "Fifth"); | ||
+ | document.getElementById("counttitle").innerHTML = "Jamboree Time"; | ||
+ | document.getElementById("sday").innerHTML = daytext[0-dnum]; | ||
+ | document.getElementById("phour").innerText = ""; | ||
+ | document.getElementById("pmin").innerText = ""; | ||
+ | document.getElementById("shour").innerHTML = "Tsinghua Bioers"; | ||
+ | document.getElementById("smin").innerHTML = "Cheer up!"; | ||
+ | document.getElementById("smin").style.display = "none"; | ||
+ | document.getElementById("psec").style.display = "none"; | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | document.getElementById("counttitle").innerHTML = "iGEM 2010"; | ||
+ | document.getElementById("phour").innerText = ""; | ||
+ | document.getElementById("pmin").innerText = ""; | ||
+ | document.getElementById("psec").innerText = ""; | ||
+ | document.getElementById("shour").innerHTML = "Tsinghua Bioers"; | ||
+ | document.getElementById("smin").innerHTML = "are"; | ||
+ | document.getElementById("ssec").innerHTML = "the BEST!"; | ||
+ | } | ||
+ | |||
var getd; | var getd; | ||
if(getd==null) | if(getd==null) | ||
Line 43: | Line 69: | ||
</script> | </script> | ||
+ | |||
</div> | </div> | ||
Revision as of 16:12, 16 October 2010