Template:Kyoto/small countdown

From 2014.igem.org

(Difference between revisions)
m
 
(3 intermediate revisions not shown)
Line 43: Line 43:
   -moz-user-select: none;
   -moz-user-select: none;
   -khtml-user-select: none;
   -khtml-user-select: none;
 +
}
 +
#kyoto-alert:hover {
 +
    cursor: move;
}
}
#kyoto-alert-display {
#kyoto-alert-display {
Line 74: Line 77:
var year = </html>{{{year|2014}}}<html>;
var year = </html>{{{year|2014}}}<html>;
var month = </html>{{{month|10}}}<html>;
var month = </html>{{{month|10}}}<html>;
-
var day = </html>{{{day|10}}}<html>;
+
var day = </html>{{{day|18}}}<html>;
var freeze = Date.UTC(year, month-1, day, 4, 00, 0);
var freeze = Date.UTC(year, month-1, day, 4, 00, 0);
Line 119: Line 122:
     var interval = (freeze - current_utc)/1000;
     var interval = (freeze - current_utc)/1000;
     if (interval < 0) {
     if (interval < 0) {
-
         $display.hide();
+
         $countdown.hide();
     } else if (interval < 4 * 24 * 3600) {
     } else if (interval < 4 * 24 * 3600) {
         if (interval < 1 * 3600)
         if (interval < 1 * 3600)

Latest revision as of 06:12, 10 October 2014

count down