Difference between revisions of "MediaWiki:Common.js"

(Add show/hide all function (thanks to Princess Platinum on Wikia))
 
m (Add nice brackets)
 
Line 5: Line 5:
 
   
 
   
 
$(function() {
 
$(function() {
     $('#collapse-global').html('<a style="color: #2d9f00;" onclick="for (var i=0; i < 50; i++) { collapseTable([i]); }">Show/Hide All</a>');
+
     $('#collapse-global').html('<a style="color: #2d9f00;" onclick="for (var i=0; i < 50; i++) { collapseTable([i]); }">[Show/Hide All]</a>');
 
});
 
});

Latest revision as of 21:56, 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>');
});