var zz=0; var db=["Removing Wishlist Users","Deleting Wishlist Items","Clearing Login Data","Flushing Caches","Deleting User Profiles","Deleting Saved Messages","Purging Stored Images","Deleting Admin Messages","Deleting Logged Purchases","Removing User Restrictions","Cleaning Up Remaining Data"]; function doSpoof(){ alert('You just couldn\'t resist, could you?'); $('#progress-box').toggleClass("progress-box-on"); $('#progress-dotz').html('.'); $('#overlay').toggleClass("overlay-on"); for (var x=0; x <= 100; x=x+0.25) { doIncrement(x); } for (var n=0; n <= 10; n++) { doCat(n); } for (var y=0; y <= 100; y++) { doDotz(y); } } function doIncrement(x){ setTimeout(function(){$('#spoof-box').css({'height':x+'%'});}, x*300); setTimeout(function(){if (x == 100){alert('Success: The Wishlist has been deleted.');$('#spoof-box, #nothing').click(function(){alert('Sorry, The Wishlist no longer exists because it has been deleted.');});$('#progress-box').toggleClass("progress-box-on");$('#nothing').toggleClass("nothing-on");}}, x*300); } function doDotz(y){ setTimeout(function(){$('#progress-dotz').html($('#progress-dotz').html()+' .');zz++;if(zz==6){zz=0;$('#progress-dotz').html('.');}},y*300); } function doCat(n){ setTimeout(function(){$('#prog-cat').html(db[n]+'...');}, n*2700); } function exploder(){ $('#sign-in-button').click(function(){ $('#explode').removeClass("explode-off"); $('#explode').addClass("explode-on"); $('#explode').click(function(){ $('#explode').unbind(); $('#explode').removeClass("explode-on"); $('#explode').addClass("explode-off"); }); }); }