MediaWiki:Common.js

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
   var n=str.indexOf("Cards/");
 
   var n=str.indexOf("Cards/");
 
   if (n==17) child1.innerHTML=str.slice(23);
 
   if (n==17) child1.innerHTML=str.slice(23);
   /*parent1.removeChild(child1);*/
+
   n=str.indexOf("Items/");
 +
  if (n==17) child1.innerHTML=str.slice(23);
 
});
 
});

Revision as of 00:09, 20 February 2013

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

$(function() {
  var parent1=document.getElementById("content");
  var child1=document.getElementById("firstHeading");
  var str=child1.innerHTML;
  var n=str.indexOf("Cards/");
  if (n==17) child1.innerHTML=str.slice(23);
  n=str.indexOf("Items/");
  if (n==17) child1.innerHTML=str.slice(23);
});
      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools