diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-09-01 06:18:20 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-09-01 06:18:20 +0300 |
commit | 7eb510a56a0015ccd887b694bdb497309dc42f87 (patch) | |
tree | 94ad8d24f308c05ca782a8c6bca53e85a0929086 /src/js/arching-kaos-decentralized-radio.js | |
parent | c03eac7b80432c79c01a744734d0a4d4e989f46f (diff) | |
download | arching-kaos-web-ui-7eb510a56a0015ccd887b694bdb497309dc42f87.tar.gz arching-kaos-web-ui-7eb510a56a0015ccd887b694bdb497309dc42f87.tar.bz2 arching-kaos-web-ui-7eb510a56a0015ccd887b694bdb497309dc42f87.zip |
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
Diffstat (limited to 'src/js/arching-kaos-decentralized-radio.js')
-rw-r--r-- | src/js/arching-kaos-decentralized-radio.js | 19 |
1 files changed, 19 insertions, 0 deletions
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 |