forked from chingyawhao/materialize-clockpicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
154 lines (137 loc) · 5.5 KB
/
index.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link type="text/css" rel="stylesheet" href="bower_components/Materialize/dist/css/materialize.min.css" media="screen,projection" />
<link type="text/css" rel="stylesheet" href="dist/css/materialize.clockpicker.css" media="screen,projection" />
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/Materialize/dist/js/materialize.min.js"></script>
<script src="dist/js/materialize.clockpicker.js"></script>
<title>Materialize Timepicker</title>
</head>
<body>
<nav>
<div class="nav-wrapper">
<a href="#" class="brand-logo">Materialize Timepicker</a>
</div>
</nav>
<div class="container">
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s12">
<label for="timepicker_ampm">Time am/pm</label>
<input id="timepicker_ampm" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_ampm_dark">Time am/pm ( dark theme )</label>
<input id="timepicker_ampm_dark" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_24">Time 24h </label>
<input id="timepicker_24" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_24_dark">Time 24h ( dark theme ) </label>
<input id="timepicker_24_dark" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_default">Time options - default: 'now' </label>
<input id="timepicker_default" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_fromnow">Time options - fromnow: 5 * 1000 * 60 </label>
<input id="timepicker_fromnow" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_donetext">Time options - donetext: 'set'</label>
<input id="timepicker_donetext" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_autoclose">Time options - autoclose: true</label>
<input id="timepicker_autoclose" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_ampmclickable">Time options - ampmclickable: true</label>
<input id="timepicker_ampmclickable" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_ampmclickable_dark">Time options - ampmclickable: true ( dark theme ) </label>
<input id="timepicker_ampmclickable_dark" class="timepicker" type="time">
</div>
</div>
<div class="row">
<div class="input-field col s12">
<label for="timepicker_vibrate">Time options - vibrate: true</label>
<input id="timepicker_vibrate" class="timepicker" type="time">
</div>
</div>
</form>
</div>
</div>
<script type="text/javascript">
//am/pm
$('#timepicker_ampm').pickatime();
$('#timepicker_ampm_dark').pickatime({
darktheme: true
});
//24
$('#timepicker_24').pickatime({
twelvehour: false
});
$('#timepicker_24_dark').pickatime({
darktheme: true,
twelvehour: false
});
//default
$('#timepicker_default').pickatime({
default: 'now'
});
//fromnow
$('#timepicker_fromnow').pickatime({
default: 'now',
fromnow: 5 * 1000 * 60
});
//donetext
$('#timepicker_donetext').pickatime({
donetext: 'set'
});
//autoclose
$('#timepicker_autoclose').pickatime({
autoclose: true
});
//ampmclickable
$('#timepicker_ampmclickable').pickatime({
ampmclickable: true
});
$('#timepicker_ampmclickable_dark').pickatime({
ampmclickable: true,
darktheme: true
});
//vibrate
$('#timepicker_vibrate').pickatime({
vibrate: true
});
</script>
</body>
</html>