summaryrefslogtreecommitdiff
path: root/frontend/start.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/start.js')
-rw-r--r--frontend/start.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/frontend/start.js b/frontend/start.js
index 50a3485..07b4643 100644
--- a/frontend/start.js
+++ b/frontend/start.js
@@ -46,4 +46,17 @@ async function requestPermission() {
existingText.innerText = "You currently have other ongoing laundries. You are creating a new timer.";
}
}
+
+ const info = await information();
+
+ const machine = info["machine"];
+
+ const divs = [
+ document.getElementById("dryer1"),
+ document.getElementById("washer1"),
+ document.getElementById("dryer2"),
+ document.getElementById("washer2"),
+ ]
+
+ divs[machine - 1].classList.add("machine-selected");
})();