Difference between revisions of "MediaWiki:Common.js"
From BrineRIS Dataspace
Simon Stier (talk | contribs) (add image map) |
(No difference)
|
Revision as of 11:56, 4 October 2022
/* Any JavaScript here will be loaded for all users on every page load. */
//load ImageMapEditor in Image namespace
if (mw.config.get('wgNamespaceNumber')==6 && mw.config.get('wgAction')=='view') {
mw.loader.load('/w/index.php?title=MediaWiki:ImageMapEditor.js&action=raw&ctype=text/javascript');
}
//load ImageMapHighlighter
mw.loader.load( '/w/index.php?title=MediaWiki:ImageMapHighlighter.js&action=raw&ctype=text/javascript' );