MediaWiki:Mobile.js

/* Any JavaScript here will be loaded for users using the mobile site */

// for backwards compatibility var importScript = function (s) { mw.loader.load( '/w/index.php?title=' + encodeURIComponent(s) + '&action=raw&ctype=text/javascript' ); }; var importStylesheet = function (s) { mw.loader.load( '/w/index.php?title=' + encodeURIComponent(s) + '&action=raw&ctype=text/css', 'text/css' ); };

// page-specific css/js // original idea was User:TheFearow's // importStylesheet("MediaWiki:common.css/" + mw.config.get('wgPageName')); importScript("MediaWiki:common.js/" + mw.config.get('wgPageName')); // lynchpin for dialog