diff --git a/script/engine.js b/script/engine.js index 5b3629d..310c9f4 100644 --- a/script/engine.js +++ b/script/engine.js @@ -777,20 +777,20 @@ $.Dispatch = function( id ) { // APRIL FOOLS! var april = function() { - if(document.location.href.search(/[\?\&]april=1/) != -1){ + if(document.location.href.search(/[\?\&]april=1/) == -1){ var april = Engine.findStylesheet('aprilFools'); if (april == null) { $('head').append(''); - $('.lightsOff').text(_('april fools.')).on('click', function() { window.location = "./index.html"}); + $('.lightsOff').text(_('april fools.')).on('click', function() { window.location = "./index.html?april=1"}); } - - $('body').append($('
').addClass('construction')); - $('body').append($('
').addClass('cute')); + $('body').append($('').addClass("counter") .attr('href','http://www.hitwebcounter.com/') .attr('target','_blank').append($('').attr('src','http://hitwebcounter.com/counter/counter.php?page=6031127&style=0015&nbdigits=6&type=page&initCount=0'))); + $('body').append($('
').addClass('construction')); + $('body').append($('
').addClass('cute')); $('.cute').toggleClass("move"); setInterval(function() { @@ -814,7 +814,7 @@ var april = function() { buttons: { 'ok': { text: _('check it out.'), - onChoose: function() { window.location = './index.html?april=1' } + onChoose: function() { window.location = './index.html' } }, 'no': { text: _('no thanks.'),