forked from landmime/XKCD-Substitutions-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
83 lines (80 loc) · 2.62 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
<!DOCTYPE html>
<html>
<head>
<title>XKCD Substitutions 3</title>
<script type="text/javascript" src="Replacer/Constants.js"></script>
<script type="text/javascript" src="Replacer/Replacement.js"></script>
<script type="text/javascript" src="Replacer/Settings.js"></script>
<style type="text/css">
#menuBar {
list-style-type: none;
margin: 0;
padding: 0;
position: fixed;
top: 0;
width: 100%;
background-color: white;
border-bottom: 1px black solid;
padding-top: 10px;
padding-bottom: 10px;
display: block;
}
#menuBar li {
display: inline;
}
#menuBar li a {
display: block;
}
#form {
padding-top: 30px;
}
</style>
</head>
<body>
<div>
<ul id="menuBar">
<li><button id="loadDefaultSettings">Load Default Settings</button></li>
<li><button id="save">Save Current Settings</button></li>
<li id="status"></li>
</ul>
</div>
<div id="form">
<div>
<h2>Substitution style:</h2>
<select id="replacedStyle">
<option value="none">None</option>
<option value="underline">Underline</option>
<option value="highlight">Highlight</option>
</select>
</div>
<div>
<h2>Substitutions:</h2>
<table id="replacements">
<tr>
<th>From</th>
<th>To</th>
<th></th>
</tr>
<tr>
<td></td>
<td></td>
<td><input id="addReplacement" type="button" value="Add" /></td>
</tr>
</table>
</div>
<h2>Blacklisted Domains:</h2>
<table id="blacklistedDomains">
<tr>
<th>Domain</th>
<th></th>
</tr>
<tr>
<td></td>
<td><input id="addBlacklistedDomain" type="button" value="Add" /></td>
</tr>
</table>
</div>
</div>
<script src="options.js"></script>
</body>
</html>