Don't show elapsed time under a play button.
This commit is contained in:
parent
8a5666743f
commit
21f48e2366
@ -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 => {
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user