Difference between revisions of "MediaWiki:Common.js"
m (fix) |
(fix + test) |
||
| Line 8: | Line 8: | ||
oH1.classList.add("notranslate"); | oH1.classList.add("notranslate"); | ||
oH1.setAttribute("translate", "no"); | oH1.setAttribute("translate", "no"); | ||
| − | oH1.setAttribute("lang", "en";} | + | oH1.setAttribute("lang", "en"); |
| + | oH1.style.backgroundColor="orange !important";} | ||
} | } | ||
$(TranslateNoPageTitle); | $(TranslateNoPageTitle); | ||
Revision as of 08:33, 4 May 2020
/* Any JavaScript here will be loaded for all users on every page load. */
{{MediaWiki:GoogleAnalytics.js}}
function TranslateNoPageTitle(){
var oH1 = document.getElementById("firstHeading");
if(oH1){
oH1.classList.add("notranslate");
oH1.setAttribute("translate", "no");
oH1.setAttribute("lang", "en");
oH1.style.backgroundColor="orange !important";}
}
$(TranslateNoPageTitle);