diff --git a/SRC/public/js/memory.js b/SRC/public/js/memory.js index 615f447..bcd6fdc 100755 --- a/SRC/public/js/memory.js +++ b/SRC/public/js/memory.js @@ -337,19 +337,39 @@ * You won the game! This function runs the "onGameEnd" callback, which by * default clears the game div entirely and shows a "play again" button. */ - +/* Memory.prototype._winGame = function() { var self = this; if (this.options.onGameEnd() === false) { this._clearGame(); - /* document.getElementById("win").addEventListener( "click", function(e) { + + alert("zoro 2"); + document.location.href="/memo"; self.resetGame(); - });*/ + } else { // run callback this.options.onGameEnd(); + //alert("coucou"); } } +*/ +Memory.prototype._winGame = function() { + var self = this; + if (this.options.onGameEnd() === false) { + this._clearGame(); + this.gameMessages.innerHTML = '