MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Replaced content with "→Any JavaScript here will be loaded for all users on every page load.: →Syntax highlighter timeout: syntaxHighlighterConfig = { timeout: 1000, } /* Move game...") Tag: Replaced |
||
Line 6: | Line 6: | ||
} | } | ||
/* Move game icons into #content for more consistent positioning */ | |||
/* | |||
$(function () {$('#game-icons').css('margin-top', '2px').insertBefore($('#firstHeading'))}) | $(function () {$('#game-icons').css('margin-top', '2px').insertBefore($('#firstHeading'))}) | ||
Line 286: | Line 19: | ||
mw.loader.load('/index.php?title=MediaWiki:PikipediaUpload.js' | mw.loader.load('/index.php?title=MediaWiki:PikipediaUpload.js' | ||
+ '&action=raw&ctype=text/javascript'); | + '&action=raw&ctype=text/javascript'); | ||
Revision as of 06:03, January 20, 2019
/* Any JavaScript here will be loaded for all users on every page load. */
/* Syntax highlighter timeout */
syntaxHighlighterConfig = {
timeout: 1000,
}
/* Move game icons into #content for more consistent positioning */
$(function () {$('#game-icons').css('margin-top', '2px').insertBefore($('#firstHeading'))})
/* Pikan */
$.getScript('/index.php?title=User:Espyo/pikan-core.js'
+ '&action=raw&ctype=text/javascript', function () {
mw.loader.load('/index.php?title=User:Espyo/pikan-pikipedia.js'
+ '&action=raw&ctype=text/javascript');
});
/* Upload page script */
mw.loader.load('/index.php?title=MediaWiki:PikipediaUpload.js'
+ '&action=raw&ctype=text/javascript');