Jump to content

MediaWiki:Common.js: Difference between revisions

From Wimbum Vault
m Protected "MediaWiki:Common.js" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
function toggleMainMenu() {
$(document).ready(function() {
  var menu = document.getElementById("mw-mobile-main-menu");
     mw.popups.addPopup( 'link' ); // Customize popup for links
  if (menu.style.display === "flex") {
});
     menu.style.display = "none";
  } else {
    menu.style.display = "flex";
  }
}

Latest revision as of 11:26, 27 April 2025

$(document).ready(function() {
    mw.popups.addPopup( 'link' );  // Customize popup for links
});