1
0

Removed vol up and down buttons.

This commit is contained in:
Alexander Andreev 2023-08-21 18:32:39 +04:00
parent e082527edc
commit 4b68b93e7b
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 1 additions and 8 deletions

View File

@ -73,8 +73,3 @@ audio.addEventListener("timeupdate", e => {
volume.addEventListener("input", e => { volume.addEventListener("input", e => {
audio.volume = parseFloat(e.target.value) / 100.0; }); audio.volume = parseFloat(e.target.value) / 100.0; });
$("vol-up").addEventListener("click", () => {
volume.value = +volume.value + 10; audio.volume = +volume.value / 100.0; });
$("vol-down").addEventListener("click", () => {
volume.value -= 10; audio.volume = +volume.value / 100.0; });

View File

@ -38,9 +38,7 @@ html(lang='en')
| OGG 128 Kb/s | OGG 128 Kb/s
div#radio div#radio
div.player div.player
button#play div #[input#volume(type="range", name="volume" min="0" max="100" orient="vertical")]
small#cur-time 0h 0m 0s
div #[button#vol-down 🔈] #[input#volume(type="range", name="volume" min="0" max="100")] #[button#vol-up 🔊]
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')
| Your browser doesn't support an audio element, it's sad... But you always can take the #[a(href='/playlist') playlist]! | Your browser doesn't support an audio element, it's sad... But you always can take the #[a(href='/playlist') playlist]!