-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathoptions.html
More file actions
174 lines (172 loc) · 4.57 KB
/
options.html
File metadata and controls
174 lines (172 loc) · 4.57 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>UploadImch Options</title>
<style>
:root {
--primary: #4a90e2;
--primary-dark: #357ab8;
--bg: #f7f7fa;
--form-bg: #fff;
--text: #333;
--input-bg: #fafbfc;
--border: #ccc;
--shadow: 0 2px 8px rgba(0,0,0,0.07);
}
/*noinspection CssUnusedSymbol*/
body.dark-mode {
--primary: #90caf9;
--primary-dark: #1976d2;
--bg: #181a1b;
--form-bg: #23272b;
--text: #e0e0e0;
--input-bg: #23272b;
--border: #444;
--shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body {
font-family: system-ui, sans-serif;
background: var(--bg);
color: var(--text);
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
transition: background 0.3s, color 0.3s;
}
form {
background: var(--form-bg);
padding: 2rem 2.5rem;
border-radius: 8px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 1.2rem;
margin-top: 3rem;
min-width: 320px;
transition: background 0.3s, box-shadow 0.3s;
}
label {
display: flex;
flex-direction: column;
font-weight: 500;
color: var(--text);
gap: 0.3rem;
}
input[type="text"] {
padding: 0.5rem 0.7rem;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 1rem;
background: var(--input-bg);
color: var(--text);
transition: border 0.2s, background 0.3s, color 0.3s;
}
input[type="text"]:focus {
border: 1.5px solid var(--primary);
outline: none;
background: var(--form-bg);
}
button[type="submit"] {
background: var(--primary);
color: #fff;
border: none;
border-radius: 4px;
padding: 0.7rem 1.2rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
margin-top: 0.5rem;
transition: background 0.2s;
}
button[type="submit"]:hover {
background: var(--primary-dark);
}
#reload_albums {
margin-top: 2rem;
background: var(--form-bg);
color: var(--primary);
border: 1px solid var(--primary);
border-radius: 4px;
padding: 0.6rem 1.1rem;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: background 0.2s, color 0.2s;
}
#reload_albums:hover {
background: var(--primary);
color: #fff;
}
#albums_list {
margin-top: 2rem;
background: var(--form-bg);
border-radius: 8px;
box-shadow: var(--shadow);
padding: 1.5rem 2rem;
min-width: 320px;
min-height: 2rem;
color: var(--text);
transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.switch {
display: flex;
align-items: center;
gap: 0.5rem;
margin-top: 1.5rem;
user-select: none;
}
.switch input[type="checkbox"] {
width: 40px;
height: 20px;
appearance: none;
background: #ccc;
outline: none;
border-radius: 20px;
position: relative;
transition: background 0.3s;
cursor: pointer;
}
.switch input[type="checkbox"]:checked {
background: var(--primary);
}
.switch input[type="checkbox"]::before {
content: '';
position: absolute;
left: 3px;
top: 3px;
width: 14px;
height: 14px;
background: #fff;
border-radius: 50%;
transition: transform 0.3s;
}
.switch input[type="checkbox"]:checked::before {
transform: translateX(20px);
}
.switch label {
font-size: 1rem;
color: var(--text);
font-weight: 500;
margin: 0;
}
</style>
</head>
<body>
<form>
<label>Api Key <input type="text" id="api_key" name="api_key" /></label>
<label>Api URL<input type="text" id="api_url" name="api_url" /></label>
<button type="submit">Save</button>
</form>
<button type="button" id="reload_albums">Reload Albums</button>
<div id="albums_list"></div>
<div class="switch">
<label for="dark_mode_toggle">Dark Mode</label>
<input type="checkbox" id="dark_mode_toggle" />
</div>
<script src="options.js"></script>
</body>
</html>