Difference between revisions of "MediaWiki:Mobile.js"
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 */ | ||
− | |||
− | |||
$("#content-collapsible-block-0").addClass("open-block"); | $("#content-collapsible-block-0").addClass("open-block"); | ||
$(".mw-parser-output > h2").first().off("click").unbind("click"); | $(".mw-parser-output > h2").first().off("click").unbind("click"); | ||
$("#mw-mf-page-left ul:last-child").removeClass('hlist'); | $("#mw-mf-page-left ul:last-child").removeClass('hlist'); | ||
+ | |||
+ | mw.loader.using('mobile.site.styles') |
Revision as of 13:48, 22 January 2019
/* Any JavaScript here will be loaded for users using the mobile site */ $("#content-collapsible-block-0").addClass("open-block"); $(".mw-parser-output > h2").first().off("click").unbind("click"); $("#mw-mf-page-left ul:last-child").removeClass('hlist'); mw.loader.using('mobile.site.styles')