-
Notifications
You must be signed in to change notification settings - Fork 22
/
popup.html
223 lines (200 loc) · 5.21 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!doctype html>
<html>
<head>
<title>CoronaBLOCK for Facebook</title>
<script src="js/external/jquery-1.11.1.min.js"></script>
<script src="js/storage.js"></script>
<script src="js/popup.js"></script>
<link type="text/css" rel="stylesheet" media="all" href="css/fa.min.css">
<link type="text/css" rel="stylesheet" media="all" href="css/styles.css" />
<link type="text/css" rel="stylesheet" media="all" href="css/popup.css" />
<style>
.toggle-button-cover {
display: table-cell;
position: relative;
width: 200px;
box-sizing: border-box;
}
.button-cover {
margin: 20px;
border-radius: 4px;
}
.button-cover:before {
position: absolute;
right: 0;
bottom: 0;
color: #d7e3e3;
font-size: 12px;
line-height: 1;
padding: 5px;
}
.button-cover,
.knobs,
.layer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.button {
position: relative;
top: 50%;
width: 74px;
height: 36px;
margin: 0 auto;
overflow: hidden;
}
.button.r,
.button.r .layer {
border-radius: 100px;
}
.button.b2 {
border-radius: 2px;
}
.checkbox {
position: relative;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
opacity: 0;
cursor: pointer;
z-index: 3;
}
.knobs {
z-index: 2;
}
.layer {
width: 100%;
background-color: #ebf7fc;
transition: 0.3s ease all;
z-index: 1;
}
#button-3 .knobs:before {
content: 'OFF';
position: absolute;
top: 4px;
left: 4px;
width: 20px;
height: 10px;
color: #fff;
font-size: 10px;
font-weight: bold;
text-align: center;
line-height: 1;
padding: 9px 4px;
background-color: #F44336;
border-radius: 50%;
transition: 0.3s ease all, left 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
}
#button-3 .checkbox:active+.knobs:before {
width: 46px;
border-radius: 100px;
}
#button-3 .checkbox:checked:active+.knobs:before {
margin-left: -26px;
}
#button-3 .checkbox:checked+.knobs:before {
content: 'ON';
left: 42px;
background-color: rgb(0, 206, 51);
}
.onoffswitch {
position: relative;
/* width: 10px; */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
.post-blocked {
/* font-size: 16px; */
/* padding-top: 35px; */
max-width: 260px;
text-align: center;
margin: 0 auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: bold;
font-size: 22px;
color: #fff;
}
.warning {
/* font-size: 16px; */
padding-top: 10px;
padding-bottom: 2px;
max-width: 260px;
text-align: center;
margin: 0 auto;
overflow: hidden;
font-weight: bold;
font-size: 18px;
color: rgb(255, 129, 0);
}
.report-group {
margin-top: 0px !important;
}
.logo-text {
text-align: center;
margin-bottom: 12px;
}
#subtext2,
#subtext3,
.warning {
display: none;
}
</style>
</head>
<body>
<div id="fb-root"></div>
<div class="header">
<div class="logo-text">
<label class="title">CoronaBLOCK is:</label>
</div>
<div class="onoffswitch">
<div class="button r" id="button-3">
<input type="checkbox" class="checkbox" id="onoff">
<div class="knobs"></div>
<div class="layer"></div>
</div>
</div>
<p id="subtext">Coronavirus posts <b>will</b> show up on your Facebook feed</p>
<p id="subtext2"><i class="fas fa-sync" aria-hidden="true"></i><b> please reload the page </b><i class="fas fa-sync" aria-hidden="true"></i></p>
<p id="subtext3"><i class="fas fa-sync" aria-hidden="true"></i><b> please reload the page </b><i class="fas fa-sync" aria-hidden="true"></i></p>
<div class="post-blocked">Posts blocked: <span class="blocked">-</span></div>
<div class="warning">This will not work on this site. Please go to Facebook and refresh the page.</div>
</div>
<div class="container">
<p class="title">If You Feel Better</p>
<ul class="listgroup">
<li class="listgroupitem">
<a title="Click to share!" href="#" id="share">
<div class="badge">
<i class="fa fa-share" aria-hidden="true"></i>
</div>
<text class="maintext">Share this on Facebook</text>
</a>
</li>
<li class="listgroupitem">
<a title="Click to donate!" href="#" id="donation">
<div class="badge">
<i class="fas fa-coffee" aria-hidden="true"></i>
</div>
<text class="maintext">Donate to this project</text>
</a>
</li>
</ul>
</div>
<div class="container">
<p class="title">Did we miss a post?</p>
<ul class="listgroup report-group">
<li class="listgroupitem">
<a title="Click here to go to the report page!" href="#" id="report">
<text class="maintext report-text">Click here to report it!</text>
</a>
</li>
</ul>
</div>
</body>
</html>