From 3f09d98842429be87f734caf0dc49357adecab92 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 12 Nov 2024 08:11:40 +0200 Subject: Remove start button after press --- client/js/ui/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/js/ui/main.js b/client/js/ui/main.js index 9a322e6..e45080a 100644 --- a/client/js/ui/main.js +++ b/client/js/ui/main.js @@ -190,7 +190,10 @@ var placeholders = { timeOfVisit: document.querySelector('.time-of-visit') } -document.querySelector("#start-button").addEventListener("click",()=>{start_radio();}); +document.querySelector("#start-button").addEventListener("click",()=>{ + start_radio(); + document.querySelector("#start-button").remove(); +}); document.querySelector("#sync-button").addEventListener("click",()=>{sync_radio();}); // @license-end -- cgit v1.2.3