forked from kamilakis/qbitload
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory-picker.html
More file actions
97 lines (97 loc) · 2.38 KB
/
category-picker.html
File metadata and controls
97 lines (97 loc) · 2.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Choose Category</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
padding: 15px;
margin: 0;
min-height: 150px;
}
h3 {
margin-top: 0;
margin-bottom: 16px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}
select, input {
width: 100%;
padding: 8px;
margin-bottom: 16px;
font-size: 14px;
border-radius: 4px;
border: 1px solid #ccc;
}
.button-row {
display: flex;
gap: 10px;
justify-content: flex-end;
}
button {
padding: 8px 16px;
font-size: 14px;
cursor: pointer;
border-radius: 4px;
border: 1px solid #ccc;
}
button.primary {
background-color: #2196F3;
color: white;
border-color: #2196F3;
}
button.primary:hover {
background-color: #1976D2;
}
.new-category-form {
display: none;
}
.new-category-form.visible {
display: block;
}
.new-category-form label {
font-weight: normal;
font-size: 13px;
margin-bottom: 4px;
}
.new-category-form input {
margin-bottom: 10px;
}
.dark-mode-body {
background-color: black;
color: white;
}
.dark-mode-others {
background-color: #3C3C4399;
color: white;
}
</style>
</head>
<body>
<h3>Choose Category</h3>
<label for="categorySelect">Category:</label>
<select id="categorySelect">
<option value="">No category</option>
<option value="__new__">+ Create new category...</option>
</select>
<div class="new-category-form" id="newCategoryForm">
<label for="newCategoryInput">New category name:</label>
<input type="text" id="newCategoryInput" placeholder="Enter category name">
<label for="newCategorySavePath">Save path (optional):</label>
<input type="text" id="newCategorySavePath" placeholder="/path/to/downloads">
</div>
<div class="button-row">
<button id="cancelButton">Cancel</button>
<button id="sendButton" class="primary">Send</button>
</div>
<script src="category-picker.js"></script>
</body>
</html>