Team:Tsinghua/leftbar
From 2010.igem.org
(Difference between revisions)
Line 7: | Line 7: | ||
Until Jamboree</div> | Until Jamboree</div> | ||
<div style="margin: 8px; background: #2A3"> | <div style="margin: 8px; background: #2A3"> | ||
- | <p style="color: white; size: 18pt; font-weight: bold; text-indent: 3pc" id="pday"></p> | + | <p style="color: white; size: 18pt; font-weight: bold; text-indent: 3pc" id="pday"> </p> |
- | <p style="color: white; size: 18pt; font-weight: bold; text-indent: 3pc" id="phour"></p> | + | <p style="color: white; size: 18pt; font-weight: bold; text-indent: 3pc" id="phour"> </p> |
- | <p style="color: white; size: 18pt; font-weight: bold; text-indent: 3pc" id="pmin"></p> | + | <p style="color: white; size: 18pt; font-weight: bold; text-indent: 3pc" id="pmin"> </p> |
- | <p style="color: white; size: 18pt; font-weight: bold; text-indent: 3pc" id="psec"></p> | + | <p style="color: white; size: 18pt; font-weight: bold; text-indent: 3pc" id="psec"> </p> |
</div> | </div> | ||
</div> | </div> | ||
Line 29: | Line 29: | ||
seconds = (grt - now) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum); | seconds = (grt - now) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum); | ||
snum = Math.round(seconds); | snum = Math.round(seconds); | ||
- | + | alert("snum"); | |
document.getElementById("pday").InnerHTML=dnum + " days"; | document.getElementById("pday").InnerHTML=dnum + " days"; | ||
document.getElementById("phour").InnerHTML=hnum + " hours"; | document.getElementById("phour").InnerHTML=hnum + " hours"; | ||
document.getElementById("pmin").InnerHTML=mnum + " minutes"; | document.getElementById("pmin").InnerHTML=mnum + " minutes"; | ||
document.getElementById("psec").InnerHTML=snum + " seconds"; | document.getElementById("psec").InnerHTML=snum + " seconds"; | ||
+ | alert("s"); | ||
} | } | ||
var getd; | var getd; | ||
Line 40: | Line 41: | ||
getd = setInterval("createtime()",250); | getd = setInterval("createtime()",250); | ||
} | } | ||
+ | alert("first"); | ||
</script> | </script> | ||
</div> | </div> |
Revision as of 08:36, 4 October 2010