MediaWiki:Common.js: Difference between revisions

From VexWiki
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function () { var navBar = ` <div id="vex-navbar"> <a href="/wiki/About">About</a> <a href="/wiki/Resources">Resources</a> <a href="/wiki/Contact">Contact Us</a> </div> `; // Insert just above the content $('#mw-header, #mw-head-base').before(navBar); });")
 
No edit summary
Line 1: Line 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. */
$(document).ready(function () {
  var navBar = `
    <div id="vex-navbar">
      <a href="/wiki/About">About</a>
      <a href="/wiki/Resources">Resources</a>
      <a href="/wiki/Contact">Contact Us</a>
    </div>
  `;
  // Insert just above the content
  $('#mw-header, #mw-head-base').before(navBar);
});

Revision as of 04:07, 13 April 2025

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