MediaWiki:Common.js: Difference between revisions
From Ghost Theory Wiki
Created page with "→Any JavaScript here will be loaded for all users on every page load.: $(function () { // Only add the button if it doesn't already exist (mobile mode) if (!document.getElementById('mw-sidebar-button')) { $('#mw-header-h1').append( '<button id="mw-sidebar-button" class="mw-ui-icon mw-ui-icon-element mw-ui-icon-menu"><span>Menu</span></button>' ); } // Toggle sidebar on desktop $('#mw-sidebar-button').on('click', functi..." |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
// force reload 1 | |||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
$(function () { | $(function () { | ||
