Team:UNICAMP-Brazil/inc rodape pt
From 2009.igem.org
(Difference between revisions)
Line 6: | Line 6: | ||
<a title="Monsanto" href="http://www.monsanto.com.br"><img border="0" src="https://static.igem.org/mediawiki/2009/1/1b/Monsanto_d.jpg" /></a> | <a title="Monsanto" href="http://www.monsanto.com.br"><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="O tempo é curto! Ao trabalho!" | ||
+ | var current="Aqui vamos nós!" | ||
+ | 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 \> dias restantes!<br>'+before+'</center>') | ||
+ | } | ||
+ | } | ||
+ | //count down date using the format year/month/day | ||
+ | countdown(2009,10,21) | ||
+ | </script> | ||
+ | |||
+ | |||
<a title="Como ajudar" href="https://2009.igem.org/Team:UNICAMP-Brazil/pt/Help"><img border="0" src="https://static.igem.org/mediawiki/2009/0/07/Frame_ajuda.gif" /></a> | <a title="Como ajudar" href="https://2009.igem.org/Team:UNICAMP-Brazil/pt/Help"><img border="0" src="https://static.igem.org/mediawiki/2009/0/07/Frame_ajuda.gif" /></a> | ||
<a title="Cadernos de laboratório" href="https://2009.igem.org/Team:UNICAMP-Brazil/pt/Notebooks"><img border="0" src="https://static.igem.org/mediawiki/2009/b/b4/Frame_notebooks.gif" /></a> | <a title="Cadernos de laboratório" href="https://2009.igem.org/Team:UNICAMP-Brazil/pt/Notebooks"><img border="0" src="https://static.igem.org/mediawiki/2009/b/b4/Frame_notebooks.gif" /></a> |
Revision as of 20:52, 17 September 2009