Difference between revisions of "MediaWiki:Common.js"

(Add show/hide all function (thanks to Princess Platinum on Wikia))
(No difference)

Revision as of 21:51, 10 December 2016

/* Any JavaScript here will be loaded for all users on every page load. */

//Global Show/Hide
//Author: Princess Platinum
 
$(function() {
    $('#collapse-global').html('<a style="color: #2d9f00;" onclick="for (var i=0; i < 50; i++) { collapseTable([i]); }">Show/Hide All</a>');
});