Child: [9461f7] (diff)

Download this file

options.html    329 lines (275 with data), 14.0 kB

  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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<html>
<head>
<meta charset="utf-8"/>
<!--
/************************************************************************/
/* */
/* Save Page WE - Generic WebExtension - Options Page */
/* */
/* HTML and CSS for Options Page */
/* */
/* Last Edit - 27 Oct 2017 */
/* */
/* Copyright (C) 2016-2017 DW-dev */
/* */
/* Distributed under the GNU General Public License version 2 */
/* See LICENCE.txt file and http://www.gnu.org/licenses/ */
/* */
/************************************************************************/
-->
<title>Save Page WE Options</title>
<script src="options.js"></script>
<style>
/* Chrome - maximum height to avoid scrolling is 531px */
body
{
background-color: #F0F0F0;
}
#options
{
width: 337px;
margin: auto;
padding: 5px;
border: 1px solid #808080;
font-family: "Segoe UI","Helvetica Neue",Ubuntu,Arial;
font-size: 12px;
background-color: white;
}
#options *
{
font-family: "Segoe UI","Helvetica Neue",Ubuntu,Arial;
font-size: 12px;
}
#options-title
{
font-size: 16px;
margin-bottom: 7px;
}
#options-tabbar
{
margin: 0px 3px 4px 2px;
padding: 1px 1px 1px 2px;
border: 1px solid #C0C0C0;
}
#options-tabbar button
{
display: inline-block;
margin: 0px -1px;
padding: 1px 6px;
background-color: #E0E0E0;
border: 1px solid #C0C0C0;
cursor: pointer;
}
#options-tabbar button:not([selected]):hover
{
background-color: #F0F0F0;
}
#options-tabbar button:not([selected]):active
{
background-color: #FFFFFF;
}
#options-tabbar button[selected]
{
background-color: #FFFFFF;
}
#options-tab-general,
#options-tab-saveditems
{
/* display: none; */
}
#options-tabs
{
height: 420px;
}
form
{
margin-bottom: 3px;
}
#options-buttonaction fieldset i
{
color: #808080;
}
fieldset div
{
margin-bottom: 5px;
}
fieldset > div:last-child
{
margin-bottom: 0px;
}
fieldset input[type="checkbox"]
{
margin-right: 7px;
vertical-align: 0px;
}
fieldset input[type="radio"]
{
margin-left: 4px;
margin-right: 7px;
vertical-align: 0px;
}
fieldset input[type="number"]
{
width: 50px;
margin-left: 4px;
margin-right: 8px;
padding: 1px 0px 1px 3px;
text-align: center;
vertical-align: 2px;
}
#options-maxframedepth
{
margin-bottom: 3px;
}
fieldset label
{
vertical-align: 2px;
}
#options-save
{
margin-top: 10px;
}
#options-save-button
{
width: 70px;
margin-left: 2px;
margin-bottom: 2px;
padding-bottom: 2px;
text-align: center;
}
#options-save-status
{
margin-left: 15px;
color: #404040;
visibility: hidden;
}
</style>
</head>
<body>
<div id="options">
<div>
<div id="options-title">Save Page WE Options</div>
<div id="options-tabbar">
<button id="options-tabbar-general">General</button>
<button id="options-tabbar-saveditems">Saved Items</button>
</div>
<div id="options-tabs">
<div id="options-tab-general">
<form id="options-buttonaction">
<fieldset>
<legend>&nbsp;Button Action&nbsp;</legend>
<div>
<input id="options-currentstate" type="radio" name="action" value="0"/><label for="options-currentstate">Save Current State <i>&ndash; only Current State items</i></label>
</div>
<div>
<input id="options-chosenitems" type="radio" name="action" value="1"/><label for="options-chosenitems">Save Chosen Items <i>&ndash; plus chosen Additional items</i></label>
</div>
<div>
<input id="options-completepage" type="radio" name="action" value="2"/><label for="options-completepage">Save Complete Page <i>&ndash; all except CSS images (all)</i></label>
</div>
</fieldset>
</form>
<form>
<fieldset>
<legend>&nbsp;User Interface&nbsp;</legend>
<div>
<input id="options-showsubmenu" type="checkbox"/><label for="options-showsubmenu">Show add-on submenu on context menu</label>
</div>
<div>
<input id="options-showwarning" type="checkbox"/><label for="options-showwarning">Show warning if any resources cannot be saved</label>
</div>
<div>
<input id="options-showurllist" type="checkbox"/><label for="options-showurllist">Show list with URLs of all unsaved resources</label>
</div>
<div>
<input id="options-prefixfilename" type="checkbox"/><label for="options-prefixfilename">Prefix file name with website domain name</label>
</div>
<div>
<input id="options-suffixfilename" type="checkbox"/><label for="options-suffixfilename">Suffix file name with date and time</label>
</div>
</fieldset>
</form>
<form>
<fieldset>
<legend>&nbsp;Save Method&nbsp;</legend>
<div>
<input id="options-usepageloader" type="checkbox"/><label for="options-usepageloader">Use page loader to reduce saved file size</label>
</div>
<div>
<input id="options-removeunsavedurls" type="checkbox"/><label for="options-removeunsavedurls">Remove URLs of all unsaved resources</label>
</div>
<div>
<input id="options-includeinfobar" type="checkbox"/><label for="options-includeinfobar">Include information bar at top of page</label>
</div>
<div>
<input id="options-includesummary" type="checkbox"/><label for="options-includesummary">Include metrics and resource summary</label>
</div>
</fieldset>
</form>
</div>
<div id="options-tab-saveditems">
<form>
<fieldset>
<legend>&nbsp;Saved Items&nbsp;</legend>
<div>
Current State:
</div>
<div>
<input type="checkbox" checked disabled /><label>HTML elements (excluding multimedia)</label>
</div>
<div>
<input type="checkbox" checked disabled /><label>CSS style sheets</label>
</div>
<div>
<input type="checkbox" checked disabled /><label>HTML images (currently displayed)</label>
</div>
<div>
<input type="checkbox" checked disabled /><label>CSS images (currently displayed)</label>
</div>
<div>
<input type="checkbox" checked disabled /><label>CSS fonts (used by this browser)</label>
</div>
<div>
Additional:
</div>
<div>
<input id="options-savehtmlaudiovideo" type="checkbox"/><label for="options-savehtmlaudiovideo">HTML elements (audio & video)</label>
</div>
<div>
<input id="options-savehtmlobjectembed" type="checkbox"/><label for="options-savehtmlobjectembed">HTML elements (object & embed)</label>
</div>
<div>
<input id="options-savehtmlimagesall" type="checkbox"/><label for="options-savehtmlimagesall">HTML images (all)</label>
</div>
<div>
<input id="options-savecssimagesall" type="checkbox"/><label for="options-savecssimagesall">CSS images (all)</label>
</div>
<div>
<input id="options-savecssfontswoff" type="checkbox"/><label for="options-savecssfontswoff">CSS fonts (woff for any browser)</label>
</div>
<div>
<input id="options-savescripts" type="checkbox"/><label for="options-savescripts">Scripts</label>
</div>
</fieldset>
</form>
<form>
<fieldset>
<legend>&nbsp;Save Constraints&nbsp;</legend>
<div>
<input id="options-maxframedepth" type="number" min="0" max="10" value="0"/><label for="options-maxframedepth">Maximum depth of saved nested frames</label>
</div>
<div>
<input id="options-maxresourcesize" type="number" min="0" max="200" value="50"/><label for="options-maxresourcesize">Maximum size allowed for a resource (MB)</label>
</div>
</fieldset>
</form>
</div>
</div>
<div id="options-save">
<button id="options-save-button">Save</button>
<span id="options-save-status">Saved</span>
</div>
</div>
</div>
</body>
</html>