diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-29 23:29:40 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-29 23:29:40 +0800 |
| commit | e746c6c7e3dfc1fb860878b50fee6f6b4787a490 (patch) | |
| tree | 3a367699392eb030e9ce7f38e942f18542084782 /frontend/start.js | |
| parent | e0499b1253e63463529875811464798a4ae67b52 (diff) | |
startbtn
Diffstat (limited to 'frontend/start.js')
| -rw-r--r-- | frontend/start.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/frontend/start.js b/frontend/start.js index 5f8270c..f737a47 100644 --- a/frontend/start.js +++ b/frontend/start.js @@ -1,3 +1,5 @@ +const startbtn = document.getElementById("startbtn"); + (async () => { const timers = await fetchTimers(); @@ -28,10 +30,14 @@ document.getElementById("washer2"), ] - divs[machine - 1].classList.add("machine-selected"); -})(); + divs[machine - 1].classList.add("machine-selected"); -const startbtn = document.getElementById("startbtn"); + cookie = await cookieStore.get("subscription_endpoint"); + + if (cookie) { + notif.style.display = "none"; + } +})(); startbtn.addEventListener("click", () => { start(); |
