-
Notifications
You must be signed in to change notification settings - Fork 63
/
index.html
77 lines (66 loc) · 2.58 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
---
layout: default
---
<h2>Installation</h2>
<p><b>Option 1: NPM install - </b> Install from npm and use within your project</p>
<div class="language-js highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code> <span>npm install html-duration-picker</span> </code> </pre>
</div>
</div>
<p><b>Option 2: CDN - </b> use latest version form jsdelivr</p>
<div class="language-js highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code><span><script src="https://cdn.jsdelivr.net/npm/html-duration-picker@latest/dist/html-duration-picker.min.js"></script>
</body></span></code></pre>
</div>
</div>
<p><b>Option 3: Download - </b>
Download
<a
href="https://raw.githubusercontent.com/nadchif/html-duration-picker.js/master/dist/html-duration-picker.min.js">dist/html-duration-picker.min.js</a>
and include it
in your HTML file, just before the <code></body></code> tag. like this:
</p>
<div class="language-js highlighter-rouge">
<div class="highlight">
<pre class="highlight">
<code><script src="html-duration-picker.min.js"></script>
</body></code>
</pre>
</div>
</div>
<h2 id="example">Example Usage</h2>
<p>
add a <code>html-duration-picker</code> class on any <code><input></code>box. like this:
</p>
<div class="language-js highlighter-rouge">
<div class="highlight">
<pre class="highlight"><code><input class="html-duration-picker"></code></pre>
</div>
</div>
<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@2.4.0/dist/html-duration-picker.min.js"></script>