From 7eb510a56a0015ccd887b694bdb497309dc42f87 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Sep 2023 06:18:20 +0300 Subject: Huge update, read description - Bug fixes - Splitted app.js to many files - Gathered CSS to one place instead of layers - Redesigned page layout - Added settings so you can personalize them later - Redesigned menu layout - Added radio player for AKDR to connect there --- src/js/arching-kaos-decentralized-radio.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/js/arching-kaos-decentralized-radio.js (limited to 'src/js/arching-kaos-decentralized-radio.js') diff --git a/src/js/arching-kaos-decentralized-radio.js b/src/js/arching-kaos-decentralized-radio.js new file mode 100644 index 0000000..2c72d58 --- /dev/null +++ b/src/js/arching-kaos-decentralized-radio.js @@ -0,0 +1,19 @@ +// var radio = document.querySelector("#radio-player"); +// var radioButton = document.querySelector("#radio-button-controller"); + +radio.addEventListener("play", ()=>{ + radioButton.innerText = "turn off"; +}) +radio.addEventListener("pause", ()=>{ + radioButton.innerText = "turn on"; +}) + +function radioToggle(){ + if (radio.paused) { + radio.play(); + } else { + radio.pause(); + } +} + +// vim: tabstop=4 shiftwidth=4 expandtab softtabstop=4 -- cgit v1.2.3