JS.doBuggyStuff()

K.V.

This 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()


Pretty cool effect! This is good for when the player is drunk, or otherwise physically/mentally impaired.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums