DeletedUser
Gast
javascript:function alertTime(dist) {function calcTime(Unit,unittime) {var time=dist*unittime;var h=Math.floor(time/60);var m=Math.floor((time/60-h)*60);var s=Math.floor((time-h*60-m)*60+0.5);return (h<10?" "h<100?" ":""))+String(h)+":"+(m<10?"0":"")+String(m)+":"+(s<10?"0":"")+String(s)+"\t"+Unit+"\n";}var Output = "";Output+=calcTime('Spy',9);Output+=calcTime('LKav',10);Output+=calcTime('SKav',11);Output+=calcTime('Speer/Axt',18);Output+=calcTime('Schwert',22);Output+=calcTime('Ramme/Kata',30);Output+=calcTime('AG',35);alert(Output);}var l=document.links.length;var j=0;if(document.links[l-2].text=="» abbrechen"){j--;}var Ziel=document.links[l-2+j].text;var TeileZiel=Ziel.split('(');var Start=document.links[l-4+j].text;var TeileStart=Start.split('(');if(TeileStart.length==1){alert('Startdorf nicht gefunden');}else if(TeileZiel.length==1){alert('Zieldorf nicht gefunden');}else{Start=TeileStart[TeileStart.length-1].split(')')[0];var Startkoords=Start.split('|');var sx=Number(Startkoords[0]);var sy=Number(Startkoords[1]);Ziel=TeileZiel[TeileZiel.length-1].split(')')[0];var Zielkoords=Ziel.split('|');var zx=Number(Zielkoords[0]);var zy=Number(Zielkoords[1]);var dx=sx-zx;var dy=sy-zy;var dist=Math.sqrt(dx*dx+dy*dy);alertTime(dist);}stop();