-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
104 lines (104 loc) · 2.33 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>SimplyFocus</title>
<style>
body {
width: 300px;
padding: 20px;
font-family: Arial, sans-serif;
background-color: #f5f5f5;
color: #333;
}
h2 {
color: #2196F3;
margin-top: 0;
margin-bottom: 15px;
}
.input-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
#siteList {
width: 100%;
height: 100px;
border: 1px solid #ccc;
border-radius: 4px;
padding: 8px;
font-size: 14px;
resize: vertical;
}
.help-text {
font-size: 12px;
color: #666;
margin-top: 5px;
}
button {
width: 100%;
padding: 10px;
margin-top: 10px;
border: none;
border-radius: 4px;
color: white;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s;
}
#addSite {
background-color: #4CAF50;
}
#addSite:hover {
background-color: #45a049;
}
#toggleBlocking {
background-color: #f44336;
}
#toggleBlocking:hover {
background-color: #da190b;
}
#toggleBlocking.active {
background-color: #2196F3;
}
#toggleBlocking.active:hover {
background-color: #0b7dda;
}
#status {
margin-top: 15px;
text-align: center;
font-style: italic;
font-size: 14px;
height: 20px;
}
#redirectUrl {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
box-sizing: border-box;
}
</style>
</head>
<body>
<h2>SimplyFocus</h2>
<div class="input-group">
<label for="siteList">Sites to Block:</label>
<textarea id="siteList" placeholder="e.g. facebook.com twitter.com instagram.com"></textarea>
<p class="help-text">Enter one site per line</p>
</div>
<div class="input-group">
<label for="redirectUrl">Redirect to (optional):</label>
<input type="url" id="redirectUrl" placeholder="https://example.com" />
<p class="help-text">Leave empty to show blocking page</p>
</div>
<button id="addSite">Update Site List</button>
<button id="toggleBlocking">Enable Blocking</button>
<div id="status"></div>
<script src="popup.js"></script>
</body>
</html>