MediaWiki:Common.js: Difference between revisions
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { // Show the main menu by default on the main page if (mw.config.get('wgIsMainPage')) { $('#mw-panel').show(); // Show the main menu (sidebar) } });") |
(No difference)
|
Latest revision as of 15:54, 10 February 2024
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
// Show the main menu by default on the main page
if (mw.config.get('wgIsMainPage')) {
$('#mw-panel').show(); // Show the main menu (sidebar)
}
});