volume icon verbeteringen
This commit is contained in:
1 parent
9187470df5
commit
c0af89c6e5
2 files changed
+7
-2
No files matched your search
@@ -101,10 +101,12 @@
|
||||
console.log(event);
|
||||
let volume = event.target.value / 11;
|
||||
event.target.classList.add("playing");
|
||||
event.target.classList.remove("muted");
|
||||
kankerherrie.play();
|
||||
if (volume <= 1/11) {
|
||||
kankerherrie.pause();
|
||||
event.target.classList.remove("playing");
|
||||
event.target.classList.remove("playing");
|
||||
event.target.classList.add("muted");
|
||||
}
|
||||
kankerherrie.volume = volume;
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user