forked from artemave/translate_onhover
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoptions.html
144 lines (122 loc) · 3.79 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
<html>
<head>
<title>Fahm Extension Options</title>
<script type="text/javascript" src="lib/jquery.min.js"></script>
<script type="text/javascript" src="lib/lodash.min.js"></script>
<script type="text/javascript" src="lib/transover_utils.js"></script>
<script type="text/javascript" src="lib/options.js"></script>
<script type="text/javascript" src="lib/languages.js"></script>
<script type="text/javascript" src="lib/options_script.js"></script>
<style type="text/css">
body {
margin: 10px auto;
width: 800px;
}
body, table {
color: #4f4f4f;
font: normal normal normal 14px Verdana, Tahoma, sans-serif;
border-spacing: 0px;
}
input, button {
font-size: 14px;
}
select {
font-size: 16px;
}
td {
width: 140px;
}
div.content {
text-align: left;
}
div.heading {
text-align: left;
font-size: 1.3em;
}
.option {
margin-top: 25px;
}
fieldset.option {
border-width: 1px;
border-radius: 5px;
border-style: solid;
border-color: #ccc;
}
div.button {
float: left;
}
div.button_group {
margin-top: 30px;
}
#status {
display: none;
color: green;
float: left;
margin-top: 4px;
margin-left: 8px;
}
.hint {
color: blue;
}
.help {
cursor: help;
border-bottom: 1px dotted;
}
.disabled {
color: #ccc;
}
</style>
</head>
<body>
<div class="content">
<div class="heading">Fahm options</div>
<div class="option">
<label for="translate_by">when I</label>
<select id="translate_by" name="translate_by">
<option value="click">click on word</option>
<option value="point">point at word</option>
</select>
</div>
<div class="option" id="more_options_link">
<a href="#">more options</a> >
</div>
<div id="more_options" style="display:none">
<div class="option">
Configure translate popup hotkey <a id="set_hotkey" href='#'>here</a>
</div>
<div class="option">
<input type="checkbox" id="word_key_only" name="word_key_only"/>
<label for="word_key_only">Only show word translation when</label>
<label for="word_key_only_key"> I hold the
<select name="word_key_only_key" id="word_key_only_key"></select>
key</label>
</div>
<div class="option">
<input type="checkbox" id="selection_key_only" name="selection_key_only"/>
<label for="selection_key_only">Only show selection translation when</label>
<label for="selection_key_only_key"> I hold the
<select name="selection_key_only_key" id="selection_key_only_key"></select>
key</label>
</div>
<div class="option disabled">
<label for="delay">Wait for</label>
<input type="number" id="delay" name="delay" disabled />
<span>ms before showing translation</span>
</div>
<div class="option">
<input type="checkbox" id="do_not_show_oops" name="do_not_show_oops"/>
<label for="do_not_show_oops">Do not show 'Oops... No translation found'</label>
</div>
<div class="option">Don't translate words on these sites:</div>
<table id='exc_urls_table'></table>
</div>
<div class="button_group">
<div class="button">
<button id="save_button">Save</button>
</div>
<div id="status">Saved! Reload pages for changes to take effect.</div>
<div style="clear: both"></div>
</div>
</div>
</body>
</html>