diff --git a/SRC/public/js/memory.js b/SRC/public/js/memory.js index bb146d0..da058e0 100755 --- a/SRC/public/js/memory.js +++ b/SRC/public/js/memory.js @@ -367,8 +367,11 @@ Memory.prototype._winGame = function() {

Vous avez gagné votre partie en ' + this.numMoves + ' coups !

\ '; - var texteADire = "Bravo, tu as gagné en "+this.numMoves+" coups ! "; - responsiveVoice.speak(texteADire, "French Female"); + //var texteADire = "Bravo, tu as gagné en "+this.numMoves+" coups ! "; + //responsiveVoice.speak(texteADire, "French Female"); + var audio = new Audio(); + audio.src ='http://translate.google.com/translate_tts?ie=utf-8&tl=en&q=Hello%20World.'; + audio.play(); this.game.appendChild(this.gameMessages); document.getElementById("mg__onend--restart").addEventListener( "click", function(e) { document.location.href="/memo"; diff --git a/SRC/resources/views/frontend/memo.blade.php b/SRC/resources/views/frontend/memo.blade.php index abc16ad..8c761e3 100755 --- a/SRC/resources/views/frontend/memo.blade.php +++ b/SRC/resources/views/frontend/memo.blade.php @@ -17,7 +17,7 @@ @section('page-scripts') - +