MediaWiki:Common.js

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
 
   var str=child1.innerHTML;
 
   var str=child1.innerHTML;
 
   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);*/
 
   /*parent1.removeChild(child1);*/
 
});
 
});

Revision as of 00:06, 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);
  /*parent1.removeChild(child1);*/
});
      
Personal tools
Namespaces

Variants
Actions
Navigation
Tools