-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
61 lines (56 loc) · 1.51 KB
/
popup.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
<!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.0" />
<title>Bye Statistics Info</title>
<style>
.toggle-container {
display: inline-block;
position: relative;
width: 60px;
height: 34px;
}
.toggle-container input[type="checkbox"] {
display: none;
}
.toggle-container .toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
border-radius: 34px;
transition: 0.4s;
}
.toggle-container .toggle-slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
border-radius: 50%;
transition: 0.4s;
}
.toggle-container input[type="checkbox"]:checked + .toggle-slider {
background-color: #2196f3;
}
.toggle-container input[type="checkbox"]:checked + .toggle-slider:before {
transform: translateX(26px);
}
</style>
</head>
<body>
<div class="toggle-container">
<input type="checkbox" id="toggle-checkbox" />
<label class="toggle-slider" for="toggle-checkbox"></label>
</div>
<p id="message">Hello again</p>
<script src="popup.js"></script>
</body>
</html>