-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoptions.html
104 lines (89 loc) · 2.18 KB
/
options.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>
<title>WaitBlock options</title>
<style>
body {
font: normal 14px/22px sans-serif;
width: 500px;
}
section {
margin: 10px;
}
input {
width: 40%;
}
textarea {
width: 100%;
resize: none;
border: 1px solid #cbcbcb;
}
label {
font-weight: bold;
}
#flash {
color: green;
}
.note {
font-size: 0.8em;
font-style: italic;
}
</style>
</head>
<body>
<section>
<div>
<div><label for="waitTime">Wait time</label></div>
<em class="note">
The time you will wait for a blocked page to load.
</em>
</div>
<div>
<input type="range" id="waitTime" min="0" max="300" step="5">
<output for="waitTime" id="waitTimeOutput"></output>
</div>
</section>
<section>
<div>
<div><label for="blockTime">Allowed time</label></div>
<em class="note">
The time allowed on a page, before it gets blocked again.
</em>
</div>
<div>
<input type="range" id="blockTime" min="0" max="60" step="1">
<output for="blockTime" id="blockTimeOutput"></output>
</div>
</section>
<section>
<div>
<div><label for"blocklist">Blocklist</label></div>
<em class="note">
Comma separated list of domains to block (e.g. facebook.com, reddit.com)
</em>
</div>
<div>
<textarea id="blocklist" rows="3"></textarea>
</div>
</section>
<section>
<div>
<div><label for"whitelist">Whitelist</label></div>
<em class="note">
Comma separated list of allowed subdomains (e.g. l.facebook.com)
</em>
</div>
<div>
<textarea id="whitelist" rows="3"></textarea>
</div>
</section>
<section>
<div>
<button id="saveOptions">Save</button>
<span id="flash"></span>
</div>
</section>
<script type="text/javascript" src="js/waitblock.js"></script>
<script type="text/javascript" src="js/options.js"></script>
</body>
</html>