Removed vol up and down buttons.
This commit is contained in:
parent
e082527edc
commit
4b68b93e7b
@ -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; });
|
@ -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]!
|
||||
|
Loading…
Reference in New Issue
Block a user