Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

User:Disassemblyline/monobook.js: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>Disassemblyline
No edit summary
 
imported>Disassemblyline
No edit summary
(No difference)

Revision as of 00:36, 20 September 2013

var blinkers; //var used to hold all elements with the class "blinker"
function start_blinking()
{
	blinkers = document.getElementsByClassName('blinker'); //find those rainbow blinkies
	if (blinkers)
	{
		setInterval(function(){toggleBlinkHandler();}, 970); //interval to run it
	}
}
function toggleBlinkHandler()
{
	toggleBlink();
	setTimeout(function(){toggleBlink();}, 480); //interval to turn it off
}
function toggleBlink()
{
	for(var i = 0; i < blinkers.length; i++)
	{
		if(blinkers[i].style.visibility == 'visible')
		{
			blinkers[i].style.visibility = 'hidden'; //___
		}
		else
		{
			blinkers[i].style.visibility = 'visible'; //LOL
		}
	}
}
window.addEventListener("load", start_blinking, false); //hook