mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-08-27 13:54:05 +02:00
feat: replace mp3 sounds with cuelume; deprecate volume setting
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
import { play } from "cuelume";
|
||||
|
||||
|
||||
window.playSound = play;
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user