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
Protected "User:Disassemblyline/monobook.js" ([Edit=Allow only EDitors] (indefinite) [Move=Allow only EDitors] (indefinite))
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
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

Latest revision as of 02:15, 8 September 2022