forked from artemave/translate_onhover
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoptions.html
166 lines (142 loc) · 4.76 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<html>
<head>
<title>TransOver 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/tooltip.js"></script>
<script type="text/javascript" src="lib/languages.js"></script>
<script type="text/javascript" src="lib/hotkey_input.jquery.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">TransOver options</div>
<div class="option">
<label for="target_lang">Translate into</label>
<select id="target_lang"></select>
<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">
<label for="source_lang">Translate from</label>
<select id="source_lang"></select>
<span class="hint help"> whaa?</span>
</div>
<div class="option">
<label for="reverse_lang">Reverse translate to</label>
<select id="reverse_lang"></select>
<span class="hint"> (from 'Translate into')</span>
</div>
<div class="option">
<label for="tts">Enable Text-To-Speech</label>
<input type="checkbox" id="tts" name="tts"/>
<span class="hint"> (press Ctrl while popup is showing)</span>
</div>
<div class="option">
<label for="type_and_translate_hotkey">Translate popup hotkey</label>
<input type="text" id="type_and_translate_hotkey" name="type_and_translate_hotkey"/>
</div>
<div class="option">
<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>
<input type="checkbox" id="word_key_only" name="word_key_only"/>
</div>
<div class="option">
<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>
<input type="checkbox" id="selection_key_only" name="selection_key_only"/>
</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">
<label for="do_not_show_oops">Do not show 'Oops... No translation found'</label>
<input type="checkbox" id="do_not_show_oops" name="do_not_show_oops"/>
</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>