Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
m derp
m i test dis
Line 402: Line 402:
addOnloadHook(pootTabsHere.init);
addOnloadHook(pootTabsHere.init);
// End of PootTabs
// End of PootTabs
// Start test chamber infobox flicker
infoboxFlicker = {
setOn:function(infobox, isOn) {
if(isOn) {
infobox.addClass('testchamber-off');
} else {
infobox.removeClass('testchamber-off');
}
},
setDisplay:function(infobox, isOn) {
if(isOn) {
infobox.addClass('testchamber-display-off');
} else {
infobox.removeClass('testchamber-display-off');
}
},
flicker:function() { // Step 0: Start off
var infobox = $(this);
infoboxFlicker.setOn(infobox, false);
infoboxFlicker.setDisplay(infobox, false);
setTimeout(function() { // Step 1: Switch on, no details
infoboxFlicker.setOn(infobox, true);
setTimeout(function() { // Step 2: Switch back off
infoboxFlicker.setOn(infobox, false);
setTimeout(function() { // Step 3: Switch back on, still no details
infoboxFlicker.setOn(infobox, true);
setTimeout(function() { // Step 4: Display details
infoboxFlicker.setDisplay(infobox, false);
}, 67);
}, 170);
}, 33);
}, 500);
}
init:function() {
$('.testchamber').each(infoboxFlicker.flicker);
}
};
addOnloadHook(infoboxFlicker.init);
// End test chamber infobox flicker


// Google Analytics
// Google Analytics