-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdev.html
113 lines (100 loc) · 3.16 KB
/
dev.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
<title>rangeslider-js</title>
<style>
body >div >div {margin-bottom: 2rem}
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
color: #404040;
font-family: Helvetica, arial, sans-serif;
}
body {
padding: 50px 20px;
margin: 0 auto;
max-width: 800px;
}
output {
display: block;
font-size: 30px;
font-weight: bold;
text-align: center;
margin: 30px 0;
width: 100%;
}
</style>
</head>
<body>
<div>
<div>
<h2>Negative attributes</h2>
<input type="range" min="-20" max="20" data-rangeslider>
<output></output>
</div>
<div>
<h2>Floating point boundaries</h2>
<div>
<input type="range" min="10" max="11" step="0.1" value="10.2" data-rangeslider>
<output></output>
</div>
<div>
<input type="range" min="0.1" max="3" step="0.1" value="0.5" data-rangeslider>
<output></output>
</div>
<div>
<input type="range" min="0.111" max="3.33" step="0.111" value="1.776" data-rangeslider>
<output></output>
</div>
</div>
<div>
<h2><code>value="0"</code></h2>
<input type="range" value="0" data-rangeslider>
<output></output>
</div>
<div id="js-example-disabled">
<h2><code>disabled</code></h2>
<input type="range" min="10" max="100" data-rangeslider disabled>
<output></output>
<button data-behaviour="toggle">Toggle disabled state</button>
</div>
<div>
<h2><code>max="0"</code> disables slider</h2>
<input type="range" min="0" max="0" data-rangeslider>
<output></output>
</div>
<div id="programmatic">
<h2>Programmatic value changes</h2>
<input type="range" min="10" max="100" data-rangeslider>
<output></output>
<input type="number" value="60">
</div>
<div id="js-example-update-range">
<h2>Update range</h2>
<input type="range" min="10" max="100" step="10" data-rangeslider>
<output></output>
<button>Update range {min : 0, max : 20, step : 0.5, value : 1.5}</button>
</div>
<div id="js-example-destroy">
<h2>Destroy a plugin instance</h2>
<input type="range" min="10" max="1000" step="10" value="500" data-rangeslider>
<output></output>
<button data-behaviour="destroy">Destroy</button>
<button data-behaviour="initialize">Initialize</button>
</div>
<div id="js-example-hidden">
<h2>Hide / show</h2>
<div style="display:none">
<input type="range" min="10" max="100" data-rangeslider>
<output></output>
</div>
<button data-behaviour="toggle">Toggle visibility</button>
</div>
</div>
</body>
</html>