-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathrange-slider.test.html
51 lines (51 loc) · 997 Bytes
/
range-slider.test.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
<!DOCTYPE html>
<html dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Range Slider</title>
<link href="range-slider.min.css" rel="stylesheet">
<style>
html,
body {height:200%}
p {
position:static;
width:50%;
}
p:after {content:"Static"}
p + p {
position:relative;
top:50px;
left:100px;
width:50%;
}
p + p:after {content:"Relative"}
p + p + p {
position:absolute;
top:250px;
left:100px;
}
p + p + p:after {content:"Absolute"}
p + p + p + p {
position:fixed;
top:200px;
left:10px;
}
p + p + p + p:after {content:"Fixed"}
</style>
</head>
<body>
<p></p>
<p></p>
<p></p>
<p></p>
<script src="range-slider.min.js"></script>
<script>
var p = document.getElementsByTagName('p');
RS(p[0]);
RS(p[1]);
RS(p[2]);
RS(p[3]);
</script>
</body>
</html>