-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (94 loc) · 2.76 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="range.css">
<link rel="stylesheet" href="range_prime.css">
<link rel="stylesheet" href="range_sea.css">
<link rel="stylesheet" href="range_sky.css">
<title>Pretty Range Selector</title>
<style>
html {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
/* direction: rtl; */
}
body {
background: #2a2a3c;
}
.wrapper {
background: #1c1c28;
border-radius: 10px;
padding: 1% 2% 3% 2%;
width: 500px;
height: auto;
margin: 12% auto;
}
label {
color: #c2c2c2;
font-weight: 500;
display: block;
margin: 3% 0;
}
hr {
display: block;
margin: 3% 0;
border: 1px solid #2a2a3c;
}
.header {
font-weight: 900;
font-size: 3rem;
color: #02c38e;
text-align: center;
}
.meta {
font-size: 12px;
color: #c3c3c3;
text-align: center;
width: 100%;
display: block;
font-weight: 300;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="header">
<span>RangeJS</span>
<span class="meta">By Prime, a Coffee Lover.</span>
</div>
<label>Default Theme </label>
<hr>
<input type="range" id="range_default" style="direction: rtl;">
<label>Prime Theme </label>
<hr>
<input type="range" id="range_prime">
<label>Sea Theme </label>
<hr>
<input type="range" id="range_sea">
<label>High range value </label>
<hr>
<input type="range" id="range_sea_big" min="1" max="100" step="1" value=2>
</div>
<script src="range.js"></script>
<script>
function notif(msg) {
window.alert(msg);
}
rangeJsinit({
'theme':'default',
'debug': true,
'value': 30,
'rtl': true,
// 'rotate': 90,
'cfns': {
'input': () => { notif('on input triggered.') },
'change': () => { console.log('changed') }
}
}, '#range_default');
rangeJsinit({'theme':'prime', 'value': 40}, '#range_prime');
rangeJsinit({'theme':'sea', 'value': 70}, '#range_sea');
rangeJsinit({'theme':'sky'}, '#range_sea_big');
</script>
</body>
</html>