-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_settings.html
184 lines (166 loc) · 6.72 KB
/
page_settings.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html>
<head>
<title>TextCompanion settings</title>
<meta charset="utf-8">
<link rel="stylesheet" href="textcompanion.css" />
</head>
<body id="settings" class="text_companion_settings">
<style type="text/css">
body#settings.text_companion_settings {
background-color: #333;
color: #ccc;
font-size: 1rem;
font-family: 'Courier New', Courier, monospace;
margin: 0;
padding: 1.5rem 1rem;
}
#settings h1 {
margin: 0;
padding: 0;
margin-top: 0.3em;
font-size: 1.5rem;
}
#settings h2 {
margin: 0px;
padding: 0.15ch 0px 0.6ch 0px;
font-size: 1rem;
}
#settings {
padding: 0.5em 1em;
}
#settingsArea {
padding: 0 1em;
}
hr {
margin: 0.95em 0px;
display: block;
border: 0;
border-bottom: 1px dashed darkslategray;
}
#buttonSettings>label,
#orderSettings>label,
#menuSettings>label,
#textSettings>label {
display: inline-block;
width: 100%;
font-size: 0.75rem;
margin: 0;
padding: 0;
}
.textOption {
padding: 0.3rem 0.7rem;
display: block;
margin-top: 0.2rem;
width: calc(100% - 1.5rem);
}
input[type='number'] {
width: calc(3ch + 1.5rem);
}
</style>
<h1>TextCompanion settings</h1>
<hr />
<div class="settingsArea" id="buttonSettings">
<h2>Use overlay menu?</h2>
<label title="Use the overlay menu?">
<input type="checkbox" class="buttonOption" id="tc__useOverlay">
Use the overlay menu
</label>
<label title="Use and hold 'ctrl' (Control) key to show overlay after selection">
<input type="checkbox" class="buttonOption" id="tc__overlayKey">
Use and hold 'ctrl' (Control) key to show overlay after selection
</label>
<hr />
<h2>Active overlay buttons</h2>
<label title="Translate selection using DeepL.com">
<input type="checkbox" class="buttonOption" id="tc__translateButton">
Translate selection using DeepL.com
</label>
<label title="Open links in background">
<input type="checkbox" class="buttonOption" id="tc__openLinkButton">
Open links in background
</label>
<label title="Open selected textlinks in background">
<input type="checkbox" class="buttonOption" id="tc__openTextLinkButton">
Open selected textlinks in background
</label>
<label title="Look up in Wiktionary">
<input type="checkbox" class="buttonOption" id="tc__wiktionaryButton">
Look up in Wiktionary
</label>
<label title="Look up in Geizhals.eu">
<input type="checkbox" class="buttonOption" id="tc__geizhalsButton">
Look up in Geizhals.eu
</label>
<label title="Search selection on Google.com">
<input type="checkbox" class="buttonOption" id="tc__googleSelectionButton">
Search selection on Google.com
</label>
</div>
<hr />
<div class="settingsArea" id="orderSettings">
<h2>Active overlay button order</h2>
<label title="Translate selection using DeepL.com">
<input type="number" min="0" max="10" maxlength="3" size="3" placeholder="0" class="orderOption" id="tc__translateOrder">
Translate selection using DeepL.com
</label>
<label title="Open links in background">
<input type="number" min="0" max="10" maxlength="3" size="3" placeholder="0" class="orderOption" id="tc__openLinkOrder">
Open links in background
</label>
<label title="Open selected textlinks in background">
<input type="number" min="0" max="10" maxlength="3" size="3" placeholder="0" class="orderOption" id="tc__openTextLinkOrder">
Open selected textlinks in background
</label>
<label title="Look up in Wiktionary">
<input type="number" min="0" max="10" maxlength="3" size="3" placeholder="0" class="orderOption" id="tc__wiktionaryOrder">
Look up in Wiktionary
</label>
<label title="Look up in Geizhals.eu">
<input type="number" min="0" max="10" maxlength="3" size="3" placeholder="0" class="orderOption" id="tc__geizhalsOrder">
Look up in Geizhals.eu
</label>
<label title="Search selection on Google.com">
<input type="number" min="0" max="10" maxlength="3" size="3" placeholder="0" class="orderOption" id="tc__googleSelectionOrder">
Search selection on Google.com
</label>
</div>
<hr />
<div class="settingsArea" id="menuSettings">
<h2>Active selection context menus</h2>
<label title="Translate selection using DeepL.com">
<input type="checkbox" class="buttonOption" id="tc__translateMenu">
Translate selection using DeepL.com
</label>
<label title="Open links in background">
<input type="checkbox" class="buttonOption" id="tc__openLinkMenu">
Open links in background
</label>
<label title="Open selected textlinks in background">
<input type="checkbox" class="buttonOption" id="tc__openTextLinkMenu">
Open selected textlinks in background
</label>
<label title="Look up in Wiktionary">
<input type="checkbox" class="buttonOption" id="tc__wiktionaryMenu">
Look up in Wiktionary
</label>
<label title="Look up in Geizhals.eu">
<input type="checkbox" class="buttonOption" id="tc__geizhalsMenu">
Look up in Geizhals.eu
</label>
<label title="Search selection on Google.com">
<input type="checkbox" class="buttonOption" id="tc__googleSelectionMenu">
Search selection on Google.com
</label>
</div>
<hr />
<div class="settingsArea" id="textSettings">
<h2>Translation settings</h2>
<label>
Used language code, like "en", "pl", "fr", "de"...<br><br>This is used for translation, lookup and search:
</label>
<input type="text" class="textOption" id="tc__translateLanguage" maxlength="6" placeholder="en" title="Use "en" for English, "de" for German, or "fr" for French, and so on.">
</div>
<script type="text/javascript" src="textcompanion.js"></script>
</body>
</html>