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;
|
||||
playMusic();
|
||||
})
|
||||
volumeStepDwn.addEventListener('click', () => {
|
||||
var e = audio.volume - 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);
|
||||
})
|
||||
volumeStepDwn.addEventListener('click', () => volumeAdd(-0.05))
|
||||
volumeStepUp.addEventListener('click', () => volumeAdd(0.05))
|
||||
|
||||
updateVolumeLabel();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue