Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 757: | Line 757: | ||
* | * | ||
* La fonction cherche un bandeau de la forme | * La fonction cherche un bandeau de la forme | ||
* | * <span id="RealTitle">titre</span> | ||
* | * | ||
* Un élément comportant id="DisableRealTitle" désactive la fonction | * Un élément comportant id="DisableRealTitle" désactive la fonction | ||
*/ | */ | ||
function rewritePageH1() { | function rewritePageH1() { | ||
var realTitle = document.getElementById('RealTitle'); | var realTitle = document.getElementById('RealTitle'); | ||
var h1 = document.getElementById('firstHeading'); | var h1 = document.getElementById('firstHeading'); | ||
Line 775: | Line 770: | ||
if (titleText == '') h1.style.display = 'none'; | if (titleText == '') h1.style.display = 'none'; | ||
else h1.innerHTML = titleText; | else h1.innerHTML = titleText; | ||
} | } | ||
} | } |