Difference between revisions of "MediaWiki:Common.js"

From CETAF Digitization Wiki
Jump to: navigation, search
(added function to hide page title)
(No difference)

Latest revision as of 11:00, 16 February 2016

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

//this snippet will hide the page title if the Template:NO_TITLE is included in a page via {{NO_TITLE}}
$(document).ready(function() {
    var noPageTitleToken= document.getElementsByClassName('mw_hide_page_title');
        header = document.getElementById('firstHeading');
            header.style.display = "none";