feat: replace mp3 sounds with cuelume; deprecate volume setting

This commit is contained in:
Herculino Trotta
2026-07-17 21:28:13 -03:00
parent e77e96879b
commit 5a80a3b1d3
9 changed files with 16 additions and 17 deletions
-1
View File
@@ -140,7 +140,6 @@ class UserSettingsForm(forms.ModelForm):
"date_format",
"datetime_format",
"number_format",
"volume",
"default_account",
]
widgets = {
Binary file not shown.
Binary file not shown.
@@ -1,20 +1,12 @@
<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()
playSound("sparkle")
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()
playSound("bloom")
end
end
</script>