Template:Kyoto/header
From 2013.igem.org
(Difference between revisions)
Line 16: | Line 16: | ||
</html> | </html> | ||
</div> | </div> | ||
+ | |||
+ | <html> | ||
+ | <style type="text/css"> | ||
+ | #kyoto_alert { | ||
+ | position: fixed; | ||
+ | right: 10px; | ||
+ | background-color: #333; | ||
+ | border: 4px solid #000; | ||
+ | height: 30px; | ||
+ | line-height: 30px; | ||
+ | font-size: 30px; | ||
+ | padding: 30px 10px; | ||
+ | display: none; | ||
+ | } | ||
+ | #kyoto_alert * { | ||
+ | color: #ddd !important; | ||
+ | } | ||
+ | </style> | ||
+ | <script type="text/javascript"> | ||
+ | window.onload = function() { | ||
+ | var countdown = document.getElementById("kyoto_alert"); | ||
+ | var date = new Date(); | ||
+ | var time = Date.UTC( | ||
+ | date.getUTCFullYear(), | ||
+ | date.getUTCMonth(), | ||
+ | date.getUTCDate(), | ||
+ | date.getUTCHours(), | ||
+ | date.getUTCMinutes(), | ||
+ | date.getUTCSeconds() | ||
+ | ); | ||
+ | var freeze = Date.UTC(2013, 8, 28, 4, 0, 0); | ||
+ | if (freeze > time) { | ||
+ | countdown.style.display = "block"; | ||
+ | } | ||
+ | }; | ||
+ | </script> | ||
+ | </html> | ||
+ | <div id="kyoto_alert">[[Team:Kyoto/TimeLimit|count down]]</div> |
Revision as of 11:31, 26 September 2013