-
Notifications
You must be signed in to change notification settings - Fork 2
/
popup.html
118 lines (118 loc) · 2.62 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style>
html, body, button {
font-family: sans-serif;
font-size: 16px;
color: black;
}
button {
border: 0;
background: #d3d3d3;
}
button:hover {
background: #c5c5c5;
}
button:active {
background: #b0b0b0;
}
.control {
height: 32px;
width: 100%;
}
#whitelistTabCont {
display: none;
}
#clean {
margin-top: 5px;
display: none;
}
.actionTd {
padding: 0;
}
.action {
height: 28px;
width: 82px;
}
.domain {
padding: 5px;
width: 100%;
}
.remove {
background: #96C864;
}
.whitelist {
background: #FF6464;
}
.switch {
position: relative;
width: 28px;
height: 16px;
float: left;
margin: 5px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 2px;
bottom: 2px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #96C864;
}
input:focus + .slider {
box-shadow: 0 0 1px #96C864;
}
input:checked + .slider:before {
-webkit-transform: translateX(12px);
-ms-transform: translateX(12px);
transform: translateX(12px);
}
.switchDesc {
float: left;
margin: 5px;
}
</style>
</head>
<body>
<table id="cookies"></table>
<div id="whitelistTabCont">
<label class="switch">
<input type="checkbox" id="whitelistTab">
<span class="slider"></span>
</label>
<div class="switchDesc">whitelist tab</div>
</div>
<button class="control" id="clean">Clean</button>
<button class="control" id="settings">Settings</button>
<script src="common.js"></script>
<script src="popup.js"></script>
</body>
</html>