1
0

Don't show elapsed time under a play button.

This commit is contained in:
Alexander Andreev 2023-08-22 17:11:15 +04:00
parent 8a5666743f
commit 21f48e2366
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 0 additions and 8 deletions

View File

@ -46,13 +46,6 @@ audio.volume = volume.value / 100.0;
volume.addEventListener("input", e => audio.volume = e.target.value / 100.0); volume.addEventListener("input", e => audio.volume = e.target.value / 100.0);
audio.addEventListener("timeupdate", e => {
const ct = e.target.currentTime;
const s = Math.floor(ct % 60);
const m = Math.floor((ct / 60) % 60);
const h = Math.floor(ct / 3600);
$("radio-elapsed").textContent = `${h}h ${m}m ${s}s`; });
$("player").style.display = $("player").firstChild.style.display = "flex"; $("player").style.display = $("player").firstChild.style.display = "flex";
$("radio-play").addEventListener("click", e => { $("radio-play").addEventListener("click", e => {

View File

@ -40,7 +40,6 @@ html(lang='en')
div div
div div
button#radio-play button#radio-play
small#radio-elapsed 0h 0m 0s
input#radio-volume(type="range" min="0" max="100" orient="vertical") input#radio-volume(type="range" min="0" max="100" orient="vertical")
audio(preload='none' controls='' playsinline='') audio(preload='none' controls='' playsinline='')
source(src='/live/stream.ogg' type='audio/ogg') source(src='/live/stream.ogg' type='audio/ogg')