MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary Tag: Reverted |
||
| Line 4: | Line 4: | ||
mw.loader.load("/images/assets/hovercard.js"); | mw.loader.load("/images/assets/hovercard.js"); | ||
mw.loader.load("https://dxgalaxy.org/js/nav.js"); | mw.loader.load("https://dxgalaxy.org/js/nav.js"); | ||
$(document).ready(function() { | |||
// Add a new navigation bar at the top | |||
$('#mw-content-text').before( | |||
'<div id="top-nav">' + | |||
'<a href="/wiki/Main_Page">Home</a> | ' + | |||
'<a href="/wiki/Help:Contents">Help</a> | ' + | |||
'<a href="/wiki/Special:RecentChanges">Recent Changes</a>' + | |||
'</div>' | |||
); | |||
}); | |||
Revision as of 14:18, 23 August 2025
mw.loader.load("/images/assets/image-selector.js");
/* mw.loader.load("/images/assets/nav.js"); */
mw.loader.load("/images/assets/variant.js");
mw.loader.load("/images/assets/hovercard.js");
mw.loader.load("https://dxgalaxy.org/js/nav.js");
$(document).ready(function() {
// Add a new navigation bar at the top
$('#mw-content-text').before(
'<div id="top-nav">' +
'<a href="/wiki/Main_Page">Home</a> | ' +
'<a href="/wiki/Help:Contents">Help</a> | ' +
'<a href="/wiki/Special:RecentChanges">Recent Changes</a>' +
'</div>'
);
});