Difference between revisions of "MediaWiki:Common.js"

From World Naked Bike Ride
Jump to: navigation, search
m (Where are my glasses...)
m (fix)
Line 4: Line 4:
  
 
function TranslateNoPageTitle(){
 
function TranslateNoPageTitle(){
  var oH1 = document.getElementById("FirstHeading");
+
  var oH1 = document.getElementById("firstHeading");
 
  if(oH1){
 
  if(oH1){
 
   oH1.classList.add("notranslate");
 
   oH1.classList.add("notranslate");

Revision as of 08:22, 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";}
}
$(TranslateNoPageTitle);