summaryrefslogtreecommitdiff
path: root/frontend/status
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/status')
-rw-r--r--frontend/status/index.html38
1 files changed, 24 insertions, 14 deletions
diff --git a/frontend/status/index.html b/frontend/status/index.html
index f69ca1d..46c50ed 100644
--- a/frontend/status/index.html
+++ b/frontend/status/index.html
@@ -5,19 +5,7 @@
<link rel="stylesheet" href="/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="manifest" href="/manifest.json" />
- <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>
+ <title>LaundryWeb</title>
</head>
<body>
<style>
@@ -26,9 +14,13 @@
}
</style>
<div class="section-container row bg-1" style="height: 164px;">
- <span id="logo">Victoria Hall<br>LaundryWeb</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>
@@ -111,6 +103,22 @@
</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>
@@ -118,5 +126,7 @@
<script src="/main.js"></script>
<script src="/status.js"></script>
<script src="/permissionrequest.js"></script>
+ <script src="/popup.js"></script>
+ <script src="/ios_popup.js"></script>
</body>
</html>