-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstatus.html
More file actions
369 lines (334 loc) · 9.89 KB
/
Copy pathstatus.html
File metadata and controls
369 lines (334 loc) · 9.89 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
<html lang="id">
<head>
$(if refresh-timeout)
<meta http-equiv="refresh" content="$(refresh-timeout-secs)" />
$(endif)
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<title>$(hostname) - Status</title>
<link rel="stylesheet" href="/styles/build.css" />
<!-- <script>
$(if advert-pending == 'yes')
var popup = '';
function focusAdvert() {
if (window.focus) popup.focus();
}
function openAdvert() {
popup = open('$(link-advert)', 'hotspot_advert', '');
setTimeout("focusAdvert()", 1000);
}
$(endif)
function openLogout() {
if (window.name != 'hotspot_status') return true;
open('$(link-logout)', 'hotspot_logout', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=280,height=250');
window.close();
return false;
}
</script> -->
</head>
<!-- <body $(if advert-pending == 'yes') onLoad="openAdvert()" $(endif)> -->
<body>
<div id="root" class="min-h-screen text-slate-500">
<!-- Navbar begin -->
<nav id="navbar" class="text-white bg-blue-500">
<div class="pb-4 mx-auto max-w-app-margin-12">
<!-- <div class="pt-6 mx-2 sm:mx-12 md:mx-24"> -->
<div class="pt-6 mx-4 min-[480px]:mx-8 sm:mx-12">
<!-- Top -->
<div
id="navbar__top"
class="flex items-center justify-between"
>
<!-- Logo -->
<a href="/" class="p-2 pl-0 text-lg font-bold"
>$(hostname)</a
>
<!-- Links -->
<ul class="hidden gap-12 md:flex">
<li class="flex items-center justify-center">
<a
href="/about.html"
class="hover:underline"
>About Us</a
>
</li>
<li class="flex items-center justify-center">
<a
href="/services.html"
class="hover:underline"
>Services</a
>
</li>
<li class="flex items-center justify-center">
<a
href="/packages.html"
class="hover:underline"
>Packages</a
>
</li>
</ul>
<!-- Hamburger button -->
<button
type="button"
id="hamburger-button"
class="flex items-center justify-center h-12 border border-white rounded md:hidden"
>
<div
class="h-6 p-0 px-2 hamburger hamburger--squeeze"
>
<div class="w-6 hamburger-box">
<div class="hamburger-inner"></div>
</div>
</div>
</button>
<button
type="button"
class="hidden py-4 px-7 button button-secondary md:block w-max"
data-contact-button="true"
>
Contact Us
</button>
</div>
<!-- Links -->
<ul
id="navbar-links"
style="display: none"
class="flex flex-col md:!hidden"
>
<li>
<a
href="/about.html"
class="block w-full py-2 hover:bg-blue-600"
>About Us</a
>
</li>
<li>
<a
href="/services.html"
class="block w-full py-2 hover:bg-blue-600"
>Services</a
>
</li>
<li>
<a
href="/packages.html"
class="block w-full py-2 hover:bg-blue-600"
>Packages</a
>
</li>
<li>
<button
type="button"
class="mt-4 button button-secondary"
data-contact-button="true"
>
Contact Us
</button>
</li>
</ul>
</div>
</div>
</nav>
<!-- Navbar end -->
<main class="bg-app">
<section>
<div class="mx-auto max-w-app-margin-16">
<!-- Heading begin -->
<div
id="heading"
class="py-12 mx-4 min-[480px]:mx-8 font-light text-white sm:mx-16"
>
<!-- $(if login-by == 'trial')
<h1>Hi, trial user!</h1>
$(elif login-by != 'mac') -->
<h1
id="heading-title"
class="text-xl sm:text-2xl md:text-3xl"
>
<span id="welcome" class="font-bold"
>Selamat ...</span
>,<span id="username"> $(username)</span>!
</h1>
<!-- $(endif) -->
<p class="text-sm sm:text-base md:text-lg">
Selamat menikmati hidangan internet kami :)
</p>
</div>
<!-- Heading end -->
<!-- Main info begin -->
<ul
id="info-main"
class="grid grid-cols-1 min-[480px]:mx-8 min-[480px]:grid-cols-2 sm:grid-cols-3 gap-4 md:gap-6 sm:mx-16 mx-4 pb-12"
>
<li>
<div class="info-main__card">
<i
class="flex items-center justify-center p-2 mb-4 bg-yellow-500 rounded-full w-max"
>
<svg
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 0 448 512"
fill="#fff"
class="text-base -rotate-90"
>
<path
d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"
/>
</svg>
</i>
<div>
<h2 class="sm:text-lg">Upload</h2>
<p id="upload" class="info-main__value">
$(bytes-in-nice)
</p>
</div>
</div>
</li>
<li>
<div class="info-main__card">
<i
class="flex items-center justify-center p-2 mb-4 bg-blue-500 rounded-full w-max"
>
<svg
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 0 448 512"
fill="#fff"
class="text-base rotate-90"
>
<path
d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"
/>
</svg>
</i>
<div>
<h2 class="sm:text-lg">Download</h2>
<p
id="download"
class="info-main__value"
>
$(bytes-out-nice)
</p>
</div>
</div>
</li>
<li>
<div class="info-main__card">
<i
class="flex items-center justify-center mb-4 rounded-full w-max"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
height="2.25em"
fill="#ef4444"
class=""
>
<path
d="M 12 2 C 7.6 2 4 5.6 4 10 C 4 16 12 22 12 22 C 12 22 20 16 20 10 C 20 5.6 16.4 2 12 2 z M 9 7 L 10.40625 7 L 10.40625 14 L 9 14 L 9 7 z M 12 7 L 14.40625 7 C 15.80625 7 16.6875 8.0125 16.6875 9.3125 C 16.6875 10.5125 16.00625 11.5 14.40625 11.5 L 13.40625 11.5 L 13.40625 14 L 12 14 L 12 7 z M 13.40625 8.1875 L 13.40625 10.40625 L 14.40625 10.40625 C 14.80625 10.40625 15.1875 10.10625 15.1875 9.40625 C 15.1875 8.80625 15.00625 8.1875 14.40625 8.1875 L 13.40625 8.1875 z"
/>
</svg>
</i>
<div>
<h2 class="sm:text-lg">IP Address</h2>
<p id="ip" class="info-main__value">
$(ip)
</p>
</div>
</div>
</li>
</ul>
<!-- Main info end -->
</div>
</section>
<section>
<div class="mx-auto max-w-app-margin-16">
<div
class="flex flex-col gap-x-6 gap-y-12 md:flex-row mx-4 min-[480px]:mx-8 sm:mx-16"
>
<div class="w-full md:w-[70%]">
<h2
class="pb-6 text-xl font-semibold text-slate-900"
>
Informasi Lengkap
</h2>
<!-- More info begin -->
<ul id="info-more" class="flex flex-col gap-2">
<li>
<div class="info-more__card">
<p>Username</p>
<p class="info-more__card__value">
$(username)
</p>
</div>
</li>
<li>
<div class="info-more__card">
<p>IP Address</p>
<p class="info-more__card__value">
$(ip)
</p>
</div>
</li>
<li>
<div class="info-more__card">
<p>Waktu aktif</p>
<p
id="uptime"
class="info-more__card__value"
>
$(uptime)
</p>
</div>
</li>
<li>
<div class="info-more__card">
<p>Sisa kuota</p>
<p class="info-more__card__value">
Unlimited
</p>
</div>
</li>
</ul>
<!-- More info end -->
</div>
<div class="w-full">
<h2
class="pb-6 text-xl font-semibold text-slate-900"
>
Cek Kecepatan Internet
</h2>
<iframe
src="https://openspeedtest.com/Get-widget.php"
frameborder="0"
width="100%"
height="350"
class="border border-black bg-slate-200"
></iframe>
<!-- Logout button begin -->
<form
action="$(link-logout)"
name="logout"
onSubmit="return openLogout()"
>
<button
type="submit"
class="w-full mt-6 button button-primary"
>
Logout
</button>
</form>
<!-- Logout button end -->
</div>
</div>
</div>
</section>
</main>
</div>
<script src="/scripts/navbar.js"></script>
<script src="/scripts/index.js" type="module"></script>
</body>
</html>