From 1f532d12d4fd8df4116a63ea62a8b21eba1d2db3 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sat, 29 Nov 2025 23:47:09 +0700 Subject: response codes --- frontend/start.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 frontend/start.js (limited to 'frontend/start.js') diff --git a/frontend/start.js b/frontend/start.js new file mode 100644 index 0000000..f760f11 --- /dev/null +++ b/frontend/start.js @@ -0,0 +1,12 @@ +document.getElementById("startbtn").addEventListener("click", () => { + start(); +}); +startUpdateMachines(); + +const notbtn = document.getElementById("notbtn") +notbtn.addEventListener("click", () => requestPermission()) +function requestPermission() { + console.log("Requesting permission..."); + OneSignal.Notifications.requestPermission(); +} +const notif = document.getElementById("notif-panel"); -- cgit v1.2.3