diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-10-12 05:49:49 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-10-12 05:49:49 +0300 |
commit | 279fed865c9033f0127dd4c3871f2a1315178efc (patch) | |
tree | 358c1752cd67516acde0501439aa02150ac1d25b /client/js/radio_emulator.js | |
parent | a73479cf89327512e886cfc0a6b829fbb0319231 (diff) | |
download | arching-kaos-radio-279fed865c9033f0127dd4c3871f2a1315178efc.tar.gz arching-kaos-radio-279fed865c9033f0127dd4c3871f2a1315178efc.tar.bz2 arching-kaos-radio-279fed865c9033f0127dd4c3871f2a1315178efc.zip |
Look and feel enhance
Diffstat (limited to 'client/js/radio_emulator.js')
-rw-r--r-- | client/js/radio_emulator.js | 2 |
1 files changed, 2 insertions, 0 deletions
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() |