forked from maggiedelano/Strict-Workflow-Beeminder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
151 lines (132 loc) · 3.83 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<title data-i18n="options_title"></title>
<link rel="stylesheet" href="chrome://resources/css/widgets.css">
<style type="text/css">
body {
background: url(icons/work_full.png) no-repeat fixed right bottom;
font-family: 'Lucida Grande', sans-serif;
color: rgb(48, 57, 66);
-webkit-user-select: none;
padding: 1.5em;
margin: 0;
}
p {
width: 31em;
}
h1 {
margin-top: 0;
font-size: 2.05em;
font-weight: normal;
}
#site-list-wrapper {
margin-bottom: 2em;
}
#site-list-header {
font-weight: bold;
margin-bottom: .25em;
}
#site-list {
height: 16em;
width: 30em;
padding: 5px;
font: -webkit-control;
}
#site-list-wrapper .note {
width: 33em;
}
#save-successful {
color: green;
display: none;
margin-left: 1em;
}
#time-format-error {
color: red;
display: none;
}
#save-successful.show, #time-format-error.show {
display: inline;
}
#work-block-info {
color: red;
display: none;
width: 25em;
}
body.work #work-block-info {
display: block;
}
div {
margin-bottom: .7em;
}
#durations label {
font-weight: bold;
margin-left: 0;
}
#durations .minutes {
font-size: 85%;
margin-right: 1.5em;
}
.note {
font-size: 75%;
}
label {
margin-left: 0.3em;
}
label .note {
margin-left: 2em;
margin-top: 0.3em;
margin-bottom: 0;
}
</style>
</head>
<body>
<h1 data-i18n="options_title"></h1>
<p id="work-block-info" data-i18n="options_work_block_info"></p>
<form id="options-form">
<div id="site-list-wrapper">
<header id="site-list-header">
<select id="blacklist-or-whitelist">
<option data-i18n="options_blacklist_verb"></option>
<option data-i18n="options_whitelist_verb"></option>
</select>
<span data-i18n="options_site_list_header"></span>
</header>
<textarea id="site-list"></textarea>
<p class="note" data-i18n="options_site_list_info"></p>
<p class="note" data-i18n="options_site_list_syntax"></p>
</div>
<div id="durations">
<label for="work-duration">
<span data-i18n="work" data-i18n-caps></span>:
</label>
<input id="work-duration" type="text" size="2" />
<span class="minutes" data-i18n="minutes"></span>
<label for="break-duration">
<span data-i18n="break" data-i18n-caps></span>:
</label>
<input id="break-duration" type="text" size="2" />
<span class="minutes" data-i18n="minutes"></span>
<span id="time-format-error" data-i18n="options_time_format_error"></span>
</div>
<div>
<input id="show-notifications" type="checkbox" />
<label for="show-notifications" data-i18n="options_show_notifications"></label>
</div>
<div>
<input id="should-ring" type="checkbox" />
<label for="should-ring" data-i18n="options_should_ring"></label>
</div>
<div>
<input id="click-restarts" type="checkbox" />
<label for="click-restarts">
<span data-i18n="options_click_restarts"></span>
<p class="note" data-i18n="options_click_restarts_note"></p>
</label>
</div>
<button type="submit" id="save-button" data-i18n="options_save_changes"></button>
<span id="save-successful" data-i18n="options_save_successful"></span>
</form>
<script type="text/javascript" src="options.js"></script>
</body>
</html>