forked from ReeteshShrivastava/PlantOrder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
99 lines (90 loc) · 2.6 KB
/
test.html
File metadata and controls
99 lines (90 loc) · 2.6 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
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">
<title>Document</title>
<link rel="stylesheet" href="./CSS/navbar.css">
<link rel="stylesheet" href="./CSS/footer.css">
<link rel="stylesheet" href="./CSS/style.css">
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT Mono"/> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
</head>
<style>
input[type=range] {
box-sizing: border-box;
appearance: none;
width: 100px;
margin: 0;
padding: 0 2px;
/* Add some L/R padding to ensure box shadow of handle is shown */
overflow: hidden;
border: 0;
border-radius: 1px;
outline: none;
background: linear-gradient(grey, grey) no-repeat center;
/* Use a linear gradient to generate only the 2px height background */
background-size: 100% 2px;
pointer-events: none;
&:active,
&:focus {
outline: none;
}
&::-webkit-slider-thumb {
height: 15px;
width: 15px;
border-radius: 28px;
background-color: #fff;
position: relative;
margin: 5px 0;
/* Add some margin to ensure box shadow is shown */
cursor: pointer;
appearance: none;
pointer-events: all;
box-shadow: 0 1px 4px 0.5px rgba(0, 0, 0, 0.25);
&::before {
content: ' ';
display: block;
position: absolute;
top: 13px;
left: 100%;
width: 200px;
height: 2px;
}
}
}
.multi-range {
position: relative;
height: 50px;
input[type=range] {
position: absolute;
&:nth-child(1) {
&::-webkit-slider-thumb::before {
background-color: red;
}
}
&:nth-child(2) {
background: none;
&::-webkit-slider-thumb::before {
background-color: grey;
}
}
}
}
</style>
<body>
<div id="nav-bar"></div>
<div id="navbar"></div>
<div id="popup">
<table></table>
</div>
<span class="multi-range">
<input type="range" min="0" max="50" value="5" id="lower">
<input type="range" min="0" max="50" value="45" id="upper">
</span>
<div id="footer"></div>
</body>
</html>
<script type="module" src="./SCRIPTS/index.js"></script>