-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcount-down.html
executable file
·70 lines (69 loc) · 3.96 KB
/
count-down.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>count-down element</title>
<script type="text/javascript" src="count-down.js" defer="defer"></script>
<style type="text/css">
.number {padding: 0 5px 0 10px;}
.start{
display: block;
}
.end{
display: none;
}
.the-end .start{
display: none;
}
.the-end .box-count {
display: none;
}
.the-end .end {
display: block;
}
</style>
<script>
</script>
</head>
<body>
<div class="container">
<h4>Example use data-timer</h4>
<count-down class="demo1" data-timer="75149185"></count-down>
<h4>Example use data-y data-m ...</h4>
<count-down class="demo2" data-y="2030" data-m="5" data-d="26" data-h="00" data-i="00" data-s="0"></count-down>
<h4>Example use data-y data-m ... short</h4>
<count-down class="demo2b" data-short="true" data-h="7"></count-down>
<h4>Auto reset use data-y data-m ... short</h4>
<count-down class="demo2c" data-y="yyyy" data-m="mm" data-d="dd" data-h="00" data-i="00" data-s="00"></count-down>
<h4>Example use private layout</h4>
<count-down class="demo3" data-timer="5-26-2030">
<span class="box-count day"><span class="number">0</span><span class="text">Ngày</span></span>
<span class="box-count hrs"><span class="number">0</span><span class="text">Giờ</span></span>
<span class="box-count min"><span class="number">0</span><span class="text">Phút</span></span>
<span class="box-count secs"><span class="number">0</span> <span class="text">Giây</span></span>
</count-down>
<h4>Example use private layout with attribute data</h4>
<count-down class="demo4" data-timer="10/8/2023"
data-layout='<span class="box-count day"><span class="number">0</span><span class="text">Ngày</span></span><span class="box-count hrs"><span class="number">0</span><span class="text">Giờ</span></span><span class="box-count min"><span class="number">0</span><span class="text">Phút</span></span><span class="box-count secs"><span class="number">0</span> <span class="text">Giây</span></span>',
>
</count-down>
<h4>Example the end</h4>
<count-down class="demo5" data-h="16" data-i="19" data-s="10" data-timeout="false">
<span class="start">Message start</span>
<span class="end">Message end</span>
<span class="box-count day"><span class="number">0</span><span class="text">Days</span></span><span class="box-count hrs"><span class="number">0</span><span class="text">Hrs</span></span><span class="box-count min"><span class="number">0</span><span class="text">Mins</span></span><span class="box-count secs"><span class="number">0</span> <span class="text">Secs</span></span>
</count-down>
<h4>Example only countodwn end</h4>
<count-down class="demo6" data-plus-min="1" data-plus-sec="100" data-timeout="false">
<span class="start">Message start</span>
<span class="end">Message end</span>
<span class="box-count min"><span class="number">0</span><span class="text">Mins</span></span><span class="box-count secs"><span class="number">0</span> <span class="text">Secs</span></span>
</count-down>
<count-down class="demo6" data-plus-min="1" data-timeout="false">
<span class="start">Message start</span>
<span class="end">Message end</span>
<span class="box-count min"><span class="number">0</span><span class="text">Mins</span></span><span class="box-count secs"><span class="number">0</span> <span class="text">Secs</span></span>
</count-down>
</div>
</body>
</html>