Difference between revisions of "MediaWiki:Mobile.js"

From TaticView
Jump to: navigation, search
Line 3: Line 3:
 
mw.loader.using('mobile.site.styles')
 
mw.loader.using('mobile.site.styles')
  
$(".mf-section-1").addClass("open-block")
+
$(document).ready(function(){
$($(".mw-parser-output .section-heading")[0]).children("div").remove();
+
 
 +
$(".mf-section-1").addClass("open-block")
 +
$($(".mw-parser-output .section-heading")[0]).children("div").remove();
 +
 
 +
})

Revision as of 13:41, 21 January 2019

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

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

$(document).ready(function(){

 $(".mf-section-1").addClass("open-block")
 $($(".mw-parser-output .section-heading")[0]).children("div").remove();

})