summaryrefslogtreecommitdiff
path: root/frontend/status/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/status/index.html')
-rw-r--r--frontend/status/index.html108
1 files changed, 90 insertions, 18 deletions
diff --git a/frontend/status/index.html b/frontend/status/index.html
index 49103f3..46c50ed 100644
--- a/frontend/status/index.html
+++ b/frontend/status/index.html
@@ -4,19 +4,8 @@
<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>
+ <link rel="manifest" href="/manifest.json" />
+ <title>LaundryWeb</title>
</head>
<body>
<style>
@@ -25,10 +14,24 @@
}
</style>
<div class="section-container row bg-1" style="height: 164px;">
- <span id="logo">Victoria Hall<br>LaundryWeb</span>
- <span id="logo-id">H1</span>
+ <span id="logo"><span id="icon"></span>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" onclick="window.location.href = '/timer/'">Timer</button>
+ <button class="button button-tab bg-3" disabled>Status</button>
+ </div>
+ <div class="section-container row bg-red" id="notif-panel">
+ <div class="flex-center-container">
+ <span class="icon">🔔</span>
+ </div>
+ <div>
+ <span>Please allow this website to send you notifications to remind you about your laundry. That's like, the whole point of this website.</span>
+ <button id="notbtn" class="button bg-redder">Enable Required Permissions</button>
+ </div>
</div>
<div class="section-container no-pad">
+ <h1 id="status-title">Machine Status for H?</h1>
<div class="machine-container">
<div class="txtcol-dryer" id="dryer1">
<span>Dryer 1</span>
@@ -52,9 +55,78 @@
</div>
</div>
</div>
+ <div class="section-container no-pad">
+ <h1>Dryer 1</h1>
+ <div class="flex-container row">
+ <div class="flex-center-container">
+ <img id="detail-d1-img" src="/assets/img/dryer_off.png" alt="" style="width: 100px;">
+ </div>
+ <div class="flex flex-center-container-jus col">
+ <span class="big-text" id="detail-d1-title">Idle</span>
+ <span id="detail-d1-desc"></span>
+ </div>
+ </div>
+ </div>
+ <div class="section-container no-pad">
+ <h1>Washer 1</h1>
+ <div class="flex-container row">
+ <div class="flex-center-container">
+ <img id="detail-w1-img" src="/assets/img/washer_off.png" alt="" style="width: 100px;">
+ </div>
+ <div class="flex flex-center-container-jus col">
+ <span class="big-text" id="detail-w1-title">Idle</span>
+ <span id="detail-w1-desc"></span>
+ </div>
+ </div>
+ </div>
+ <div class="section-container no-pad">
+ <h1>Dryer 2</h1>
+ <div class="flex-container row">
+ <div class="flex-center-container">
+ <img id="detail-d2-img" src="/assets/img/dryer_off.png" alt="" style="width: 100px;">
+ </div>
+ <div class="flex flex-center-container-jus col">
+ <span class="big-text" id="detail-d2-title">Idle</span>
+ <span id="detail-d2-desc"></span>
+ </div>
+ </div>
+ </div>
+ <div class="section-container no-pad">
+ <h1>Washer 2</h1>
+ <div class="flex-container row">
+ <div class="flex-center-container">
+ <img id="detail-w2-img" src="/assets/img/washer_off.png" alt="" style="width: 100px;">
+ </div>
+ <div class="flex flex-center-container-jus col">
+ <span class="big-text" id="detail-w2-title">Idle</span>
+ <span id="detail-w2-desc"></span>
+ </div>
+ </div>
+ </div>
+ <div class="master-popup-container" id="popup-master">
+ <div class="popup-container">
+ <h1 style="text-align: center;">Initial Setup for iOS</h1>
+ <p>To allow notifications on your iOS device, you’ll need to install this website as a web app.</p>
+ <hr>
+ <p><b>Step 1:</b> Press ... (if using iOS 26) → <b>Share</b></p>
+ <img src="/assets/img/step1.png" alt="">
+ <p><b>Step 2:</b> Scroll down → Select <b>Add to Home Screen</b></p>
+ <img src="/assets/img/step2.png" alt="">
+ <p><b>Step 3:</b> Press <b>Add</b>. If you're using iOS 26+, ensure Open as Web App is enabled.</p>
+ <img src="/assets/img/step3.png" alt="">
+ <p><b>Step 4:</b> Go to your home screen → Reopen this page by <b>pressing</b> the <b>LaundryWeb app</b>.</p>
+ <img src="/assets/img/step4.png" alt="" style="height: 72px; margin-bottom: 32px;">
+ </div>
+ <button id="close-popup"></button>
+ </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>
- startUpdateMachines();
- </script>
+ <script src="/status.js"></script>
+ <script src="/permissionrequest.js"></script>
+ <script src="/popup.js"></script>
+ <script src="/ios_popup.js"></script>
</body>
</html>