From 279fed865c9033f0127dd4c3871f2a1315178efc Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 12 Oct 2024 05:49:49 +0300 Subject: Look and feel enhance --- client/js/radio_emulator.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/js/radio_emulator.js') diff --git a/client/js/radio_emulator.js b/client/js/radio_emulator.js index 56222c4..2df187b 100644 --- a/client/js/radio_emulator.js +++ b/client/js/radio_emulator.js @@ -42,6 +42,7 @@ var ProgressBar = document.querySelector('progress'); var startsOnP = document.querySelector('.starts-on'); var showDurationP = document.querySelector('.show-duration'); var relativeTime = document.querySelector('.relative-time'); +var listeningAt = document.querySelector('.listening-at'); const documentTitle = "Radio Station Emulator"; const separator = " :: "; @@ -61,6 +62,7 @@ function increaseSeconds() youAreHere.innerText = seconds_here; ProgressBar.value = parseInt(currentTimeP.innerText) + seconds_here; relativeTime.innerText = parseInt(currentTimeP.innerText) + seconds_here; + listeningAt.innerText = Math.floor(audioElement.currentTime); return seconds_here; } function getSecondsHere() -- cgit v1.2.3