aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-decentralized-radio.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/arching-kaos-decentralized-radio.js')
-rw-r--r--src/js/arching-kaos-decentralized-radio.js19
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