Team:Tsinghua/leftbar

From 2010.igem.org

(Difference between revisions)
Line 40: Line 40:
hours = (grt - now) / 1000 / 60 / 60 - (24 * dnum);
hours = (grt - now) / 1000 / 60 / 60 - (24 * dnum);
hnum = Math.floor(hours);
hnum = Math.floor(hours);
-
if(String(hnum).length ==1 ){hnum = "0" + hnum;}
+
 
minutes = (grt - now) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
minutes = (grt - now) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
mnum = Math.floor(minutes);
mnum = Math.floor(minutes);
-
if(String(mnum).length ==1 ){mnum = "0" + mnum;}
+
 
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);
-
if(String(snum).length ==1 ){snum = "0" + snum;}
 
   
   
var showtext = " "
var showtext = " "

Revision as of 05:56, 19 July 2010

Visitor Locations

Locations of visitors to this page

Follow us on


Until the Jamboree