firework memory
This commit is contained in:
parent
efc37a61f8
commit
b8a1a2ae66
@ -4,12 +4,6 @@ var bangs=5; // how many can be launched simultaneously (note that using too man
|
||||
var colours=new Array("#03f", "#f03", "#0e0", "#93f", "#0cf", "#f93", "#f0c");
|
||||
// blue red green purple cyan orange pink
|
||||
|
||||
/****************************
|
||||
* Fireworks Effect *
|
||||
*(c)2004-14 mf2fm web-design*
|
||||
* http://www.mf2fm.com/rv *
|
||||
* DON'T EDIT BELOW THIS BOX *
|
||||
****************************/
|
||||
var bangheight=new Array();
|
||||
var intensity=new Array();
|
||||
var colour=new Array();
|
||||
@ -23,17 +17,20 @@ var swide=800;
|
||||
var shigh=600;
|
||||
var boddie;
|
||||
|
||||
function firework(){
|
||||
if (typeof('addRVLoadEvent')!='function') function addRVLoadEvent(funky) {
|
||||
var oldonload=window.onload;
|
||||
/*var oldonload=window.onload;
|
||||
if (typeof(oldonload)!='function') window.onload=funky;
|
||||
else window.onload=function() {
|
||||
if (oldonload) oldonload();
|
||||
if (oldonload) oldonload();*/
|
||||
funky();
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
addRVLoadEvent(light_blue_touchpaper);
|
||||
|
||||
}
|
||||
|
||||
function light_blue_touchpaper() { if (document.getElementById) {
|
||||
var i;
|
||||
boddie=document.createElement("div");
|
||||
|
@ -34,6 +34,7 @@
|
||||
|
||||
function Memory( options, level, nbcase ) {
|
||||
//console.log(nbcase);
|
||||
console.log("bob");
|
||||
this.options = extend( {}, this.options );
|
||||
extend( this.options, options );
|
||||
this._init(level, nbcase);
|
||||
@ -360,7 +361,8 @@ Memory.prototype._winGame = function() {
|
||||
|
||||
if (this.options.onGameEnd() === false) {
|
||||
this._clearGame();
|
||||
//firework();
|
||||
firework();
|
||||
|
||||
this.gameMessages.innerHTML = '<h2 class="mg__onend--heading"><span class="icon-trophy"></span></h2>\
|
||||
<p class="mg__onend--message">Vous avez gagné votre partie en ' + this.numMoves + ' coups !</p>\
|
||||
<button id="mg__onend--restart" class="mg__button"><span class="icon-spinner11"></span></button>';
|
||||
|
Reference in New Issue
Block a user