JS.doBuggyStuff()

K.V.
22 Feb 2018, 05:53This is not worthy of Libraries and Code Samples:
function buggyLinks(){
$( '#divOutput .cmdlink, #divOutput .compassbutton' ).bind('mouseover', function() {
$(this).hide();
});
$( '#divOutput .cmdlink, #divOutput .compassbutton' ).bind('mouseleave', function() {
$(this).show();
});
};
function normalLinks(){
$( '#divOutput .cmdlink, #divOutput .compassbutton' ).unbind('mouseover').unbind('mouseleave');
$( '#divOutput .cmdlink, #divOutput .compassbutton' ).show();
};
var shadowInt = 0;
function toggleShadow(){
if(shadowInt%2 === 0){
$('*').css('text-shadow','2px 2px gray');
}else{
$('*').css('text-shadow','none');
}
shadowInt++;
};
function doBuggyStuff(){
buggyShadows = setInterval(function(){toggleShadow();},500);
buggyLinks();
};
function stopBuggyStuff(){
clearInterval(buggyShadows);
$('*').css('text-shadow','none');
normalLinks();
};
To enable:
JS.doBuggyStuff()
To disable:
JS.stopBuggyStuff()

Dcoder
25 Feb 2018, 08:37Pretty cool effect! This is good for when the player is drunk, or otherwise physically/mentally impaired.