-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpopup.html
192 lines (172 loc) · 4.41 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ImageFilter Popup</title>
<script type="text/javascript" src="storage.js"></script>
<script type="text/javascript" src="messaging.js"></script>
<script type="text/javascript" src="crossbrowser.js"></script>
<script type="text/javascript" src="logging.js"></script>
<script type="text/javascript" src="popup.js"></script>
<style>
body {
font-size: 14pt;
}
a {
color: #277bc4;
cursor: pointer;
}
a:hover {
text-decoration: underline;
}
h1 {
font-size: 14pt;
font-weight: bold;
}
h2 {
font-size: 18pt;
margin: 0px;
padding: 0px;
margin-top: 18px;
margin-bottom: 6px;
}
label {
white-space: nowrap;
}
.select-wrap {
flex: 1;
background: linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%) url("data:image/png;base64,R0lGODlhDwAUAIABAAAAAP///yH5BAEAAAEALAAAAAAPABQAAAIXjI+py+0Po5wH2HsXzmw//lHiSJZmUAAAOw==") no-repeat right center;
height: 20px;
border: 4px solid #aaa;
}
.select-wrap select {
width: 100%;
display: block;
background: transparent;
padding: 2px;
border: 0;
border-radius: 0;
font-size: 16px;
line-height: 1;
height: 20px;
}
input[type=button] {
width: 100%;
}
.slider {
display: flex;
}
.slider input {
flex: 1;
}
.input-group {
display: flex;
white-space: nowrap;
font-size: 0;
}
.input-group > * {
font-size: 14pt;
vertical-align: top;
margin-left: 0px;
margin-right: 0px;
}
.input-group >*:first-child {
border-radius: 4px 0px 0px 4px;
}
.input-group >*:not(:first-child) {
border-left: none;
}
.input-group >*:last-child {
border-radius: 0px 4px 4px 0px;
}
.override {
border-color: #6cbc7c !important;
}
.bigcheck {
width: 20px;
height: 20px;
background: #eee;
border: 4px solid #aaa;
position: relative;
}
.bigcheck label {
cursor: pointer;
position: absolute;
width: 20px;
height: 20px;
left: 0px;
top: 0px;
background: #eee;
}
.bigcheck label:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter: alpha(opacity=0);
opacity: 0;
content: '';
position: absolute;
width: 9px;
height: 5px;
background: transparent;
top: 4px;
left: 4px;
border: 3px solid #45484d;
border-top: none;
border-right: none;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.bigcheck label:hover::after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
filter: alpha(opacity=30);
opacity: 0.3;
}
.bigcheck input[type=checkbox]:checked + label:after {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter: alpha(opacity=100);
opacity: 1;
}
</style>
</head>
<body>
<h1>Image Filter</h1>
<h2>This Site</h2>
<div class="input-group" id="site-specific">
<div class="group-item bigcheck">
<input id="site-enable" class="option" name="site-enable" type="checkbox" />
<label for="site-enable"></label>
</div>
<div class="group-item select-wrap">
<select id="site-filter" class="option filterlist" name="site-filter">
</select>
</div>
</div>
<div>
<input id="clear-overrides" type="button" value="Clear Overrides" />
</div>
<h2>Defaults</h2>
<div class="input-group">
<div class="group-item bigcheck">
<input id="global-enable" class="option" name="global-enable" type="checkbox" />
<label for="global-enable"></label>
</div>
<div class="group-item select-wrap">
<select id="global-filter" class="option filterlist" name="global-filter">
</select>
</div>
</div>
<div style="margin-top: 12px;">
<div class="slider"><label for="v1" title="Custom value for filters. See Options.">V1: </label><input id="v1" class="option" name="option-value1" type="range" min="0" max="1" value="0" step="0.1" /></div>
<div class="slider"><label for="v2" title="Custom value for filters. See Options.">V2: </label><input id="v2" class="option" name="option-value2" type="range" min="0" max="1" value="0" step="0.1" /></div>
<div class="slider"><label for="v3" title="Custom value for filters. See Options.">V3: </label><input id="v3" class="option" name="option-value3" type="range" min="0" max="1" value="0" step="0.1" /></div>
</div>
<div style="margin-top: 12px;">
<label><input class="option" name="option-invert" type="checkbox" />Invert All</label>
</div>
<div style="margin-top: 12px;">
<a id="open-options"/>Options</a>
</div>
</body>
</html>