Team:VT-ENSIMAG/Notebook
From 2010.igem.org
(Difference between revisions)
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <div style="position:relative; top:0px; left:15px"> | ||
+ | <html> | ||
+ | |||
+ | <script> | ||
+ | |||
+ | /* | ||
+ | Count up from any date script- | ||
+ | By JavaScript Kit (www.javascriptkit.com) | ||
+ | Over 200+ free scripts here! | ||
+ | */ | ||
+ | |||
+ | var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") | ||
+ | |||
+ | function countup(yr,m,d){ | ||
+ | var today=new Date() | ||
+ | var todayy=today.getYear() | ||
+ | if (todayy < 1000) | ||
+ | todayy+=1900 | ||
+ | var todaym=today.getMonth() | ||
+ | var todayd=today.getDate() | ||
+ | var todaystring=montharray[todaym]+" "+todayd+", "+todayy | ||
+ | var paststring=montharray[m-1]+" "+d+", "+yr | ||
+ | var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1) | ||
+ | difference+=" days" | ||
+ | document.write("<span style=\"color:black;font-size: 2em; font-family:comic book sans, helvetica, sans-serif;\">It\'s been "+difference+" in the lab!<\/span>") | ||
+ | } | ||
+ | //enter the count up date using the format year/month/day | ||
+ | countup(2010,6,01) | ||
+ | </script> | ||
+ | |||
+ | |||
+ | |||
+ | </html> | ||
+ | </div> | ||
<div style="position:relative; top:0px; left:15px"> | <div style="position:relative; top:0px; left:15px"> |
Revision as of 18:27, 17 August 2010
Notebook page
|
|