Template:Kyoto/small countdown
From 2014.igem.org
(Difference between revisions)
Line 38: | Line 38: | ||
} | } | ||
</style> | </style> | ||
+ | |||
+ | <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script> | ||
+ | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | //<![CDATA[ | ||
+ | |||
$(function(){ | $(function(){ | ||
- | /* October | + | /* October 17 wiki FREEZE at 12:00PM EDT */ |
- | var | + | var year = </html>{{{year|2014}}}<html>; |
+ | var month = </html>{{{month|10}}}<html>; | ||
+ | var day = </html>{{{day|10}}}<html>; | ||
+ | var freeze = Date.UTC(year, month-1, day, 4, 00, 0); | ||
function get_current_utc() { | function get_current_utc() { | ||
Line 81: | Line 89: | ||
var timer = setInterval(function() { | var timer = setInterval(function() { | ||
+ | //var countdown = document.getElementById("kyoto_alert"); | ||
var $countdown = $("#kyoto_alert"); | var $countdown = $("#kyoto_alert"); | ||
var current_utc = get_current_utc(); | var current_utc = get_current_utc(); | ||
Line 112: | Line 121: | ||
} | } | ||
}, 200); | }, 200); | ||
+ | |||
+ | $("#kyoto_alert").draggable(); | ||
}); | }); | ||
+ | |||
+ | //]]> | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 00:33, 11 September 2014
count down