-
Notifications
You must be signed in to change notification settings - Fork 66
/
override.html
79 lines (65 loc) · 3.06 KB
/
override.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
<!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 Override</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 Override</legend>
<p>
Allow blocking to be suspended for <input id="mins" type="text" size="2"> minute(s)
</p>
</fieldset>
<p style="text-align: center;">
<button id="activate" type="submit">Activate Override</button>
<button id="cancel" type="button">Cancel</button>
</p>
</form>
</div>
<div id="alerts" style="display: none;">
<div id="alertRetrieveError" title="LeechBlock Override">
<p><strong>Error:</strong> Unable to retrieve options from browser storage.</p>
</div>
<div id="alertLimitReached" title="LeechBlock Override">
<p>You have reached your limit of <strong><span id="alertLimitNum"></span></strong> override(s) <span id="alertLimitReachedPeriod"></span>.</p>
</div>
<div id="alertNoDuration" title="LeechBlock Override">
<p>Please enter a non-zero duration for the override.</p>
</div>
<div id="alertOverrideActivated" title="LeechBlock Override">
<p>Override activated. Blocking will be suspended until <strong><span id="alertOverrideEndTime"></span></strong>.</p>
<p id="alertOverrideNoSets"><strong>Note:</strong> Override will have no effect because you have not selected<br>"Allow temporary override for these sites" for any block sets.</p>
<p id="alertOverrideSets" style="display: none;">Override will be applied to sites in: <span id="alertOverrideSetList"></span></p>
<p id="alertOverrideLimit" style="display: none;">You are allowed <strong><span id="alertLimitLeft"></span></strong> more override(s) <span id="alertLimitPeriod"></span>.</p>
</div>
</div>
<div id="prompts" style="display: none;">
<div id="promptPassword" title="LeechBlock Override">
<p>Enter the password to activate override:</p>
<p><input id="promptPasswordInput" type="text" size="60"></p>
</div>
<div id="promptAccessCode" title="LeechBlock Override">
<p>Enter the following code to activate override:</p>
<p id="promptAccessCodeText"></p>
<p id="promptAccessCodeImage">
<canvas id="promptAccessCodeCanvas"></canvas>
</p>
<p><input id="promptAccessCodeInput" type="text" size="64"></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="/override.js"></script>
</body>
</html>