-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
65 lines (65 loc) · 1.41 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
<!DOCTYPE html>
<html>
<head>
<title>Translate to Hiragana Options</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 10px 20px;
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
}
input[type=password] {
padding: 8px;
margin: 10px 0;
}
button {
line-height: 24px;
padding: 4px 20px;
border-radius: 4px;
}
.input-row {
padding: 0.5rem 0rem 0rem;
display: flex;
flex-direction: column;
align-items: flex-start;
}
h1 {
display: flex;
align-items:center;
font-size: 150%;
}
h1 img {
height: 0.9em;
padding-right: 4px;
}
.status-row {
margin: 0px 0px 10px 0px;
font-size: 90%;
}
#status {
display: none;
}
</style>
</head>
<body>
<h1><img src="./logo128.png"/>Translate to Hiragana</h1>
<form id="main-form">
<div class="input-row">
<label for="openai_api_key">OpenAI API key</label>
<input type="password" id="openai_api_key" size="80"/>
</div>
<div id="status" class="status-row">
Option saved.
</div>
<div>
<button id="save">Save</button>
</div>
</form>
<script src="options.js"></script>
</body>
</html>