-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
69 lines (67 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website Blocker</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
margin: 0;
width: 400px; /* Set width of the popup */
height: 600px; /* Set height of the popup */
box-sizing: border-box;
}
h2 {
text-align: center;
}
.input-container {
display: flex;
justify-content: space-between;
margin-bottom: 20px;
}
input {
flex: 1;
padding: 10px;
margin-right: 10px;
font-size: 16px;
}
button {
padding: 10px;
font-size: 16px;
cursor: pointer;
}
ul {
list-style-type: none;
padding: 0;
max-height: 400px;
overflow-y: auto;
}
li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
border-bottom: 1px solid #ddd;
}
.remove-btn {
background-color: red;
color: white;
border: none;
padding: 5px 10px;
cursor: pointer;
border-radius: 3px;
}
</style>
</head>
<body>
<h2>Website Blocker</h2>
<div class="input-container">
<input type="text" id="url-input" placeholder="Enter website to block (e.g. facebook.com)" />
<button id="block-btn">Block</button>
</div>
<ul id="blocked-list"></ul>
<script src="popup.js"></script>
</body>
</html>