Difference between revisions of "MediaWiki:Mobile.js"
(31 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for users using the mobile site */ | /* Any JavaScript here will be loaded for users using the mobile site */ | ||
+ | |||
+ | /* | ||
+ | $(function(){ | ||
+ | |||
+ | $("#content-collapsible-block-0").addClass("open-block"); | ||
+ | $(".mw-parser-output > h2").first().off("click"); | ||
+ | |||
+ | $("#mw-mf-page-left ul:last-child").removeClass('hlist'); | ||
+ | |||
+ | }); | ||
mw.loader.using('mobile.site.styles') | mw.loader.using('mobile.site.styles') | ||
+ | */ | ||
− | + | mw.loader.load("/index.php?title=MediaWiki:Common.js&action=raw&ctype=text/javascript", "text/javascript") | |
− |
Latest revision as of 16:33, 22 January 2019
/* Any JavaScript here will be loaded for users using the mobile site */ /* $(function(){ $("#content-collapsible-block-0").addClass("open-block"); $(".mw-parser-output > h2").first().off("click"); $("#mw-mf-page-left ul:last-child").removeClass('hlist'); }); mw.loader.using('mobile.site.styles') */ mw.loader.load("/index.php?title=MediaWiki:Common.js&action=raw&ctype=text/javascript", "text/javascript")