forked from mirrors/akkoma-fe
Compare commits
2 commits
0ad709c9f3
...
8c44100220
Author | SHA1 | Date | |
---|---|---|---|
|
8c44100220 | ||
|
e323fa404b |
1 changed files with 27 additions and 35 deletions
|
@ -378,16 +378,8 @@
|
||||||
localStorage.audiomuted = audio.muted = musicmute.checked;
|
localStorage.audiomuted = audio.muted = musicmute.checked;
|
||||||
playMusic();
|
playMusic();
|
||||||
})
|
})
|
||||||
volumeStepDwn.addEventListener('click', () => {
|
volumeStepDwn.addEventListener('click', () => volumeAdd(-0.05))
|
||||||
var e = audio.volume - 0.05;
|
volumeStepUp.addEventListener('click', () => volumeAdd(0.05))
|
||||||
if (e < 0) e = 0;
|
|
||||||
volumeSet(e);
|
|
||||||
})
|
|
||||||
volumeStepUp.addEventListener('click', () => {
|
|
||||||
var e = audio.volume + 0.05;
|
|
||||||
if (e > 1) e = 1;
|
|
||||||
volumeSet(e);
|
|
||||||
})
|
|
||||||
|
|
||||||
updateVolumeLabel();
|
updateVolumeLabel();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue