From 4b68b93e7bbc496b1e1a970d0a2aaf972d17ba4b Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 21 Aug 2023 18:32:39 +0400 Subject: [PATCH] Removed vol up and down buttons. --- web/assets/js/main.js | 5 ----- web/templates/index.pug | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/web/assets/js/main.js b/web/assets/js/main.js index bdf4ae3..aea6541 100644 --- a/web/assets/js/main.js +++ b/web/assets/js/main.js @@ -73,8 +73,3 @@ audio.addEventListener("timeupdate", e => { volume.addEventListener("input", e => { 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; }); \ No newline at end of file diff --git a/web/templates/index.pug b/web/templates/index.pug index ab94235..213a0ca 100644 --- a/web/templates/index.pug +++ b/web/templates/index.pug @@ -38,9 +38,7 @@ html(lang='en') | OGG 128 Kb/s div#radio div.player - button#play - small#cur-time 0h 0m 0s - div #[button#vol-down 🔈] #[input#volume(type="range", name="volume" min="0" max="100")] #[button#vol-up 🔊] + div #[input#volume(type="range", name="volume" min="0" max="100" orient="vertical")] audio(preload='none' controls='' playsinline='') 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]!