-
Notifications
You must be signed in to change notification settings - Fork 8
/
options.html
103 lines (77 loc) · 2.94 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>FormatLink settings</title>
<link rel="stylesheet" href="options.css"></link>
</head>
<body>
<h1>FormatLink settings</h1>
<form>
<h2>Formats</h2>
<div class="formats">
<span class="label">Title</span>
<span class="label">Format</span>
<span class="label">HTML</span>
<input type="text" id="title1" placeholder="Title1"></input>
<input type="text" id="format1" placeholder="Format1"></input>
<input type="checkbox" id="html1"></input>
<input type="text" id="title2" placeholder="Title2"></input>
<input type="text" id="format2" placeholder="Format2"></input>
<input type="checkbox" id="html2"></input>
<input type="text" id="title3" placeholder="Title3"></input>
<input type="text" id="format3" placeholder="Format3"></input>
<input type="checkbox" id="html3"></input>
<input type="text" id="title4" placeholder="Title4"></input>
<input type="text" id="format4" placeholder="Format4"></input>
<input type="checkbox" id="html4"></input>
<input type="text" id="title5" placeholder="Title5"></input>
<input type="text" id="format5" placeholder="Format5"></input>
<input type="checkbox" id="html5"></input>
<input type="text" id="title6" placeholder="Title6"></input>
<input type="text" id="format6" placeholder="Format6"></input>
<input type="checkbox" id="html6"></input>
<input type="text" id="title7" placeholder="Title7"></input>
<input type="text" id="format7" placeholder="Format7"></input>
<input type="checkbox" id="html7"></input>
<input type="text" id="title8" placeholder="Title8"></input>
<input type="text" id="format8" placeholder="Format8"></input>
<input type="checkbox" id="html8"></input>
<input type="text" id="title9" placeholder="Title9"></input>
<input type="text" id="format9" placeholder="Format9"></input>
<input type="checkbox" id="html9"></input>
</div>
<h2>Global Replacements</h2>
<p>Variable values are preprocessed before applying above formats.</p>
<div class="global-replacements">
<span class="label">Variable</span>
<span class="label">Format</span>
<span>page_url</span>
<input type="text" id="page_url_format"></input>
<span>selected_text</span>
<input type="text" id="selected_text_format"></input>
<span>text</span>
<input type="text" id="text_format"></input>
<span>title</span>
<input type="text" id="title_format"></input>
<span>url</span>
<input type="text" id="url_format"></input>
</div>
<h2>Misc</h2>
<div class="checkboxRow">
<input type="checkbox" id="enableContextMenusCheckbox"></input>
<label for="enableContextMenusCheckbox">Context menus</label>
</div>
<div class="checkboxRow">
<input type="checkbox" id="createSubmenusCheckbox"></input>
<label for="createSubmenusCheckbox">Create submenus</label>
</div>
<div class="btnGroup">
<button class="btn btn-primary" id="saveButton">Save changes</button>
<button class="btn" id="restoreDefaultsButton">Restore defaults</button>
</div>
</form>
<script src="common.js"></script>
<script src="options.js"></script>
</body>
</html>