Difference between revisions of "MediaWiki:Common.js"

From Guide to YKHC Medical Practices
Jump to navigation Jump to search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: collapse / toggle main side menu: jQuery( document ).ready(function( $ ) { $('#mw-navigatio...")
 
(No difference)

Latest revision as of 13:50, 15 August 2017

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

/* collapse / toggle main side menu */
jQuery( document ).ready(function( $ ) {
   $('#mw-navigation div.body > ul').not('#p-navigation div.body > ul').hide();
   $('#mw-navigation h3').click(function() {
	   	$(this).next('.body').children('ul').toggle('slide');
   });
});