Team:UNICAMP-Brazil/inc rodape
From 2009.igem.org
(Difference between revisions)
m |
|||
Line 7: | Line 7: | ||
<a title="Monsanto" href="http://www.monsanto.com"><img border="0" src="https://static.igem.org/mediawiki/2009/1/1b/Monsanto_d.jpg" /></a> | <a title="Monsanto" href="http://www.monsanto.com"><img border="0" src="https://static.igem.org/mediawiki/2009/1/1b/Monsanto_d.jpg" /></a> | ||
<hr widht="85%"> | <hr widht="85%"> | ||
+ | |||
+ | |||
+ | <script> | ||
+ | |||
+ | var before="Time is short! Go work!" | ||
+ | var current="Here we go!" | ||
+ | var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec") | ||
+ | var imgsarray=new Array("d/d3/C0","d/d1/C1","c/cd/C2","7/7a/C3","f/fd/C4","8/88/C5","f/f0/C6","e/e0/C7","5/5d/C8","3/3d/C9"); | ||
+ | |||
+ | function countdown(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 futurestring=montharray[m-1]+" "+d+", "+yr | ||
+ | var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1) | ||
+ | var dstring=difference.toString() | ||
+ | if (difference==0) | ||
+ | document.write(current) | ||
+ | else if (difference>0){ | ||
+ | document.write("<center>Only <br \>") | ||
+ | for (i=0;i<=dstring.length-1;i++) | ||
+ | //document.write('<img src="c'+dstring.charAt(i)+'.gif">') | ||
+ | //document.write('[[Image:C'+dstring.charAt(i)+'.gif]]') | ||
+ | document.write('<img src="https://static.igem.org/mediawiki/2009/'+imgsarray[dstring.charAt(i)]+'.gif">') | ||
+ | document.write('<br \> days left!<br>'+before+'</center>') | ||
+ | } | ||
+ | } | ||
+ | //count down date using the format year/month/day | ||
+ | countdown(2009,10,21) | ||
+ | </script> | ||
+ | |||
+ | |||
+ | |||
<a title="How to help" href="https://2009.igem.org/Team:UNICAMP-Brazil/Help"><img border="0" src="https://static.igem.org/mediawiki/2009/1/12/Frame_ajuda_en.gif" /></a> | <a title="How to help" href="https://2009.igem.org/Team:UNICAMP-Brazil/Help"><img border="0" src="https://static.igem.org/mediawiki/2009/1/12/Frame_ajuda_en.gif" /></a> | ||
<a title="Lab Notebooks" href="https://2009.igem.org/Team:UNICAMP-Brazil/Notebooks"><img border="0" src="https://static.igem.org/mediawiki/2009/a/a3/Frame_notebooks_en.gif" /></a> | <a title="Lab Notebooks" href="https://2009.igem.org/Team:UNICAMP-Brazil/Notebooks"><img border="0" src="https://static.igem.org/mediawiki/2009/a/a3/Frame_notebooks_en.gif" /></a> |
Revision as of 20:50, 17 September 2009