-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
66 lines (58 loc) · 1.74 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>JS Round Range Slider App</title>
<link href="https://fonts.googleapis.com/css?family=Raleway:400,600" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="app.css">
</head>
<body>
<div class="container">
<h1>JS Round Range Slider App</h1>
<!-- slider app container -->
<div id="app"></div>
</div>
<script type="text/javascript" src="app.js"></script>
<script>
// slider app options
const opts = {
DOMselector: '#app',
sliders: [
{
radius: 100,
min: 0,
max: 100,
step: 10,
initialValue: 50,
color: '#fdcb6e',
displayName: 'Value 1'
},
{
radius: 160,
min: 0,
max: 3000,
step: 100,
initialValue: 200,
color: '#0984e3',
displayName: 'Value 2'
},
{
radius: 40,
min: 0,
max: 200,
step: 10,
initialValue: 20,
color: '#d63031',
displayName: 'Value 3'
}
]
};
// instantiate the slider
const slider = new Slider(opts);
slider.draw();
</script>
</body>
</html>