-
Notifications
You must be signed in to change notification settings - Fork 67
/
lockdown.html
99 lines (86 loc) · 2.89 KB
/
lockdown.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>LeechBlock Lockdown</title>
<link href="/jquery-ui/jquery-ui.min.css" rel="stylesheet">
<link href="/options.css" rel="stylesheet">
<link href="/icons/leechblock32.ico" rel="icon" type="image/x-icon">
<link href="/icons/leechblock32.ico" rel="shortcut icon" type="image/x-icon">
<link id="themeLink" rel="stylesheet">
</head>
<body>
<div id="form-container">
<form id="form" style="display: none;" action="javascript: null;">
<fieldset class="ui-widget ui-widget-content">
<legend>LeechBlock Lockdown</legend>
<p>
<label>Enter the duration of the lockdown:</label><br>
<div>
<input id="hours" type="text" size="6" list="hours-list">
<datalist id="hours-list">
<option value="1">
<option value="2">
<option value="3">
<option value="4">
<option value="5">
<option value="6">
<option value="12">
<option value="18">
<option value="24">
</datalist>
<label for="hours">hour(s)</label>
<input id="mins" type="text" size="6" list="mins-list">
<datalist id="mins-list">
<option value="5">
<option value="10">
<option value="15">
<option value="20">
<option value="25">
<option value="30">
<option value="35">
<option value="40">
<option value="45">
<option value="50">
<option value="55">
</datalist>
<label for="mins">minute(s)</label>
</div>
</p>
<hr>
<p>
<label>Select the sites to block during the lockdown:</label><br>
<div id="blockSets">
<p>
<input id="blockSet1" type="checkbox">
<label id="blockSetLabel1" for="blockSet1">Sites specified in Block Set 1</label>
</p>
</div>
</p>
</fieldset>
<p style="text-align: center;">
<button id="activate" type="submit">Activate Lockdown</button>
<button id="cancel" type="button">Cancel</button>
</p>
</form>
</div>
<div id="alerts" style="display: none;">
<div id="alertRetrieveError" title="LeechBlock Lockdown">
<p><strong>Error:</strong> Unable to retrieve options from browser storage.</p>
</div>
<div id="alertNoDuration" title="LeechBlock Lockdown">
<p>Please enter a non-zero duration for the lockdown.</p>
</div>
<div id="alertNoSets" title="LeechBlock Lockdown">
<p>Please select the sites to lockdown.</p>
</div>
</div>
<script src="/jquery-ui/external/jquery/jquery.js"></script>
<script src="/jquery-ui/jquery-ui.min.js"></script>
<script src="/common.js"></script>
<script src="/lockdown.js"></script>
</body>
</html>