User:Jens Ingels/common.js

$( document ).ready(function {

var name = new Array; name = ["Health","Health regeneration","Mana","Mana regeneration","Range","Attack damage","Attack speed","Armor","Magic resistance","Movement speed"]; i;

function getVariable(i) { value = $( "#champion_info-lower td span a[title='"+ name[i] + "']").parent.parent.next; return value.html; };

if ( wgPageName == 'Miss_Fortune' ) { $( "#Strut" ).append( " Test " ); health = getVariable(0); healthreg = getVariable(1); mana = getVariable(2); manareg = getVariable(3); range = getVariable(4); ad = getVariable(5); asp= getVariable(6); armor = getVariable(7); magicres= getVariable(8); movement= getVariable(9); var n = health.toString; n.replace("(","test("); alert(n); //alert(healthData); //healthData = health.search(/\b(/gi);  //alert(healthData);   //health = $( "#champion_info-lower td span a[title='"+ name[i] +"']").parent.parent.next.html;   //alert(health + healthreg + mana);   //location = document.getElementById("champion_info-lower");   //health = $( "#champion_info-lower td:contains('Health')" ).next;   //alert(health.innerHTML);   //console(health.innerHTML); }

});