-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
143 lines (103 loc) · 5.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Happydia</title>
<link href="css/tailwind.min.css" rel="stylesheet">
<style>
html,
body {
width: 340px
}
.toggle__dot {
top: -.25rem;
left: -.25rem;
transition: all 0.3s ease-in-out;
}
input:checked~.toggle__dot {
transform: translateX(100%);
background-color: #0bb619;
}
.tooltip .tooltip-text {
visibility: hidden;
text-align: center;
padding: 6px 6px;
position: absolute;
z-index: 100;
}
.tooltip:hover .tooltip-text {
visibility: visible;
}
</style>
</head>
<body>
<div class="bg-white shadow-xl overflow-hidden">
<div class="p-4">
<img id="logo" src="icons/on48.png" alt="" srcset="">
<p class="tracking-wide text-xl font-bold text-gray-700">Happydia</p>
<p class="text-sm text-gray-900">Happy Social Media</p>
<p class="text-gray-700">Block sad and depressing posts from your social feeds. </p>
</div>
<div class="flex p-4 border-t border-gray-300 text-gray-700">
<div id="status" class="flex-1 inline-flex items-center">
</div>
<div class="flex-2 inline-flex items-center">
<label for="toogleA" class="flex items-center cursor-pointer">
<!-- toggle -->
<div class="relative">
<!-- input -->
<input id="toogleA" type="checkbox" class="hidden" />
<!-- line -->
<div class="toggle__line w-10 h-4 bg-gray-400 rounded-full shadow-inner"></div>
<!-- dot -->
<div class="toggle__dot absolute w-6 h-6 bg-white rounded-full shadow inset-y-0 left-0"></div>
</div>
</label>
</div>
</div>
<div class="flex border-t border-gray-300 text-gray-700">
<div class="cursor-pointer tooltip border-r w-1/3 h-12 p-3 flex">
<span class="tooltip-text bg-white shadow-lg p-3 -mt-6 -ml-1 rounded">Facebook blocked posts</span>
<img class="h-5 mr-3" src="imgs/facebook.png" alt="" srcset="">
<p id="totalfb"></p>
</div>
<div class="cursor-pointer tooltip border-r w-1/3 h-12 p-3 flex">
<span class="tooltip-text bg-white shadow-lg p-3 -mt-6 -ml-1 rounded">Twitter blocked posts</span>
<img class="h-5 mr-3" src="imgs/twitter.png" alt="" srcset="">
<p id="totaltwitter"></p>
</div>
<div class="cursor-pointer tooltip border-r w-1/3 h-12 p-3 flex">
<span class="tooltip-text bg-white shadow-lg p-3 -mt-6 -ml-1 rounded">Youtube blocked videos & comments</span>
<img class="h-5 mr-3" src="imgs/youtube.png" alt="" srcset="">
<p id="totalyoutube"></p>
</div>
</div>
<div class="px-4 pb-4 pt-1 border-t border-gray-300 bg-gray-100">
<div class="flex items-center pt-2">
<div id="helpBtn" class="tooltip cursor-pointer bg-cover bg-center w-6 h-6 rounded-full mr-3"
style="background-image: url(imgs/question.png)"><span
class="tooltip-text bg-white shadow p-3 -mt-6 -ml-1 rounded">Help</span>
</div>
<div id="donateBtn" class="tooltip cursor-pointer bg-cover bg-center w-6 h-6 mr-3"
style="background-image: url(imgs/money.png)"><span
class="tooltip-text bg-white shadow p-3 -mt-6 -ml-1 rounded">Donate</span>
</div>
<div id="aboutBtn" class="tooltip cursor-pointer bg-cover bg-center w-6 h-6 rounded-full mr-3"
style="background-image: url(imgs/about.png)"><span
class="tooltip-text bg-white shadow p-3 -mt-6 -ml-1 rounded">Contact Developer</span>
</div>
<div id="resetBtn" class="tooltip cursor-pointer bg-cover bg-center w-6 h-6 rounded-full mr-3"
style="background-image: url(imgs/reset.png)"><span
class="tooltip-text bg-white shadow p-3 -mt-6 -ml-1 rounded">Reset Counter</span>
</div>
<div id="githubBtn" class="tooltip cursor-pointer bg-cover bg-center w-6 h-6 rounded-full mr-3"
style="background-image: url(imgs/github.png)"><span
class="tooltip-text bg-white shadow p-3 -mt-6 -ml-1 rounded">Github Repository</span>
</div>
</div>
</div>
</div>
<script src="js/popup.js"></script>
</body>
</html>