Team:Tsinghua/leftbar
From 2010.igem.org
(Difference between revisions)
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); | ||
- | + | ||
document.getElementById("pday").InnerHTML=dnum + " days"; | document.getElementById("pday").InnerHTML=dnum + " days"; | ||
- | document.getElementById("phour"). | + | document.getElementById("phour").Innertext=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"; | ||
- | + | ||
} | } | ||
var getd; | var getd; | ||
Line 41: | Line 41: | ||
getd = setInterval("createtime()",250); | getd = setInterval("createtime()",250); | ||
} | } | ||
- | + | ||
</script> | </script> | ||
</div> | </div> |
Revision as of 08:37, 4 October 2010