MediaWiki:Common.js

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

/*--Dropdown menu--*/

function showDzMDOptions { document.getElementById("Divisions-Dropdown").classList.toggle("show"); }

window.onclick = function(event) { if (!event.target.matches('.dropbtn')) { var dropdowns = document.getElementsByClassName("dropdown-content"); var i;   for (i = 0; i < dropdowns.length; i++) { var openDropdown = dropdowns[i]; if (openDropdown.classList.contains('show')) { openDropdown.classList.remove('show'); }   }  } }

function showPubOptions { document.getElementById("Pub").classList.toggle("show"); }

window.onclick = function(event) { if (!event.target.matches('.dropbtn')) { var dropdowns = document.getElementsByClassName("dropdown-contentPub"); var i;   for (i = 0; i < dropdowns.length; i++) { var openDropdown = dropdowns[i]; if (openDropdown.classList.contains('show')) { openDropdown.classList.remove('show'); }   }  } }

function showWikiOptions { document.getElementById("WikiPortal").classList.toggle("show"); }

window.onclick = function(event) { if (!event.target.matches('.dropbtn')) { var dropdowns = document.getElementsByClassName("dropdown-contentWikiPortal"); var i;   for (i = 0; i < dropdowns.length; i++) { var openDropdown = dropdowns[i]; if (openDropdown.classList.contains('show')) { openDropdown.classList.remove('show'); }   }  } }

/*--End Dropdown menu--*/