forked from kamilakis/qbitload
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.html
More file actions
131 lines (126 loc) · 3.53 KB
/
config.html
File metadata and controls
131 lines (126 loc) · 3.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>API Config</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
width: 300px;
}
label {
display: block;
margin-bottom: 8px;
}
input {
width: 100%;
padding: 8px;
margin-bottom: 16px;
font-size: 14px;
border-radius: 4px;
}
button {
padding: 10px;
font-size: 14px;
cursor: pointer;
border-radius: 4px;
}
select {
border-radius: 4px;
}
.dark-mode-body {
background-color: black;
color: white;
}
.dark-mode-others {
background-color: #3C3C4399;
color: white;
}
.text {
position: absolute;
top: 3%;
left: 150px;
}
.form {
position: relative;
left: -8px;
}
.github-light {
background: url('icons/githublight.png') no-repeat center center;
border: none;
width: 48px;
height: 48px;
position: absolute;
bottom: -10px;
right: 40px;
}
.github-dark {
background: url('icons/githubdark.png') no-repeat center center;
border: none;
width: 48px;
height: 48px;
position: absolute;
bottom: -10px;
right: 40px;
}
.open-qbit-button {
position: absolute;
top: -10px;
right: -19px;
}
.settings-button-light {
background: url('icons/settingslight.png') no-repeat center center;
border: none;
position: absolute;
bottom: -10px;
right: -19px;
width: 48px;
height: 48px;
}
.settings-button-dark {
background: url('icons/settingsdark.png') no-repeat center center;
border: none;
position: absolute;
bottom: -10px;
right: -19px;
width: 48px;
height: 48px;
}
</style>
</head>
<body>
<div class="container">
<image src="icons/icon-96.png"></image>
<div class="text">
<h2>qBittorrent API <br></br>Configuration</h2>
</div>
</div>
<br></br>
<div class="form">
<form id="config-form">
<select id="apiScheme" required>
<option value="http">HTTP</option>
<option value="https">HTTPS</option>
</select>
<br></br>
<label for="apiHost">Host</label>
<input type="text" id="apiHost" placeholder="Enter qBittorrent Address" required>
<label for="apiPort">Port</label>
<input type="text" id="apiPort" placeholder="Enter qBittorrent Port" required>
<label for="apiUsername">Username</label>
<input type="text" id="apiUsername" placeholder="Enter qBittorrent Username" required>
<label for="apiPassword">Password</label>
<input type="password" id="apiPassword" placeholder="Enter qBittorrent Password" required>
<button id="submit" type="submit">Save Credentials</button>
<span id="success-checkmark" style="display: none; color: green; font-size: 20px;">✔️</span>
<span id="failure-x" style="display: none; color: red; font-size: 20px;">❌</span>
</form>
<button id="settings" class="settings-button-light"></button>
<a id="github" class="github-light" href="https://github.com/kamilakis/send-to-qbittorrent" target="_blank"></a>
<button id="openQbit" class="open-qbit-button">Open WebUI</button>
</div>
<script src="config.js"></script>
</body>
</html>