diff --git a/SRC/public/js/fire-work.js b/SRC/public/js/fire-work.js index 2682f39..e479fcc 100644 --- a/SRC/public/js/fire-work.js +++ b/SRC/public/js/fire-work.js @@ -248,9 +248,9 @@ Rocket.prototype.render = function(c) { // init - document.body.appendChild(canvas); +function firework2() +{ document.body.appendChild(canvas); canvas.width = SCREEN_WIDTH; canvas.height = SCREEN_HEIGHT; setInterval(launch, 800); - setInterval(loop, 1000 / 50); -}); \ No newline at end of file + setInterval(loop, 1000 / 50);} diff --git a/SRC/public/js/firework.js b/SRC/public/js/firework.js index 57b430e..782c455 100755 --- a/SRC/public/js/firework.js +++ b/SRC/public/js/firework.js @@ -1,6 +1,6 @@ -var bits=120; // how many bits +var bits=60; // how many bits var speed=33; // how fast - smaller is faster -var bangs=15; // how many can be launched simultaneously (note that using too many can slow the script down) +var bangs=5; // how many can be launched simultaneously (note that using too many can slow the script down) var colours=new Array("#03f", "#f03", "#0e0", "#93f", "#0cf", "#f93", "#f0c"); // blue red green purple cyan orange pink diff --git a/SRC/public/js/memory.js b/SRC/public/js/memory.js index 5da7255..09ea1e9 100755 --- a/SRC/public/js/memory.js +++ b/SRC/public/js/memory.js @@ -373,6 +373,7 @@ Memory.prototype._winGame = function(levelNode, nbPartie, nbcase) { else if (this.options.onGameEnd() === false) { this._clearGame(); firework(); + //firework2(); if(levelNode == 1){this.gameMessages.innerHTML = '
\ ';} diff --git a/SRC/resources/views/frontend/memo.blade.php b/SRC/resources/views/frontend/memo.blade.php index 013a5fa..921702f 100755 --- a/SRC/resources/views/frontend/memo.blade.php +++ b/SRC/resources/views/frontend/memo.blade.php @@ -21,6 +21,9 @@ @section('page-scripts') + + +