-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
92 lines (92 loc) · 2.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
<!DOCTYPE html>
<html>
<head>
<title>Stop Slogan</title>
</head>
<style>
body {
background: rgb(24, 24, 24);
font-size: 1em;
padding: 0;
margin: 0;
}
.container {
width: 400px;
overflow: hidden;
display: flex;
padding: 5px 0;
}
.page {
transition: all 0.25s ease;
width: 100%;
flex-shrink: 0;
}
.h {
color: whitesmoke;
font-size: 0.8em;
margin-bottom: 10px;
display: inline-block;
padding: 0 15px;
}
#bannedSlogansList {
overflow: auto;
max-height: 200px;
}
#bannedSlogansList > span {
display: flex;
width: 100%;
overflow: hidden;
color: whitesmoke;
padding: 5px 0;
cursor: pointer;
}
#bannedSlogansList > span > span {
display: inline-block;
}
#bannedSlogansList > span:nth-child(2n) {
background: rgb(34, 34, 34);
}
#bannedSlogansList > span > span:first-child {
flex-shrink: 0;
width: 50px;
text-align: center;
margin-right: 10px;
}
.pageBtn {
display: block;
width: 100%;
text-align: left;
padding: 10px 15px;
cursor: pointer;
background: rgb(65, 65, 65);
color: rgb(197, 197, 197);
outline: none;
border: none;
}
.pageBtn:hover {
background: rgb(97, 97, 97);
color: rgb(248, 248, 248);
}
</style>
<body>
<div class="container" id="container">
<div id="page1" class="page">
<button id="s_page2" class="pageBtn">
> Go to word banning settings
</button>
<span class="h">Banned slogans found on this webpage: </span>
<div id="bannedSlogansList"></div>
</div>
<div id="page2" class="page">
<button id="s_page1" class="pageBtn">< Go back</button>
<span class="h">Add your own banned slogans: </span>
<span>
<input type="text" placeholder="Type..." />
<button id="add">+</button>
</span>
<div id="userBannedSlogansList"></div>
</div>
</div>
</body>
<script src="background.js"></script>
</html>