demo.html
920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div id="countdown" class="page out" data-title="倒计时插件">
<div id="countdown-header"></div>
<div id="countdown-a"></div>
</div>
<script>
require(["NavHeader", "Countdown"], function(NavHeader, Countdown) {
var _u = require("mUtil");
var hasClsPicker = typeof clsPicker !== "undefined";
if(!hasClsPicker) {
new NavHeader({
el: "countdown-header",
option: {
title:"倒计时插件",
smallTitle:"countdown"
}
}).render();
}
new Countdown({
el: "countdown-a",
option: {
countdowndate:"2018-01-01 01:01:01"
}
}).render().then(function(){
if (!hasClsPicker) return;
_u.vetically("#countdown-a");
// clsPicker.golalSetting({
// container: "#countdown-a",
// type: "Countdown"
// });
// new clsPicker({
// selector: ".time_circles",
// text: ".time_circles",
// skew: [2, 0],
// lineYSkew: 60,
// position: "bottom right"
// });
});
});
</script>