diff options
Diffstat (limited to 'frontend/start')
| -rw-r--r-- | frontend/start/index.html | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/frontend/start/index.html b/frontend/start/index.html new file mode 100644 index 0000000..bcfd1a6 --- /dev/null +++ b/frontend/start/index.html @@ -0,0 +1,103 @@ +<!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" /> + <link rel="manifest" href="/manifest.json" /> + <title>LaundryWeb</title> + </head> + <body> + <div class="section-container row bg-1" style="height: 164px;"> + <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" disabled>Timer</button> + <button class="button button-tab bg-3" onclick="window.location.href = '/status/'">Status</button> + </div> + <div class="section-container row bg-dark" id="existing-laundry-panel" style="display: none;"> + <div class="flex-center-container"> + <span class="icon" style="font-weight: 900; font-family: monospace;">i</span> + </div> + <div class="flex"> + <span id="existing-laundry-text">You currently have (an)other laundry(ies) ongoing. You are creating a new timer.</span> + <button id="cancelbtn" class="button bg-darker" onclick="window.location.href = '/timer/'">Cancel</button> + </div> + </div> + <div class="section-container no-pad" style="opacity: .5;"> + <h1>Selected Machine</h1> + <div class="machine-container"> + <div class="txtcol-dryer" id="dryer1"> + <span>Dryer 1</span> + <img src="/assets/img/dryer_off.png" alt="" id="dryer1-img"> + <span id="dryer1-span"></span> + </div> + <div class="txtcol-washer" id="washer1"> + <span>Washer 1</span> + <img src="/assets/img/washer_off.png" alt="" id="washer1-img"> + <span id="washer1-span"></span> + </div> + <div class="txtcol-dryer" id="dryer2"> + <span>Dryer 2</span> + <img src="/assets/img/dryer_off.png" alt="" id="dryer2-img"> + <span id="dryer2-span"></span> + </div> + <div class="txtcol-washer" id="washer2"> + <span>Washer 2</span> + <img src="/assets/img/washer_off.png" alt="" id="washer2-img"> + <span id="washer2-span"></span> + </div> + </div> + </div> + <div class="section-container no-pad"> + <h1>Duration</h1> + <div class="input-field"> + <button class="button bg-3" onclick="decreaseTime()" id="decTime" disabled>-</button> + <span id="min-field">30 minutes</span> + <button class="button bg-3" onclick="increaseTime()" id="incTime">+</button> + </div> + </div> + <div class="section-container no-pad"> + <h1>Start</h1> + <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> + <button class="button bg-1" id="startbtn" disabled>Start</button> + </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 src="/start.js"></script> + <script src="/permissionrequest.js"></script> + <script src="/popup.js"></script> + <script src="/ios_popup.js"></script> + <script> + rememberUrl(); + </script> + </body> +</html> |
