forked from nadchif/html-duration-picker.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (39 loc) · 1.65 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
---
layout: default
---
<h2>Example Usage</h2>
<p>
Include <a href="https://raw.githubusercontent.com/nadchif/html-duration-picker.js/master/dist/html-duration-picker.min.js">html-duration-picker.min.js</a> in your HTML file, just before the <code></body></code> tag. like
this:
</p>
<pre>
<code>
<script src="html-duration-picker.min.js"></script>
</body>
</code>
</pre>
<p>add a <code>html-duration-picker</code> class on any <code><input></code>box.
like this: </p>
<pre>
<code>
<input class="html-duration-picker">
</code>
</pre>
<h2>Result:</h2>
Regular Input box <br><code><input type="text"></code> <br>
<input type="text">
<br><br>
Duration Input box <br><code><input class="html-duration-picker"></code> <br>
<input type="text" class="html-duration-picker">
<br><br>
Hide Seconds <br><code><input class="html-duration-picker" data-hide-seconds></code> <br>
<input type="text" class="html-duration-picker" data-hide-seconds>
<br>
<h2>Features:</h2>
Set default value to 15 minutes <code><input type="text" class="html-duration-picker" data-duration="00:15:00" ></code> <br>
<br>
Set maximum value to 35 minutes <code><input type="text" class="html-duration-picker" data-duration-max="00:35:00" ></code> <br>
<br>
Set minimum value to 5 minutes <code><input type="text" class="html-duration-picker" data-duration-min="00:05:00" ></code> <br>
<br>
<script src="https://cdn.jsdelivr.net/npm/html-duration-picker/dist/html-duration-picker.min.js"></script>