-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
119 lines (119 loc) · 2.98 KB
/
index.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
116
117
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Remote</title>
<link rel="stylesheet" type="text/css" href="index.css" />
</head>
<body>
<h1>Remote</h1>
<p>
Version: <span id="version">(N/A)</span>,
Upload speed: <span id="upload-speed">(N/A)</span>,
Download speed: <span id="download-speed">(N/A)</span>
</p>
<p id="error"></p>
<p>
<button id="add-by-url">Add by URL</button>
<button id="add-by-torrent">Add by torrent file</button>
<button id="settings">Settings</button>
<button id="refresh">Refresh</button>
</p>
<form id="url-form">
<p>
URL:
<input
id="url"
type="url"
placeholder="https://www.example.com/"
required="required" />
<input type="submit" value="Submit" />
</p>
</form>
<form id="torrent-file-form">
<p>
Torrent file:
<input
id="torrent-file"
type="file"
accept=".torrent"
required="required" />
<input type="submit" value="Submit" />
</p>
</form>
<form id="settings-form">
<p>
Host:
<input
id="host"
type="text"
placeholder="example.com"
required="required" />
Port:
<input
id="port"
type="number"
placeholder="443"
min="0"
max="65535"
required="required" />
Token: <input id="token" type="password" />
<input type="submit" value="Submit" />
</p>
</form>
<h2>Active</h2>
<div id="active-downloads">
<p>(N/A)</p>
</div>
<h2>Waiting</h2>
<div id="waiting-downloads">
<p>(N/A)</p>
</div>
<h2>Inactive</h2>
<div id="inactive-downloads">
<p>(N/A)</p>
</div>
<template id="task-template">
<div>
<p class="info">
GID: <span class="gid"></span>,
Upload speed: <span class="upload-speed"></span> Mbps,
Download speed: <span class="download-speed"></span> Mbps,
Progress: <span class="progress"></span>%,
Status: <span class="status"></span>
</p>
<div class="details">
<ul class="files">
</ul>
</div>
</div>
</template>
<template id="details-button-template">
<button>Details</button>
</template>
<template id="pause-button-template">
<button>Pause</button>
</template>
<template id="resume-button-template">
<button>Resume</button>
</template>
<template id="stop-button-template">
<button>Stop</button>
</template>
<template id="remove-button-template">
<button>Remove</button>
</template>
<template id="file-template">
<li><label><input type="checkbox" class="file-checkbox"></label></li>
</template>
<template id="files-control-template">
<p>
<button class="select-all">Select all</button>
<button class="unselect-all">Unselect all</button>
<button class="update">Update</button>
</p>
</template>
<script type="module" src="./libaria2.js"></script>
<script type="module" src="./index.js"></script>
</body>
</html>