aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-decentralized-radio.js
blob: 2c72d586bfebca1ee63dfe36e740506ea8a7c587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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