Difference between revisions of "MediaWiki:Common.js"

From TaticView
Jump to: navigation, search
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
(function () {
 
 
  var el = document.getElementById('mw-content-text');
 
 
  if(!mw.config.values.wgUserId){
 
     
 
      el.children[0].style.display = 'none';
 
     
 
  } else {
 
 
      el.children[0].style.display = 'block'; 
 
 
  }
 
 
})();
 

Revision as of 16:47, 23 October 2017

/* Any JavaScript here will be loaded for all users on every page load. */