-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
options.html
115 lines (99 loc) · 2.25 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
background: #91C5D2;
background-image: url(./images/settings.png);
background-repeat: no-repeat;
background-position: bottom right;
height: 98vh;
background-size: 40%;
}
table {
margin: auto;
background: #ffffffbf;
border-radius: 4px;
padding: 4px;
}
</style>
</head>
<body>
<table width="66%">
<tr>
<td colspan="2">
<h2>Server settings</h2>
</td>
</tr>
<tr>
<td>Server URL :</td>
<td>
<input type="url" id="server" name="server" />
</td>
</tr>
<tr>
<td>API Key :</td>
<td>
<input type="password" id="key" name="key" />
</td>
</tr>
<tr>
<td>
<button id="checkBtn">Check Server Status</button>
</td>
<td>
<span id="serverMsg"></span><br />
<span id="apiCheck"></span>
</td>
</tr>
</table>
<br>
<table width="66%">
<tr>
<td colspan="2">
<h2>Download settings</h2>
</td>
</tr>
<tr>
<td>URL schemas downloadable by the server:</td>
<td>
<pre id="urlRegexes"></pre>
</td>
</tr>
<tr>
<td>Downloaded URLs will be <br>added to this Category:</td>
<td>
<select id="category">
<option disabled selected value> -- No Category -- </option>
</select>
<br>
<span id="categoryErr"></span>
<input type="text" id="catid" name="catid" style="display:none" />
</td>
</tr>
<tr>
<td>Close tab on successful download:</td>
<td><input id="closeOnDL" type="checkbox" /></td>
</tr>
</table>
<br>
<table width="66%">
<tr>
<td colspan="2">
<button id="saveBtn" disabled>Save Settings</button>
<span id="statusMsg"></span>
</td>
</tr>
<tr>
<td colspan="2">
<br />
<span>You're using the <a href="http://github.com/Difegue/Tsukihi">Tsukihi</a>
extension for <a href="http://github.com/Difegue/LANraragi">LANraragi</a>,
Version <span id="versionInfo">0.1</span>. 🐦</span>
</td>
</tr>
</table>
</body>
<script src="options.js"></script>
</html>