forked from mirrors/akkoma-fe
Compare commits
No commits in common. "8c44100220b31c0bcf4991ef01deacda3ad3ab4a" and "0ad709c9f372f1c3ba551232b851fc10cbc13a0a" have entirely different histories.
8c44100220
...
0ad709c9f3
1 changed files with 35 additions and 27 deletions
|
@ -378,8 +378,16 @@
|
|||
localStorage.audiomuted = audio.muted = musicmute.checked;
|
||||
playMusic();
|
||||
})
|
||||
volumeStepDwn.addEventListener('click', () => volumeAdd(-0.05))
|
||||
volumeStepUp.addEventListener('click', () => volumeAdd(0.05))
|
||||
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);
|
||||
})
|
||||
|
||||
updateVolumeLabel();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue