MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
| Line 9: | Line 9: | ||
gtag('config', 'G-MX174P23PW'); | gtag('config', 'G-MX174P23PW'); | ||
</script> | </script> | ||
mw.loader.using('mediawiki.util').then(function () { | |||
$(function () { | |||
var navbar = ` | |||
<div class="atronia-navbar"> | |||
<a href="/">Home</a> | |||
<a href="/index.php/Main_Page">Wiki</a> | |||
<a href="/index.php/Special:AllPages">All Pages</a> | |||
</div> | |||
`; | |||
$('.vector-header').after(navbar); | |||
}); | |||
}); | |||
Revision as of 17:11, 20 February 2026
/* Any JavaScript here will be loaded for all users on every page load. */
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-MX174P23PW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MX174P23PW');
</script>
mw.loader.using('mediawiki.util').then(function () {
$(function () {
var navbar = `
<div class="atronia-navbar">
<a href="/">Home</a>
<a href="/index.php/Main_Page">Wiki</a>
<a href="/index.php/Special:AllPages">All Pages</a>
</div>
`;
$('.vector-header').after(navbar);
});
});