-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (66 loc) · 2.61 KB
/
Copy pathindex.html
File metadata and controls
71 lines (66 loc) · 2.61 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>slider.js</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<link rel="stylesheet" href="slider.css">
<style>
* {
-ms-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
user-select: none;
}
body {
padding-top: 2rem;
padding-bottom: 2rem;
}
hr {
margin-top: 2rem;
margin-bottom: 2rem;
}
</style>
</head>
<body>
<div class="container">
<h1>slider.js</h1>
<p class="lead">HTML5 input component controlled by drag and drop</p>
<hr>
<p class="lead">Number Slider 1 <small>(min = 0, max = 20, step = 1)</small></p>
<div class="slider" style="margin-top: 2rem;">
Click and drag up/down:
<span class="current" min="0" max="20" step="1">5</span>
<span class="guide-down"></span>
<span class="guide-up"></span>
</div>
<hr>
<p class="lead">Number Slider 2 <small>(min = 0, max = 100, step = 5)</small></p>
<div class="slider" style="margin-top: 2rem;">
Click and drag up/down:
<span class="current" min="0" max="100" step="5">20</span>
<span class="guide-down"></span>
<span class="guide-up"></span>
</div>
<hr>
<p class="lead">Custom Slider</p>
<div class="slider" style="margin-top: 2rem;">
Click and drag up/down:
<span class="current" data='["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]'>January</span>
<span class="guide-down"></span>
<span class="guide-up"></span>
</div>
<hr>
<h5>Notes</h5>
<ul>
<li>Pressing <kbd>Shift</kbd> key during drag accelerates scrolling by 10 times.</li>
</ul>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="slider.js" type="text/javascript"></script>
</body>
</html>