forked from mckamey/countdownjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
120 lines (112 loc) · 4.13 KB
/
demo.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="UTF-8">
<title>Countdown.js Demo</title>
<link href="test/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1><a href="/">Countdown.js</a></h1>
<div>
<h2 id="counter">Countdown.js Demo</h2>
<div style="float:right"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://countdownjs.org" data-text="Countdown.js: A simple JavaScript API for producing an accurate, intuitive description of the timespan between dates" data-count="none"></a></div>
<form>
<h3>Countdown date</h3>
<fieldset id="countdown-start"><span>
<input id="year"
type="number"
min="-9999"
max="9999"
step="1"
value="1991"
size="4"
placeholder="year"
/><label for="month">-</label><input id="month"
type="number"
min="1"
max="12"
step="1"
value="8"
size="2"
placeholder="month"
/><label for="date">-</label><input id="date"
type="number"
min="1"
max="31"
step="1"
value="6"
size="2"
placeholder="day"
/></span>
<span><label for="hours"> </label><input id="hours"
type="number"
min="0"
max="23"
step="1"
value="14"
size="2"
placeholder="hrs"
/><label for="minutes">:</label><input id="minutes"
type="number"
min="0"
max="59"
step="1"
value="56"
size="2"
placeholder="min"
/><label for="seconds">:</label><input id="seconds"
type="number"
min="0"
max="59"
step="1"
value="20"
size="2"
placeholder="sec"
/><label for="milliseconds">.</label><input id="milliseconds"
type="number"
min="0"
max="999"
step="1"
value="0"
size="3"
placeholder="ms"
/></span>
<span id="timezone"> UTC</span>
</fieldset>
<h3>Display units</h3>
<fieldset id="countdown-units"><span>
<label for="units-millennia"><input id="units-millennia" type="checkbox" />millennia</label>
<label for="units-centuries"><input id="units-centuries" type="checkbox" />centuries</label>
<label for="units-decades"><input id="units-decades" type="checkbox" />decades</label>
</span><span>
<label for="units-years"><input id="units-years" type="checkbox" />years</label>
<label for="units-months"><input id="units-months" type="checkbox" />months</label>
<label for="units-weeks"><input id="units-weeks" type="checkbox" />weeks</label>
<label for="units-days"><input id="units-days" type="checkbox" />days</label>
</span><span>
<label for="units-hours"><input id="units-hours" type="checkbox" />hours</label>
<label for="units-minutes"><input id="units-minutes" type="checkbox" />minutes</label>
<label for="units-seconds"><input id="units-seconds" type="checkbox" />seconds</label>
<label for="units-milliseconds"><input id="units-milliseconds" type="checkbox" />milliseconds</label>
</span><span>
<label for="empty-label">empty</label><input id="empty-label" type="text" value="now!" />
</span><span>
<label for="max-units">max</label><input id="max-units" type="number" min="0" max="11" value="11" />
<label for="frac-digits">digits</label><input id="frac-digits" type="number" min="0" max="20" value="0" />
<span></fieldset>
</form>
<h3>Timespan object</h3>
<pre id="timespan"></pre>
</div>
<script src="lib/json/json2.js" type="text/javascript"></script>
<script src="lib/raf/requestAnimationFrame.js" type="text/javascript"></script>
<script src="countdown.demo.js" type="text/javascript"></script>
<script src="demo.js" type="text/javascript"></script>
<footer>
<div style="float:left"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://countdownjs.org" data-text="Countdown.js: A simple JavaScript API for producing an accurate, intuitive description of the timespan between dates"></a></div>
Copyright © 2006-2012 <a href="http://mck.me">Stephen M. McKamey</a>
</footer>
<script src="/ga.js" type="text/javascript" defer></script>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript" defer="defer"></script>
</body>
</html>