-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
206 lines (195 loc) · 6.56 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html>
<head>
<title>DeepL Translation Settings</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
:root {
--colorBase: #032a48;
}
body {
padding: 0px 15px 10px 15px;
color: var(--colorBase);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
h1 {
font-weight: 500;
}
a {
color: inherit;
}
a:hover {
opacity: 0.7;
}
hr {
margin: 15px 0;
border: none;
border-top: 1px solid #999;
}
.mono, input, select {
font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, monospace;
}
.intro {
}
input, select {
padding: 10px;
border-radius: 5px;
border: 2px solid var(--colorBase);
margin-top: 5px;
margin-bottom: 5px;
width: 400px;
min-width: 400px;
max-width: 100%;
-ms-box-sizing:content-box;
-moz-box-sizing:content-box;
-webkit-box-sizing:content-box;
box-sizing:content-box;
color: var(--colorBase);
}
button {
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
background: var(--colorBase);
border: none;
padding: 10px 25px;
border-radius: 50px;
color: #fff;
font-size: 16px;
transition: 0.2s all;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
button:hover {
background: #4BB543;
transform: translateY(3px);
transition: 0.2s all;
cursor: pointer;
}
.success-wrap {
display: flex;
align-items: center;
padding-bottom: 5px;
padding-top: 15px;
}
.success-wrap div {
height: 100%;
}
#success {
margin-left: 40px;
display: none;
color: #4BB543;
}
.footer {
font-size: 11px;
}
.hint {
color: #999;
font-style: italic;
padding-left: 10px;
}
</style>
</head>
<body>
<div id="deepl-page-wrap">
<p class="intro">__MSG_optionsDescription__ <a href="https://www.deepl.com/pro-api" target="_blank">https://www.deepl.com/pro-api</a></p>
<label for="deepl-api-key">Enter your DeepL API-Key:</label>
<br>
<input type="text" id="deepl-api-key" placeholder="e.g: 61ac12f7-7015-95ca-c78d-dcf65d0c756a:fx">
<br><br>
<label for="deepl-api-url">Choose the appropriate DeepL API URL:</label><br>
<select id="deepl-api-url">
<option>Please choose ...</option>
<option value="https://api-free.deepl.com/v2/translate">(Free) https://api-free.deepl.com/v2/translate</option>
<option value="https://api.deepl.com/v2/translate">(Pro) https://api.deepl.com/v2/translate</option>
</select>
<br><br>
<label for="deepl-api-taghandling">Set tag handling</label><br>
<select id="deepl-api-taghandling">
<option value="0">No</option>
<option value="html">Enable HTML tag handling</option>
<option value="xml">Enable XML tag handling</option>
</select>
<br><br>
<label for="deepl-api-sourcelang">Choose your default language or use the auto-detect feature:</label><br>
<select id="deepl-api-sourcelang">
<option value="auto">Use DeepL auto-detection</option>
<option value="BG">Bulgarian</option>
<option value="CS">Czech</option>
<option value="DA">Danish</option>
<option value="DE">German</option>
<option value="EL">Greek</option>
<option value="EN">English</option>
<option value="ES">Spanish</option>
<option value="ET">Estonian</option>
<option value="FI">Finnish</option>
<option value="FR">French</option>
<option value="HU">Hungarian</option>
<option value="ID">Indonesian</option>
<option value="IT">Italian</option>
<option value="JA">Japanese</option>
<option value="KO">Korean</option>
<option value="LT">Lithuanian</option>
<option value="LV">Latvian</option>
<option value="NB">Norwegian</option>
<option value="NL">Dutch</option>
<option value="PL">Polish</option>
<option value="PT">Portuguese</option>
<option value="RO">Romanian</option>
<option value="RU">Russian</option>
<option value="SK">Slovak</option>
<option value="SL">Slovenian</option>
<option value="SV">Swedish</option>
<option value="TR">Turkish</option>
<option value="UK">Ukrainian</option>
<option value="ZH">Chinese</option>
</select>
<br><br>
<label for="deepl-api-targetlang">Choose target languages into which you want to translate your text:</label><br>
<select id="deepl-api-targetlang" multiple>
<option value="BG">Bulgarian</option>
<option value="CS">Czech</option>
<option value="DA">Danish</option>
<option value="DE">German</option>
<option value="EL">Greek</option>
<option value="EN">English</option>
<option value="ES">Spanish</option>
<option value="ET">Estonian</option>
<option value="FI">Finnish</option>
<option value="FR">French</option>
<option value="HU">Hungarian</option>
<option value="ID">Indonesian</option>
<option value="IT">Italian</option>
<option value="JA">Japanese</option>
<option value="KO">Korean</option>
<option value="LT">Lithuanian</option>
<option value="LV">Latvian</option>
<option value="NB">Norwegian</option>
<option value="NL">Dutch</option>
<option value="PL">Polish</option>
<option value="PT">Portuguese</option>
<option value="RO">Romanian</option>
<option value="RU">Russian</option>
<option value="SK">Slovak</option>
<option value="SL">Slovenian</option>
<option value="SV">Swedish</option>
<option value="TR">Turkish</option>
<option value="UK">Ukrainian</option>
<option value="ZH">Chinese</option>
</select>
<div class="hint"><strong>Hint:</strong> Select one or more with STRG or CMD key</div>
<div class="success-wrap">
<div>
<button id="save-button">Update</button>
</div>
<div id="success">
✅ Settings saved successful
</div>
</div>
<hr>
<div class="mono footer">Build with ❤️ by <a href="https://www.buerobattenberg.de/" target="_blank">BÜRO BATTENBERG</a></div>
</div>
<script src="options.js"></script>
<script src="i18n.js" type="text/javascript"></script>
</body>
</html>