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 10 wiki FREEZE at 11:59PM EDT */
+
/* October 17 wiki FREEZE at 12:00PM EDT */
-
var freeze = Date.UTC(</html>{{{year|2014}}}, {{{month|9}}}, {{{day|10}}}<html>, 4, 00, 0);
+
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