summaryrefslogtreecommitdiff
path: root/frontend/index.html
blob: fcb0c2f54a5bd499d550fc7984325bc46736dec1 (plain)
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
<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<link rel="stylesheet" href="./style.css">
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Victoria Hall LaundryWeb</title>
		<script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>
		<script>
			window.OneSignalDeferred = window.OneSignalDeferred || [];
			OneSignalDeferred.push(async function(OneSignal) {
				await OneSignal.init({
					appId: "83901cc7-d964-475a-90ec-9f854df4ba52",
					welcomeNotification: {
						disable: true,
					},
				});
			});
		</script>
	</head>
	<body>
		<div class="section-container row bg-1" style="height: 164px;">
			<span id="logo">Victoria Hall<br>LaundryWeb</span>
			<span id="logo-id">H?</span>
		</div>
		<div class="section-container row bg-2" style="padding: 8px; gap: 8px;">
			<button class="button button-tab bg-3" disabled>Timer</button>
			<button class="button button-tab bg-3" onclick="window.location.href = '/status/'">Status</button>
		</div>
		<div class="section-container no-pad">
			<span>Loading...</span>
		</div>
		<div class="section-container credits-container">
			<span>Developed by <a href="https://altafcreator.com">Athaalaa Altaf Hafidz</a>, a fellow resident • <a href="https://git.altafcreator.com/victoriahall-laundryweb.git/">Source Code</a></span>
		</div>
		<a href="mailto:dev@altafcreator.com" class="feedback"><span>✉️ Bugs? Feedback?</span></a>
		<script src="/main.js"></script>
		<script>
			(async () => {
				const timers = await fetchTimers();
				if (timers.length > 0) {
					window.location.href = './timer/';
				} else {
					window.location.href = './status/';
				}
			})();
		</script>
	</body>
</html>