MediaWiki:Vector.js: Difference between revisions

From Galaxypedia
imported>Smallketchup82
No edit summary
imported>Smallketchup82
No edit summary
Line 3: Line 3:
// Load embedded dark reader
// Load embedded dark reader
mw.loader.load( '/index.php?title=MediaWiki:Dark.css&action=raw&ctype=text/css', 'text/css' );
mw.loader.load( '/index.php?title=MediaWiki:Dark.css&action=raw&ctype=text/css', 'text/css' );
settimeout(function() {
setTimeout(function() {
mw.loader.load( '/index.php?title=MediaWiki:DarkReader.js&action=raw&ctype=text/javascript' );
mw.loader.load( '/index.php?title=MediaWiki:DarkReader.js&action=raw&ctype=text/javascript' );
}, 100)
}, 100)

Revision as of 03:09, 1 December 2021

/* All JavaScript here will be loaded for users of the Vector skin */

// Load embedded dark reader
mw.loader.load( '/index.php?title=MediaWiki:Dark.css&action=raw&ctype=text/css', 'text/css' );
setTimeout(function() {
	mw.loader.load( '/index.php?title=MediaWiki:DarkReader.js&action=raw&ctype=text/javascript' );
}, 100)