diff --git a/web/assets/js/main.js b/web/assets/js/main.js index 80a543b..822c1e5 100644 --- a/web/assets/js/main.js +++ b/web/assets/js/main.js @@ -46,13 +46,6 @@ audio.volume = volume.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"; $("radio-play").addEventListener("click", e => { diff --git a/web/templates/index.pug b/web/templates/index.pug index d306839..118d170 100644 --- a/web/templates/index.pug +++ b/web/templates/index.pug @@ -40,7 +40,6 @@ html(lang='en') div div button#radio-play - small#radio-elapsed 0h 0m 0s input#radio-volume(type="range" min="0" max="100" orient="vertical") audio(preload='none' controls='' playsinline='') source(src='/live/stream.ogg' type='audio/ogg')