
the university of puget sound’s own student-run fm radio station.

ON AIR NOW
PROGRAMMING
Up Next
Coming Up
(function () {
const audio = document.getElementById("kups-audio"); const button = document.getElementById("kups-play"); const icon = document.getElementById("kups-play-icon"); const status = document.getElementById("kups-player-status");
if (!audio || !button) return;
button.addEventListener("click", function () {
if (audio.paused) {
audio.play() .then(function () {
icon.textContent = "❚❚"; status.textContent = "KUPS IS LIVE";
}) .catch(function () {
status.textContent = "UNABLE TO START STREAM";
});
} else {
audio.pause();
icon.textContent = "▶"; status.textContent = "PRESS PLAY TO STREAM KUPS";
}
});
audio.addEventListener("pause", function () {
icon.textContent = "▶";
});
audio.addEventListener("playing", function () {
icon.textContent = "❚❚"; status.textContent = "KUPS IS LIVE";
});
audio.addEventListener("error", function () {
status.textContent = "STREAM CONNECTION ERROR";
});
})();
