Update main.js

This commit is contained in:
UltraLion
2023-05-21 04:05:11 +02:00
committed by GitHub
parent 4a946aee98
commit 738b8dcb2d
+6 -1
View File
@@ -121,7 +121,12 @@ function loadAudio(file) {
});
}
document.querySelector('button').addEventListener('click', function() {
audioCtx.resume().then(() => {
console.log('Playback resumed successfully');
});
});
// Fonction de gestion du bouton Play
function handlePlay() {
document.getElementById('audio').play();