aboutsummaryrefslogtreecommitdiff
path: root/client/js/radio_emulator.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/radio_emulator.js')
-rw-r--r--client/js/radio_emulator.js2
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()