-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
51 lines (44 loc) · 2.84 KB
/
Copy pathpopup.html
File metadata and controls
51 lines (44 loc) · 2.84 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
body { font-family: sans-serif; width: 400px; padding: 10px; background-color: #1e1e1e; color: #e0e0e0; }
textarea { width: 100%; height: 70px; margin-top: 5px; margin-bottom: 10px; resize: vertical; box-sizing: border-box; background-color: #2d2d2d; color: #fff; border: 1px solid #444; border-radius: 4px; padding: 5px; }
.flex-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.lang-select { padding: 4px; background: #2d2d2d; color: #fff; border: 1px solid #444; border-radius: 4px; }
.output-container { border-top: 1px solid #444; padding-top: 10px; margin-top: 10px; }
.output-header { display: flex; justify-content: space-between; align-items: center; font-weight: bold; font-size: 0.9em; margin-bottom: 5px; }
.remove-btn { color: #ff5555; cursor: pointer; border: none; background: none; font-weight: bold; }
.add-btn { margin-top: 10px; width: 100%; padding: 8px; cursor: pointer; background: #3a3a3a; color: #fff; border: 1px solid #555; border-radius: 4px; }
.add-btn:hover { background: #4a4a4a; }
.api-key-area { background: #252526; padding: 8px; border-radius: 4px; margin-bottom: 12px; border: 1px solid #333; }
.api-key-area label { font-size: 0.85em; color: #aaa; display: block; margin-bottom: 4px; }
.api-input { flex: 1; padding: 4px; background: #1a1a1a; color: #fff; border: 1px solid #444; border-radius: 4px; font-size: 0.85em; }
.toggle-btn { padding: 4px 8px; background: #444; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 0.85em; }
.toggle-btn:hover { background: #555; }
</style>
</head>
<body>
<div>
<div class="flex-row">
<label for="input_lang">翻訳:</label>
<select id="input_lang" class="lang-select"></select>
<span>➜</span>
<select id="target_lang" class="lang-select"></select>
</div>
<textarea id="input" placeholder="翻訳するテキストを入力..."></textarea>
</div>
<div id="outputs_wrapper"></div>
<button id="add_output_btn" class="add-btn">+ 翻訳サービスを追加</button>
<br><br>
<div class="api-key-area">
<label for="deepl_key_input">DeepL API Key (自動保存されます):</label>
<div class="flex-row" style="margin-bottom: 0;">
<input type="password" id="deepl_key_input" class="api-input" placeholder="ここにAPIキーを入力">
<button id="toggle_key_btn" class="toggle-btn">表示</button>
</div>
</div>
</body>
<script src="popup.js"></script>
</html>