diff --git a/script.js b/script.js index 2b85b9b..5b69976 100644 --- a/script.js +++ b/script.js @@ -266,7 +266,9 @@ function reStartGame(){ function playSound(filename) { var index = ['intro','select','match','applause'].indexOf(filename); - $('audio.sound').get(index).play(); + var sound = document.querySelectorAll('audio.sound')[index]; + sound.currentTime = 0; + sound.play(); } function toggleFullscreen() { diff --git a/sound/match.mp3 b/sound/match.mp3 index 6d63587..d408ba5 100644 Binary files a/sound/match.mp3 and b/sound/match.mp3 differ diff --git a/sound/match.ogg b/sound/match.ogg index 2ebc264..244a6b3 100644 Binary files a/sound/match.ogg and b/sound/match.ogg differ