mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-20 11:41:19 +02:00
feat: replace mp3 sounds with cuelume; deprecate volume setting
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user