Difference between revisions of "MediaWiki:Mobile.js"

From TaticView
Jump to: navigation, search
Line 6: Line 6:
  
 
  $(".mf-section-1").addClass("open-block")
 
  $(".mf-section-1").addClass("open-block")
  $($(".mw-parser-output .section-heading")[0]).children("div").remove()
+
  $($(".mw-parser-output .section-heading")[0]).children("div").css("display", "none")
  
 
})
 
})

Revision as of 13:43, 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").css("display", "none")

})