Difference between revisions of "MediaWiki:Common.js"

From WikiSoft
Jump to: navigation, search
 
Line 5: Line 5:
 
mw.loader.load( '/w/index.php?title=MediaWiki:wiki.js&action=raw&ctype=text/javascript&v=1.2.1' );
 
mw.loader.load( '/w/index.php?title=MediaWiki:wiki.js&action=raw&ctype=text/javascript&v=1.2.1' );
 
mw.loader.load( '/w/index.php?title=MediaWiki:Live_chat.js&action=raw&ctype=text/javascript' );
 
mw.loader.load( '/w/index.php?title=MediaWiki:Live_chat.js&action=raw&ctype=text/javascript' );
 
<!-- Global site tag (gtag.js) - Google Analytics -->
 
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-118319931-1"></script>
 
<script>
 
window.dataLayer = window.dataLayer || [];
 
function gtag(){dataLayer.push(arguments);}
 
gtag('js', new Date());
 
 
gtag('config', 'UA-118319931-1');
 
</script>
 

Latest revision as of 09:59, 16 June 2020

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

/*importScript('MediaWiki:wiki.js');
importScript('MediaWiki:Live_chat.js');*/
mw.loader.load( '/w/index.php?title=MediaWiki:wiki.js&action=raw&ctype=text/javascript&v=1.2.1' );
mw.loader.load( '/w/index.php?title=MediaWiki:Live_chat.js&action=raw&ctype=text/javascript' );