summaryrefslogtreecommitdiff
path: root/frontend/start.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-12-29 23:29:40 +0800
committeraltaf-creator <dev@altafcreator.com>2025-12-29 23:29:40 +0800
commite746c6c7e3dfc1fb860878b50fee6f6b4787a490 (patch)
tree3a367699392eb030e9ce7f38e942f18542084782 /frontend/start.js
parente0499b1253e63463529875811464798a4ae67b52 (diff)
startbtn
Diffstat (limited to 'frontend/start.js')
-rw-r--r--frontend/start.js12
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();