diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-11-12 08:11:40 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-11-12 08:11:40 +0200 |
commit | 3f09d98842429be87f734caf0dc49357adecab92 (patch) | |
tree | 8f1190e2419beef1145b23b9e5369d69d4a8919d /client | |
parent | 130a30756962cc013e686e2671f92e97b88e7c1b (diff) | |
download | arching-kaos-radio-3f09d98842429be87f734caf0dc49357adecab92.tar.gz arching-kaos-radio-3f09d98842429be87f734caf0dc49357adecab92.tar.bz2 arching-kaos-radio-3f09d98842429be87f734caf0dc49357adecab92.zip |
Remove start button after press
Diffstat (limited to 'client')
-rw-r--r-- | client/js/ui/main.js | 5 |
1 files changed, 4 insertions, 1 deletions
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 |