Difference between revisions of "MediaWiki:Mobile.js"

From TaticView
Jump to: navigation, search
Line 9: Line 9:
  
 
});
 
});
 +
 +
mw.loader.load("/index.php/MediaWiki:Common.js")
  
 
mw.loader.using('mobile.site.styles')
 
mw.loader.using('mobile.site.styles')

Revision as of 16:26, 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.load("/index.php/MediaWiki:Common.js")

mw.loader.using('mobile.site.styles')