feat: add sounds volume control to user settings

This commit is contained in:
Herculino Trotta
2025-06-29 00:21:32 -03:00
parent eb0c872c50
commit e86e0b8c08
7 changed files with 953 additions and 2 deletions

View File

@@ -1,15 +1,19 @@
<script type="text/hyperscript">
on paid if body do not include #settings-mute-sound
js
volume = JSON.parse(document.getElementById('volume').textContent) / 10
paidSound.pause()
paidSound.currentTime = 0
paidSound.volume = volume
paidSound.play()
end
end
on unpaid if body do not include #settings-mute-sound
js
volume = JSON.parse(document.getElementById('volume').textContent) / 10
unpaidSound.pause()
unpaidSound.currentTime = 0
unpaidSound.volume = volume
unpaidSound.play()
end
end