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
-5
View File
@@ -14,11 +14,6 @@ Alpine.plugin(mask);
Alpine.plugin(collapse);
Alpine.start();
const successAudio = new Audio("/static/sounds/success.mp3");
const popAudio = new Audio("/static/sounds/pop.mp3");
window.paidSound = successAudio;
window.unpaidSound = popAudio;
/**
* Parse a localized number to a float.
* @param {string} stringNumber - the localized number
+4
View File
@@ -0,0 +1,4 @@
import { play } from "cuelume";
window.playSound = play;
+1
View File
@@ -3,6 +3,7 @@ import 'vite/modulepreload-polyfill';
import './js/bootstrap.js';
import './js/datepicker.js';
import './js/htmx.js';
import './js/sounds.js';
import './js/select.js';
import './js/charts.js';
import './js/autosize.js';