-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathindex.html
73 lines (73 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
67
68
69
70
71
72
73
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>html5slider: <input type=range> for Firefox</title>
<style>
body {
margin: 48px;
font: 20px/24px Palatino, 'Palatino Linotype', serif;
text-align: center;
}
input[type=range]:first-of-type {
width: 200px;
}
div {
margin-bottom: 8px;
}
a {
color: cornflowerblue;
}
#github, #github::after {
position: absolute;
top: 0;
right: 0;
width: 149px;
height: 149px;
outline: none;
image-rendering: -moz-crisp-edges;
-webkit-transition: .2s;
transition: .2s;
}
#github {
background-image: url(https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png);
}
#github::after {
content: url(https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png);
}
#github:not(:hover)::after {
opacity: 0;
}
</style>
<script src="html5slider.js"></script>
<script>
function $(id) { return document.getElementById(id); }
onload = function() {
$('one').oninput = function() { $('uno').innerHTML = this.value; };
$('one').oninput();
$('two').oninput = function() { $('dos').innerHTML = this.value; };
$('two').oninput();
$('mms').innerHTML =
['min: ' + $('two').min,
'max: ' + $('two').max,
'step: ' + $('two').step].join(', ');
};
</script>
</head>
<body>
<h3>html5slider</h3>
<p><input type=range> polyfill for Firefox</p>
<br />
<input type="range" id="one" />
<div id="uno"> </div>
<br /><br />
<input type="range" value="20" min="0" max="100" step="30" id="two" />
<div id="dos"> </div>
<div id="mms"> </div>
<br /><br />
<a href="https://github.com/fryn/html5slider">github.com/fryn/html5slider</a>
—
<a href="http://frankyan.com/">frankyan.com</a>
<a href="https://github.com/fryn/html5slider" id="github"></a>
</body>
</html>