Commit 19415895 by 黄秀兰

pulic countdown port

parent 101d2a1f
Pipeline #477 skipped in 0 seconds
!(function ( $ ) {
!(function ( global, $ ) {
// DOM相关变量
var count_down_time = $('.count-down-time');
......@@ -65,19 +65,10 @@
count_down_time.find('.seconds').text(gap_second_integer);
}
setTimeout( function () {
countDown('2016-10-31 12:12:12');
} , 0);
}
setTimeout(function () {
countDown('2016-10-31 12:12:12');
}, 0);
global.countDown = countDown;
}(jQuery));
}(window, jQuery));
......@@ -260,6 +260,14 @@
}
$(tabContent[index]).addClass('active');
});
// 倒计时
setInterval( function () {
countDown('2016-10-31 12:12:12');
} , 0);
});
</script>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment