]>
Commit | Line | Data |
---|---|---|
1 | export function initializeTada(source) { | |
2 | const audioElement = document.createElement("audio"); | |
3 | audioElement.setAttribute("class", "junction-tada"); | |
4 | audioElement.src = source; | |
5 | document.querySelector("body").appendChild(audioElement); | |
6 | ||
7 | return () => audioElement.play(); | |
8 | } |