-
Notifications
You must be signed in to change notification settings - Fork 5
/
popup.html
73 lines (73 loc) · 2.7 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<title>Translation Plugin</title>
<style>
body {
font-family: Arial, sans-serif;
font-size: 14px; /* Unified font size */
margin: 20px;
width: 220px; /* Overall width adjusted to 220px */
text-align: center; /* Center text alignment */
}
.extension-on,
.language-selection,
.dictionary-feature {
display: flex;
align-items: center;
justify-content: space-between; /* Distribute content on the left and right sides */
margin-top: 10px;
width: 200px; /* Fixed width */
margin-left: 0px;
margin-right: 0px;
}
.extension-on label,
.language-selection label,
.dictionary-feature label {
width: 120px; /* Fixed width */
text-align: left; /* Text aligned to the left */
}
.language-selection select {
width: 80px; /* Fixed width */
height: 23px; /* Fixed height */
}
.extension-on input[type="checkbox"],
.dictionary-feature input[type="checkbox"] {
width: 20px; /* Fixed width */
height: 20px; /* Fixed height */
position: absolute; /* Absolute positioning */
left: 170px; /* Set position to move the checkbox to the left */
}
</style>
</head>
<body>
<h3>PopTranslate</h3> <!-- Add title -->
<div class="extension-on">
<label for="extensionOn">Extension Open: </label>
<input type="checkbox" id="extensionOn">
</div>
<div class="language-selection" id="language-selection-line">
<label for="targetLanguage">Target Language:</label>
<select id="targetLanguage">
<option value="en">English</option>
<option value="zh">Chinese (Simplified)</option>
<option value="es">Spanish</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="ja">Japanese</option>
<option value="pt">Portuguese</option>
<option value="ru">Russian</option>
<option value="ar">Arabic</option>
<option value="ko">Korean</option>
<option value="it">Italian</option>
<option value="nl">Dutch</option>
<!-- Add more languages as needed -->
</select>
</div>
<div class="dictionary-feature" id="dictionary-feature-line">
<label for="dictionaryFeature">Dictionary feature: </label>
<input type="checkbox" id="dictionaryFeature">
</div>
<script src="popup.js"></script> <!-- Include external JavaScript file -->
</body>
</html>