Team:Uppsala-Sweden/Parts/Overview

From 2011.igem.org

(Difference between revisions)
(Parts)
Line 5: Line 5:
==Parts==
==Parts==
-
The new parts ..
+
<div class="colonnedroite">
 +
<p style="text-indent:0; text-align:justify;"><a href="http://www.mozilla.com/en-US/"><img style="width:15px; height:15px;" src="http://icones.eee-pc.fr/icones/firefox3.png" alt="firefox" /></a>  To fully enjoy our wiki, we recommend you to use Firefox as web browser.
 +
<a href="http://www.mozilla.com/en-US/">Get it now !</a></p>
 +
</div>
-
 
+
<div class="titredroite">
-
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
+
<p><strong>Countdown</strong></p>
-
<!--
+
</div>
-
 
+
<div class="colonnedroite">
-
dateFuture = new Date(2011,9,1,11,13,3);
+
<!-- Compte à rebours -->
-
 
+
<div style="text-align:center;">
-
function GetCount(){
+
<tr><td><embed src="http://www.oneplusyou.com/bb/files/countdown/countdown.swf?co=black&bgcolor=FFFFFF&date_month=11&date_day=05&date_year=0&un=IGEM JAMBOREE 2010&size=normal&mo=11&da=05&yr=2010" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="200" height="90" wmode="transparent"></embed></div>
-
 
+
<!-- /Compte à rebours -->
-
        dateNow = new Date();                                                                        //grab current date
+
</div>
-
        amount = dateFuture.getTime() - dateNow.getTime();                //calc milliseconds between dates
+
-
        delete dateNow;
+
-
 
+
-
        // time is already past
+
-
        if(amount < 0){
+
-
                document.getElementById('countbox').innerHTML="Now!";
+
-
        }
+
-
        // date is still good
+
-
        else{
+
-
                days=0;hours=0;mins=0;secs=0;out="";
+
-
 
+
-
                amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs
+
-
 
+
-
                days=Math.floor(amount/86400);//days
+
-
                amount=amount%86400;
+
-
 
+
-
                hours=Math.floor(amount/3600);//hours
+
-
                amount=amount%3600;
+
-
 
+
-
                mins=Math.floor(amount/60);//minutes
+
-
                amount=amount%60;
+
-
 
+
-
                secs=Math.floor(amount);//seconds
+
-
 
+
-
                if(days != 0){out += days +" day"+((days!=1)?"s":"")+", ";}
+
-
                if(days != 0 || hours != 0){out += hours +" hour"+((hours!=1)?"s":"")+", ";}
+
-
                if(days != 0 || hours != 0 || mins != 0){out += mins +" minute"+((mins!=1)?"s":"")+", ";}
+
-
                out += secs +" seconds";
+
-
                document.getElementById('countbox').innerHTML=out;
+
-
 
+
-
                setTimeout("GetCount()", 1000);
+
-
        }
+
-
}
+
-
 
+
-
window.onload=function(){GetCount();}//call when everything has loaded
+
-
 
+
-
//-->
+
-
</script>
+
-
<div id="countbox"></div>
+

Revision as of 09:16, 4 July 2011

Parts

<a href="http://www.mozilla.com/en-US/"><img style="width:15px; height:15px;" src="http://icones.eee-pc.fr/icones/firefox3.png" alt="firefox" /></a> To fully enjoy our wiki, we recommend you to use Firefox as web browser. <a href="http://www.mozilla.com/en-US/">Get it now !</a>

Countdown

<tr><td><embed src="http://www.oneplusyou.com/bb/files/countdown/countdown.swf?co=black&bgcolor=FFFFFF&date_month=11&date_day=05&date_year=0&un=IGEM JAMBOREE 2010&size=normal&mo=11&da=05&yr=2010" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="200" height="90" wmode="transparent"></embed>