-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
107 lines (94 loc) · 2.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Just Another Reddit Filter</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Arial", sans-serif;
}
body {
width: 250px;
/* height: 250px; */
background-color: #f9f9f9;
padding: 20px;
border-radius: 8px;
display: flex;
flex-direction: column;
}
h1 {
font-size: 1.2rem;
color: #333;
text-align: center;
margin-bottom: 5px;
}
form {
display: flex;
align-items: center;
width: 100%;
gap: 5px;
margin-bottom: 5px;
}
input[type="text"] {
width: 85%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 0.9rem;
}
button {
background-color: #007bff;
color: white;
border: none;
padding: 6px 10px;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
}
button:hover {
background-color: #0056b3;
}
ul {
list-style: none;
width: 100%;
padding: 10px;
background-color: #f1f1f1;
border-radius: 4px;
font-size: 0.9rem;
text-align: left;
}
li {
display: flex;
justify-content: space-between;
align-items: center;
background: white;
padding: 5px 10px;
border-bottom: 1px solid #ddd;
border-radius: 4px;
}
.delete-btn {
color: #ff4d4d;
cursor: pointer;
font-weight: bold;
font-size: 1rem;
padding: 2px 5px;
}
</style>
</head>
<body>
<h1>Just Another Reddit Filter</h1>
<form id="keywordForm">
<input type="text" id="newKeyWord" placeholder="Add keyword" />
<button id="addToFilter" type="submit">+</button>
</form>
<ul id="savedKeyWords">
<!-- Saved keywords will be displayed here -->
</ul>
<script src="popup.js"></script>
</body>
</html>