Team:AUC TURKEY
From 2013hs.igem.org
(Difference between revisions)
Line 9: | Line 9: | ||
<html> | <html> | ||
+ | <head> | ||
+ | <style type="text/css"> | ||
+ | #countdown{ | ||
+ | font: bold 60px "Trebuchet MS"; | ||
+ | } | ||
+ | </style> | ||
+ | <script type="text/javascript"> | ||
+ | var jamboree; | ||
+ | var countdown; | ||
+ | countdownTimer=function() | ||
+ | { | ||
+ | var _loc6 = new Date(); | ||
+ | var _loc2 = jamboree - _loc6; | ||
+ | if (_loc2 < 0){ | ||
+ | countdown.innerHTML="Happy Jamboree!"; | ||
+ | }else{ | ||
+ | var _loc1 = Math.floor(_loc2 / 86400000); | ||
+ | var _loc4 = Math.floor(_loc2 / 3600000) % 24; | ||
+ | var _loc5 = Math.floor(_loc2 / 60000) % 60; | ||
+ | var _loc3 = Math.floor(_loc2 / 1000) % 60; | ||
+ | if (_loc1 < 10){ | ||
+ | days = "00" + _loc1; | ||
+ | }else if (_loc1 < 100){ | ||
+ | days = "0" + _loc1; | ||
+ | }else{ | ||
+ | days = _loc1; | ||
+ | } | ||
+ | if (_loc4 < 10){ | ||
+ | hours = "0" + _loc4; | ||
+ | }else{ | ||
+ | hours = _loc4; | ||
+ | } | ||
+ | if (_loc5 < 10){ | ||
+ | minutes = "0" + _loc5; | ||
+ | }else{ | ||
+ | minutes = _loc5; | ||
+ | } | ||
+ | if (_loc3 < 10){ | ||
+ | seconds = "0" + _loc3; | ||
+ | }else{ | ||
+ | seconds = _loc3; | ||
+ | } | ||
+ | countdown.innerHTML=days+":"+hours+":"+minutes+":"+seconds; | ||
+ | } | ||
+ | setTimeout(countdownTimer,500); | ||
+ | } | ||
+ | window.onload=function(){ | ||
+ | jamboree=new Date(2013,5,28); | ||
+ | countdown=document.getElementById("countdown"); | ||
+ | countdownTimer(); | ||
+ | } | ||
+ | </script> | ||
+ | </head> | ||
<center> | <center> | ||
+ | <body> | ||
<a class="twitter-timeline" href="https://twitter.com/AUC_TURKEY" data-widget-id="340892432759652354">Tweets by @AUC_TURKEY</a> | <a class="twitter-timeline" href="https://twitter.com/AUC_TURKEY" data-widget-id="340892432759652354">Tweets by @AUC_TURKEY</a> | ||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> | ||
+ | <div id="countdown">000:00:00:00</div> | ||
+ | <div style="font: normal 40px 'Trebuchet MS'">Until iGEM HS Jamboree 2013</font> | ||
</center> | </center> | ||
+ | </body> | ||
</html> | </html> | ||
<forum_subtle/> | <forum_subtle/> |
Revision as of 13:32, 12 June 2013