Team:Tsinghua/leftbar
From 2010.igem.org
(Difference between revisions)
Line 55: | Line 55: | ||
showtext = showtext + String(hnum) + " Hours "; | showtext = showtext + String(hnum) + " Hours "; | ||
} | } | ||
- | if(showtext.length > | + | if(showtext.length > 15) |
{ | { | ||
document.getElementById("pretimes").style.display = "block"; | document.getElementById("pretimes").style.display = "block"; | ||
Line 69: | Line 69: | ||
showtext = showtext + String(mnum) + " Minutes "; | showtext = showtext + String(mnum) + " Minutes "; | ||
} | } | ||
+ | if(showtext.length > 25) | ||
+ | { | ||
+ | document.getElementById("pretimes").style.display = "block"; | ||
+ | document.getElementById("pretimes").innerHTML = showtext; | ||
+ | showtext = ""; | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | document.getElementById("pretimes").style.display = "none"; | ||
+ | } | ||
+ | |||
if(snum>0) | if(snum>0) | ||
{ | { |
Revision as of 05:38, 19 July 2010
Until the Jamboree:
...