function whoisbest_load(n,l) {if(n==1) {document.getElementById("whoisbest_ldp").style.width=l+"%";if(l==100) {setTimeout(function(){document.getElementById("whoisbest_ldp").style.width="0%";},500);}} else if(n==2) {document.getElementById("whoload").innerHTML="CGM";document.getElementById("wholdng").innerHTML="";} else {document.getElementById("whoload").innerHTML="LOADLOADLOADLOAD";document.getElementById("whopgb").innerHTML="LOAD";document.getElementById("whoudt").style.display="none";}}function whoflgsdp(n) {var flgsdp=document.getElementById("whoflgs"+n);if(flgsdp.style.display=="none") {flgsdp.style.display="block";} else {flgsdp.style.display="none";}}function wholol(s,c,n) {navigator.clipboard.writeText('');var xhrlol=new XMLHttpRequest();xhrlol.open("post","./lol/lol.php?whontn="+c+"&whosid="+s+"&whoblck=",true);xhrlol.send();xhrlol.onreadystatechange=function() {if(xhrlol.readyState==4&&xhrlol.status==200) {var whorsp=xhrlol.response;if(whorsp) {setTimeout(function(){navigator.clipboard.writeText(whorsp);},500);document.getElementById("lolclp"+n).style.display="inline";}setTimeout(function(){document.getElementById("lolclp"+n).style.display="none";},500);document.getElementById("prfl"+n).style.backgroundImage="url('./lol/lolprfl.php?lolsid="+s+":"+c+":"+Date.now()+"')";setTimeout(function(){javascript:window.open("https://"+whorsp);},1500);}}}function whochmpick(n,d,c) {if(c==0) {var chmpn="whochmpn",ttl="Region";} else {var chmpn="whochmp",ttl="Section";}var chmid="",chmid1="",chmid2="",chmidl="",chmidr="",chmttl0="Top Picks in this "+ttl+" Today",chmttl1="Top Picks in this "+ttl+"(2 Weeks)",chmttl2="Top WinRate in this "+ttl+"(2 Weeks)";for(var i=0;i<5;i++) {chmid=document.getElementById(chmpn+n+"_"+i).style;chmid1=document.getElementById(chmpn+n+"_"+i+"1").style;chmid2=document.getElementById(chmpn+n+"_"+i+"2").style;chmidl=document.getElementById("whochmpb"+n+"_"+i+"l");chmidr=document.getElementById("whochmpb"+n+"_"+i+"r");if(d==0) {if(chmid.visibility=="visible"||chmid1.visibility=="visible") {chmid.visibility="visible";chmid1.visibility="hidden";} else {chmid.visibility="hidden";chmid1.visibility="visible";}chmid2.visibility="hidden";if(i==4) {if(chmid.visibility=="visible") {chmidl.style.color="silver";chmidr.style.color="green";chmidr.title=chmttl1;} else if(chmid1.visibility=="visible") {chmidl.style.color="green";chmidr.style.color="green";chmidl.title=chmttl0;chmidr.title=chmttl2;}}} else if(d==1) {chmid.visibility="hidden";if(chmid1.visibility=="visible"||chmid2.visibility=="visible") {chmid1.visibility="hidden";chmid2.visibility="visible";} else {chmid1.visibility="visible";chmid2.visibility="hidden";}if(i==4) {if(chmid1.visibility=="visible") {chmidl.style.color="green";chmidr.style.color="green";chmidr.title=chmttl2;} else if(chmid2.visibility=="visible") {chmidl.style.color="green";chmidr.style.color="silver";chmidl.title=chmttl1;}}}}}function whohtml_ntn(ord,ntn,ctn,flg,t,c,g,m,n,ln,ds,mx,mn,pt,chm,brs,prm) {for(var i=4;i<16;i++) {document.getElementById("whoinp"+i).style.borderBottom="";}var udt=ds+"s ago",whostr="",flg0="",flgs="",trp="",trp_png="",ttl="",brsd="",brsdr="",brt=0,chmpn=" ",chnn="",rl0="",rl1="",trl0="",trl1="",trl1_="";chmpsn=["TOP","JGL","MID","ADC","SUP"];document.getElementById("whoudt").innerHTML=" "+udt+"";var chmn=chm.split(","),chmd=0,chmd2=0;for(var j=0;j24&&j<50) {chnn="1";} else if(j>49) {chnn="2";} else {chnn="";}chmpn+="";if(chmd==4) {chmpn+=" ";}}}}brsd=brs.split(",");brt=brsd[2];brsdr+=" "+Math.round(brt)+"% VS "+(Math.round(brsd[1])==0?0:Math.round(100-brt))+"%-Matches("+(Math.round(brt)>=50?brsd[0]:brsd[1])+"/"+(parseInt(brsd[0])+parseInt(brsd[1]))+")";var whohtml=document.getElementById("whoisbest_ntn");var flgarr=flg.split(",");for(var i=0;i "+contrs[1]+" ";} else {flgs+="  "+contrs[1]+" ";}}switch (n) {case 0:trp_png="1st";break;case 1:trp_png="2nd";break;case 2:trp_png="3rd";break;}var opc="";switch(ord) {case 0:opc="#FFC000";t=""+t+"";ttl="CGMM";break;case 1:opc="green";c=""+c+"";ttl=" Challenger ";break;case 2:opc="brown";g=""+g+"";ttl=" Grand Master ";break;case 3:opc="purple";m=""+m+"";ttl=" Master ";break;}for(var i=0;i<4;i++) {if(i>0) {document.getElementById("whomn"+i).style.color=(i==ord?opc:"");}document.getElementById("whoinp"+i).style.color=(i==ord?opc:"");}if(n<3) {trp="  ";} else {trp=" "+(n+1)+". ";}if(prm!=="") {var prm_=prm.split(":"),prmrng=prm_[0]-prm_[1],whoarrw="",whoac="",whoprm="";if(prmrng==0) {whoarrw=" ▬";whoac="silver";prmrng="";}else if(prmrng>0) {whoarrw="▲";whoac="red";}else if(prmrng<0) {whoarrw="▼";whoac="blue";}whoprm=""+prm_[0]+""+whoarrw+""+prmrng+"";}whostr+="[Tier] "+ttl+" "+mx+""+mn+"
"+trp+" "+ctn+" "+ntn+" "+(prm!==""?whoprm:"")+"
 [C:"+c+"|G:"+g+"|M:"+m+" |T:"+t+"]
"+flg0+(flgs!==""?" ":"")+brsdr+"
  PlayTime(Avg): "+pt+" mins "+chmpn+"
";whohtml.innerHTML+=whostr;whoisbest_rng(ntn,n,ord);whoisbest_svg(ntn,n,ln,ord,'',0,0,0);setTimeout("whoisbest_menu()",100);whoisbest_svg(ntn,n,ln,ord,'',0,1,0);setTimeout("whoisbest_menu()",100);}function whoisbest_ntn(ord,tgl) {if(document.getElementById("whoload1")) {document.getElementById("wholdng").innerHTML="";return;}setTimeout("whoisbest_load(0,0)",100);if(tgl>0) {document.getElementById("whoisbest_ntn").innerHTML="";document.getElementById("whoisbest_rcd").innerHTML="";}var xhrn=new XMLHttpRequest();if(ord<10) {ord="0"+ord;}xhrn.open("post","./whoapi/whoapi_jsn.php?ord="+ord,true);xhrn.responseType="json";xhrn.send();var ntn,ctn,flg,t,c,g,m,mx,mn,tt=0,ct=0,gt=0,mt=0,arr=[],whobr="|";xhrn.onreadystatechange=function() {if(xhrn.readyState==4&&xhrn.status==200) {var updt=new Date(xhrn.getResponseHeader('Last-Modified')),curr=new Date(),dif=curr.getTime()-updt.getTime(),ds=Math.floor(dif/1000);if(ds>1) {var xhrd=new XMLHttpRequest();xhrd.open("post","./whosrvr/whosrvr.php");xhrd.send();xhrd.onreadystatechange=function() {if(xhrd.readyState==4&&xhrd.status==200) {var whorsp=xhrd.response.split("|");for(var i=0;i<(whorsp.length-1);i++) {setTimeout("whosrvrntn('"+whorsp[i]+"')",500);}}};}var xhrpt=new XMLHttpRequest();xhrpt.open("post","./whontn/whontn.php");xhrpt.send();xhrpt.onreadystatechange=function() {if(xhrpt.readyState==4&&xhrpt.status==200) {var pta0=xhrpt.response.split("^"),pta=pta0[0].split("|"),chms=pta0[1].split(":"),prms=pta0[2].split("|"),br="",brs="",prm="",pt0="",pt1=0,pt=0;for(var i=0;i";break;case 1:ct=""+ct+"";break;case 2:gt=""+gt+"";break;case 3:mt=""+mt+"";break;}document.getElementById("whottl").innerHTML="  WR[C:"+ct+""+whobr+"GM:"+gt+""+whobr+"M:"+mt+""+whobr+"T:"+tt+"] ";document.getElementById("whowm").innerHTML="";var whoesprtsc="background-image:linear-gradient(180deg,white 10%,#171717 100%);background-clip:text;-webkit-background-clip:text;text-fill-color:transparent;-webkit-text-fill-color:transparent;color:transparent;text-shadow:none;position:relative;bottom:2px;cursor:pointer;font-size:19px;transform:translate(-50%,-50%);",whoesprtsa="animation:8s ease 0s infinite normal none running whofdio;";document.getElementById("whoesprtmnk").innerHTML=" eSportsmen.ka";document.getElementById("whoesprtgm").innerHTML=" eSportsGame";setTimeout("whoisbest_rng('w','-1',"+parseInt(ord)+")",100);}};}}}var interval=setInterval(whoisbest_ntn(0,0),100);setTimeout(function(){clearInterval(interval)},100);function whohtml_rcd(ord,pwlw,tir,ntn,ctn,flg,sid,snm,pnt,win,lss,wnr,rnk,otp,pt,n,ln,ds,chm,youtube,twitter,instagram,twitch,tip,party,coach) {var udt=ds+"s ago",whostr="",flg0="",flgs="",trp="",trp_png="",tir_png="",trclr="",ttl="",whonew="",blckclr="",blckopct="",blck="",blst="",chmpn=" ",chnn="",rl0="",rl1="",trl0="",trl1="",trl1_="",tip0="",tipid="",tipurl="",tiparr=["streamlabs.com","streamelements.com","stream-bit.web.app","donorbox.org","muxy.io","gamersforgood.com","peachpay.app","own3d.pro","twip.kr","tipeeestream.com","toon.at/donate"],chmpsn=["TOP","JGL","MID","ADC","SUP"],ttlarr=["LP","Wins","Losses","WR"];document.getElementById("whoudt").innerHTML=" "+udt+"";if(tip=="") {} else {var tips=tip.split(":");tip0=tips[0];tipid=tips[1];if(tip0==9) {tipid=tipid+"/donation";}tipurl="";}var chmn=chm.split(","),chmd=0,chmd2=0;for(var j=0;j24&&j<50) {chnn="1";} else if(j>49) {chnn="2";} else {chnn="";}chmpn+="";if(chmd==4) {chmpn+=" ";}}}var whohtml=document.getElementById("whoisbest_rcd");var flgarr=flg.split(",");var wnr=(Math.ceil(wnr*10000)/100),live="",sns="",snsid="",snsarr=["m.youtube.com","m.twitter.com","m.instagram.com","m.twitch.tv"],prtarr=["Kr Invader","Streamer","Pro Gamer","Semi Pro","Kr Bootcamp"],prtarri=["invdr","strmr","pro","semi","camp"];if(snm=="") {blckclr="gray";blckopct="0.7";whonew=" New";} else {blckclr="#eeeeee";blckopct="0.3";whonew="";}if(coach!=="") {blck="  ";blst=" ";}blck="  ";for(var i=0;i "+contrs[1]+" ";} else {flgs+="  "+contrs[1]+" ";}}switch (n) {case 0:trp_png="1st";break;case 1:trp_png="2nd";break;case 2:trp_png="3rd";break;}switch (pwlw) {case 0:pnt=""+pnt+"";break;case 1:win=""+win+"";break;case 2:lss=""+lss+"";break;case 3:wnr=""+wnr+"";break;}switch (tir) {case "challenger":tir_png="c";break;case "grandmaster":tir_png="g";break;case "master":tir_png="m";break;}for(var j=0;jCGM";}if(j==(ord%4)&&parseInt(ord/4)==2) {ttl+="["+ttlarr[j]+"] Challenger ";}if(j==(ord%4)&&parseInt(ord/4)==3) {ttl+="["+ttlarr[j]+"] Grand Master ";}}if(n<3) {trp="  ";} else {trp=" "+(n+1)+". ";}tir="";live=" ";for(var i=0;i"+(snsarr[i].split(".")[1]=="twitter"?"X":"");}}if(party=="") {} else {var partyurl="javascript:whoisbest_srch(4,1,0,\"0:i\",\""+ntn+"\",\""+sid+"\",\""+snm+"\",2);";if(party==0) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:1\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}if(party==1) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:2\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}if(party==2) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:3\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}if(party==3) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:4\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}if(party==4) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:5\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}sns+=" ";}whostr+=""+ttl+" "+ntn+" ("+(rnk==1?"R"+rnk+"":"R"+rnk+"")+")
"+trp+" "+tir+" "+(snm==""?snm="Blacklist":snm=(snm.split(":").length>1?snm.split(":")[0]:snm))+""+whonew+" "+live+sns+"
 [LeaguePoint|Wins|Losses|WinRate] »
» "+ctn+": "+flg0+(flgs!==""?" ":"")+"   ⊂⋅⊃"+blck+" "+tipurl+"
  PlayTime(Avg): "+pt+" mins "+chmpn+"
"+(coach==""?"":"  Membership Coaching! "+blst)+"
"+(n==16?"
⇣ ⇣ ⇣ ⇣ ⇣ ⇣ ⇣ ⇣ ⇣ ⇣
":"")+"
";whohtml.innerHTML+=whostr;whoisbest_svg(ntn,n,ln,ord,sid,pwlw,1,0);whofdio(ntn,sid,n);whoisbest_svg(ntn,n,ln,ord,'',0,1,0);}function whoisbest_rcd(ord,tgl,pwlw) {if(document.getElementById("whoload1")) {document.getElementById("wholdng").innerHTML="";return;}setTimeout("whoisbest_load(0,0)",100);var brdc="";for(var i=4;i<16;i++) {if(i<8){brdc="#F180F9";} else if(i>11){brdc="#F98A83";} else {brdc="#65fe08";}document.getElementById("whoinp"+i).style.borderBottom=(i==ord?"thin groove "+brdc:"");}if(tgl>0) {document.getElementById("whoisbest_rcd").innerHTML="";document.getElementById("whoisbest_ntn").innerHTML="";}var xhrr=new XMLHttpRequest();if(ord<10) {ord="0"+ord;}xhrr.open("post","./whorcd/whorcd.php?whoord="+ord,true);xhrr.responseType="json";xhrr.send();var tir,ntn,ctn,flg,sid,snm,pnt,win,lss,wnr,rnk,otp,youtube,twitter,instagram,twitch,tip,party,coach,arr=[];xhrr.onreadystatechange=function() {if(xhrr.readyState==4&&xhrr.status==200) {var updt=xhrr.response[(xhrr.response.length-1)],curr=new Date(),dif=curr.getTime()-updt,ds=Math.floor(dif/1000);var xhrpt=new XMLHttpRequest();xhrpt.open("post","./whorcd/whorcd2.php?ord="+parseInt(ord));xhrpt.send();xhrpt.onreadystatechange=function() {if(xhrpt.readyState==4&&xhrpt.status==200) {var whorsp=xhrpt.response.split("^"),pt=whorsp[0],chm=whorsp[1];for(var i=0;i17) {var j=0;if(arr[i].length==19) {j=1;}youtube=arr[i][(11+j)],twitter=arr[i][(12+j)],instagram=arr[i][(13+j)],twitch=arr[i][(14+j)],tip=arr[i][(15+j)],party=arr[i][(16+j)],coach=arr[i][(17+j)];} else {youtube="",twitter="",instagram="",twitch="",tip="",party="",coach="";}setTimeout("whohtml_rcd("+parseInt(ord)+","+pwlw+",'"+tir+"','"+ntn+"','"+ctn+"','"+flg+"','"+sid+"','"+snm+"',"+pnt+","+win+","+lss+","+wnr+","+rnk+","+otp+","+pt+","+i+","+(xhrr.response.length-2)+","+ds+",'"+chm+"','"+youtube+"','"+twitter+"','"+instagram+"','"+twitch+"','"+tip+"','"+party+"','"+coach+"')",100);}}};}}}function whoisbest_mtchliv(d,t) {var xhrmtch=new XMLHttpRequest(),xhrliv=new XMLHttpRequest(),xhrlivtwitch=new XMLHttpRequest(),xhrriot=new XMLHttpRequest();xhrmtch.open("POST","./whosrch/whomtch.php",true);xhrliv.open("POST","./whosrch/wholive.php",true);xhrlivtwitch.open("POST","./twitch/wholiv/wholive.php",true);xhrriot.open("POST","./whosrch/whoriot.php",true);xhrmtch.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhrliv.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhrlivtwitch.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhrriot.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhrmtch.send(d);xhrliv.send(d);xhrlivtwitch.send(d+"|"+t);xhrriot.send(d);}function whohtml_srch(ord,pwlw,tir,ntn0,ntn,ctn,flg,sid0,sid,snm,pnt,win,lss,wnr,rnk,otp,nrk,pg,fnn,n,ln,ds,bcnt,youtube,twitter,instagram,twitch,tip,party,coach) {for(var i=4;i<16;i++) {document.getElementById("whoinp"+i).style.borderBottom="";}var pg0=1,pg1=1,pgb="",udt=ds+"s ago",whostr="",flg0="",flgs="",trp="",trp_png="",tir_png="",trclr="",ttl="",whonew="",blckclr="",blckopct="",blck="",pge="",plst="",blst="",bttl="",tip0="",tipid="",tipurl="",tiparr=["streamlabs.com","streamelements.com","stream-bit.web.app","donorbox.org","muxy.io","gamersforgood.com","peachpay.app","own3d.pro","twip.kr","tipeeestream.com","toon.at/donate"],ttlarr=["LP","Wins","Losses","WR"],prtarr=["Kr Invader","Streamer","Pro Gamer","Semi Pro","Kr Bootcamp"];document.getElementById("whoudt").innerHTML=" "+udt+"";if(tip=="") {} else {var tips=tip.split(":");tip0=tips[0];tipid=tips[1];if(tip0==9) {tipid=tipid+"/donation";}tipurl="";}if(snm=="") {blckclr="gray";blckopct="0.7";whonew=" New";} else {blckclr="#eeeeee";blckopct="0.3";whonew="";}if(coach!==""||pg.length>3) {var pga=pg.split(":"),pga0=parseInt(pga[0]),pga1=pga[1],pga2=(pga[2]==""?"":pga[2]);if(pga0>0) {pgb="  ";}if(pg0==1) {pg1=pga0+1;}if(pga1=="l") {pg0=pga0-1;pg1=pga0+1;}if(pga1=="r") {pg0=pga0-1;pg1=pga0+1;}pge=(parseInt(bcnt)-pga0*17);if(bcnt>=0) {bttl="
 Total: "+bcnt+(pg.length>3?" "+prtarr[party]+"s":" Coaches")+"";}blck="  ";blst=" "+pgb+""+pgb+"";if(pga2>0) {plst=" "+pgb+""+pgb+"";}}blck="  ";var whohtml=document.getElementById("whoisbest_rcd");var flgarr=flg.split(",");var wnr=(Math.ceil(wnr*10000)/100),live="",sns="",snsid="",snsarr=["m.youtube.com","m.twitter.com","m.instagram.com","m.twitch.tv"],prtarri=["invdr","strmr","pro","semi","camp"];for(var i=0;i "+contrs[1]+" ";} else {flgs+="  "+contrs[1]+" ";}}switch (parseInt(nrk)) {case 1:trp_png="1st";break;case 2:trp_png="2nd";break;case 3:trp_png="3rd";break;}switch (pwlw) {case 0:pnt=""+pnt+"";break;case 1:win=""+win+"";break;case 2:lss=""+lss+"";break;case 3:wnr=""+wnr+"";break;}switch (tir.toLowerCase().split(":")[0]) {case "challenger":tir_png="c";ord=ord*2;break;case "grandmaster":tir_png="g";ord=ord*3;break;case "master":tir_png="m";break;case "diamond":tir_png="D";break;case "emerald":tir_png="E";break;case "platinum":tir_png="P";break;case "gold":tir_png="G_";break;case "silver":tir_png="S";break;case "bronze":tir_png="B";break;case "iron":tir_png="I";break;}for(var j=0;j0?"G":"Grand")+" Master ";}} else {if(j==0) {ttl+="["+ttlarr[j]+"] "+tir+" ";}}}if(nrk<4) {trp="  ";} else {trp=" "+nrk+". ";}tir="";live=" ";for(var i=0;i"+(snsarr[i].split(".")[1]=="twitter"?"X":"");}}if(party=="") {} else {var partyurl="javascript:whoisbest_srch(4,1,0,\"0:i\",\""+ntn+"\",\""+sid+"\",\""+snm+"\",2);";if(party==0) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:1\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}if(party==1) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:2\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}if(party==2) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:3\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}if(party==3) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:4\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}if(party==4) {partyurl="javascript:whoisbest_srch(4,1,0,\"1:c:5\",\""+ntn+"\",\"blacklist\",\""+snm+"\",2);";}sns+=" ";}whostr+=""+ttl+" "+ntn+" ("+(rnk==1?"R"+rnk+"":"R"+rnk+"")+") "+plst+"
"+trp+" "+tir+" "+(snm==""?snm="Blacklist":snm=(snm.split(":").length>1?snm.split(":")[0]:snm))+""+whonew+""+live+sns+"
 [LeaguePoint|Wins|Losses|WinRate] »
» "+ctn+": "+flg0+(flgs!==""?" ":"")+bttl+"   ⊂⋅⊃"+blck+" "+tipurl+"
"+(coach==""?"":"  Membership Coaching! "+blst)+"
"+(n==16&&ln<18?"
⇡ ⇡ ⇡ ⇡ ⇡   ⇣ ⇣ ⇣ ⇣ ⇣
":"")+"
";whohtml.innerHTML+=whostr;whofdio(ntn,sid,n);whoisbest_svg(ntn,n,ln,ord,sid,pwlw,1,0);}function whoisbest_srchr(ord,tgl,pwlw,pg,ntn_,srch,srnm,fnn,e,c) {if(e.keyCode==13||c==1) {var nt=document.getElementById('whosrchnt').value,tg=document.getElementById('whosrchtg').value,nm=document.getElementById('whosrchnm').value,srchnl=document.getElementById("whosrchnl"),nt_="Select Country or Region!",tg_="Type Game Tag!",ntg_="Select Country&Region and Game Tag!";srchnl.innerHTML="";if(nt!==""&&tg!=="") {setTimeout("whoisbest_load(0,0)",100);srch=nm.trim()+":"+tg.trim()+":"+nt;var srchn=srch.trim(),srchi="",whohtml=document.getElementById("whoisbest_rcd");if(tgl>0) {whohtml.innerHTML="";document.getElementById("whoisbest_ntn").innerHTML="";}var xhrr=new XMLHttpRequest();if(ord<10) {ord="0"+ord;}xhrr.open("post","./whosrch/whosrchr.php?ntn="+ntn_+"&whosrchn="+srchn+"&whosrchi="+srchi+"&pwlw="+pwlw+"&pg="+pg,true);xhrr.responseType="json";xhrr.send();var tir,ntn0,ntn,ctn,flg,sid0,sid,snm,pnt,win,lss,wnr,rnk,otp,nrk,youtube,twitter,instagram,twitch,tip,party,coach,arr=[];xhrr.onreadystatechange=function() {if(xhrr.readyState==4&&xhrr.status==200) {var arr=xhrr.response,ds=arr[(arr.length-2)],bcnt=arr[(arr.length-1)],sids="",twitchs="";if(arr.length>0) {for(var i=0;i18) {var j=0;if(arr[i].length==20) {j=1;}youtube=arr[i][(11+j)],twitter=arr[i][(12+j)],instagram=arr[i][(13+j)],twitch=arr[i][(14+j)],tip=arr[i][(15+j)],party=arr[i][(16+j)],coach=arr[i][(17+j)],nrk=arr[i][(18+j)];} else {youtube="",twitter="",instagram="",twitch="",tip="",party="",coach="",nrk=arr[i][(arr[i].length==13?12:11)];}if(i==0) {sid0=sid;ntn0=ntn;}setTimeout("whohtml_srch("+parseInt(ord)+","+pwlw+",'"+tir+"','"+ntn0+"','"+ntn+"','"+ctn+"','"+flg+"','"+sid0+"','"+sid+"','"+snm+"',"+pnt+","+win+","+lss+","+wnr+","+rnk+","+otp+","+nrk+",'"+pg+"',"+fnn+","+i+","+(arr.length-3)+","+ds+","+bcnt+",'"+youtube+"','"+twitter+"','"+instagram+"','"+twitch+"','"+tip+"','"+party+"','"+coach+"')",10);sids+=sid+":"+ntn+",";twitchs+=twitch+",";}setTimeout("whoisbest_mtchliv('"+sids.slice(0,-1)+"','"+twitchs.slice(0,-1)+"')",100);} else {var xhrl=new XMLHttpRequest();xhrl.open("post","./whoads/whoads.php?adscnt=&adsdel=",true);xhrl.send();xhrl.onreadystatechange=function() {if(xhrl.readyState==4&&xhrl.status==200) {var wholst=xhrl.response.replace(/whoads_/gi,"").replace(/.png/gi,"");a_=wholst.split(","),srchn_=srchn.split(":").length;var n=Math.floor(Math.random()*13),adsfl="";for(var j=0;jNot Master ("+(srchn==""?srchn=srnm:srchn=(srchn_==3?nm.trim():srchn))+")
#  
* Look it up via Riot "+(srchn_==3?" - Busy! Try in 30 sec.":"")+"
No Data No Master ("+(srchn==""?srchn=srnm:srchn=srchn)+") : Not in Master Tier or 10,000 Masters
 [LP:0|W:0|L:0|WR:0%]
[LeaguePoint|Wins|Losses|WinRate]
 "+(srchn==""?srchn=srnm:srchn=srchn)+": No Data - Not Found Any Summoners matched for Masters(or 10,000 Masters)
- Not Found Any Summoners As Masters(or 10,000 Masters)
";whoisbest_load(2,0);document.getElementById("whopgb").innerHTML="";document.getElementById("whoudt").style.display="inline";}}}}}} else {if(nt=="") {srchnl.innerHTML=nt_;}if(tg=="") {srchnl.innerHTML=tg_;}if(nt==""&&tg=="") {srchnl.innerHTML=ntg_;}}}}function whoisbest_srch(ord,tgl,pwlw,pg,ntn_,srch,srnm,fnn) {if(document.getElementById("whoload1")) {document.getElementById("wholdng").innerHTML="";return;}if((fnn==0&&event.keyCode==13)||fnn==1||fnn==2) {setTimeout("whoisbest_load(0,0)",100);var srchn=srch.trim(),srchi="",whohtml=document.getElementById("whoisbest_rcd");if(fnn==2) {srchn=(srch=="otp"?srnm:"");srchi=srch;}if(tgl>0) {whohtml.innerHTML="";document.getElementById("whoisbest_ntn").innerHTML="";}var xhrr=new XMLHttpRequest();if(ord<10) {ord="0"+ord;}xhrr.open("post","./whosrch/whosrch.php?ntn="+ntn_+"&whosrchn="+srchn+"&whosrchi="+srchi+"&pwlw="+pwlw+"&pg="+pg,true);xhrr.responseType="json";xhrr.send();var tir,ntn0,ntn,ctn,flg,sid0,sid,snm,pnt,win,lss,wnr,rnk,otp,nrk,youtube,twitter,instagram,twitch,tip,party,coach,arr=[];xhrr.onreadystatechange=function() {if(xhrr.readyState==4&&xhrr.status==200) {if(fnn==2) {srnm=srnm.replace(/#/g,":");if(srnm.split("-").length>1) {srnm=srnm.replaceAll("-",":");}if(srnm.split("_").length>1) {srnm=srnm.replaceAll("_"," ");}var srtg=srnm.split(":")[1];srnm=srnm.split(":")[0];}var arr=xhrr.response,ds=arr[(arr.length-2)],bcnt=arr[(arr.length-1)],sids="",twitchs="";if(arr.length>0) {for(var i=0;i18) {var j=0;if(arr[i].length==20) {j=1;}youtube=arr[i][(11+j)],twitter=arr[i][(12+j)],instagram=arr[i][(13+j)],twitch=arr[i][(14+j)],tip=arr[i][(15+j)],party=arr[i][(16+j)],coach=arr[i][(17+j)],nrk=arr[i][(18+j)];} else {youtube="",twitter="",instagram="",twitch="",tip="",party="",coach="",nrk=arr[i][(arr[i].length==13?12:11)];}if(i==0) {sid0=sid;ntn0=ntn;}setTimeout("whohtml_srch("+parseInt(ord)+","+pwlw+",'"+tir+"','"+ntn0+"','"+ntn+"','"+ctn+"','"+flg+"','"+sid0+"','"+sid+"','"+snm+"',"+pnt+","+win+","+lss+","+wnr+","+rnk+","+otp+","+nrk+",'"+pg+"',"+fnn+","+i+","+(arr.length-3)+","+ds+","+bcnt+",'"+youtube+"','"+twitter+"','"+instagram+"','"+twitch+"','"+tip+"','"+party+"','"+coach+"')",10);sids+=sid+":"+ntn+",";twitchs+=twitch+",";}setTimeout("whoisbest_mtchliv('"+sids.slice(0,-1)+"','"+twitchs.slice(0,-1)+"')",100);} else {var xhrl=new XMLHttpRequest();xhrl.open("post","./whoads/whoads.php?adscnt=&adsdel=",true);xhrl.send();xhrl.onreadystatechange=function() {if(xhrl.readyState==4&&xhrl.status==200) {var wholst=xhrl.response.replace(/whoads_/gi,"").replace(/.png/gi,"");a_=wholst.split(",");var n=Math.floor(Math.random()*13),adsfl="";for(var j=0;jNot Master ("+(srchn==""?srchn=srnm:srchn=srchn)+")
#  
* Look it up via Riot
No Data No Master ("+(srchn==""?srchn=srnm:srchn=srchn)+") : Not in Master Tier or 10,000 Masters
 [LP:0|W:0|L:0|WR:0%]
[LeaguePoint|Wins|Losses|WinRate]
 "+(srchn==""?srchn=srnm:srchn=srchn)+": No Data - Not Found Any Summoners matched for Masters(or 10,000 Masters)
- Not Found Any Summoners As Masters(or 10,000 Masters)
";whoisbest_load(2,0);document.getElementById("whopgb").innerHTML="";document.getElementById("whoudt").style.display="inline";}}}}}}}var pn=["whopng/","whologo/","whoads/","whochmp/","whotier/","whoitm/","whoqwer/","whospl/","whornr/","whoobj/","whoprfl/"];var whopos=1,whomtm="",whoclcksts=0,whoclckste=0;function whoclcke(m) {var curd=new Date(),curt=curd.getTime(),whoclckste=curt,wholft=0,whoclckstse=0,whotid=document.getElementById("whoclktxt"),whogid=document.getElementById("whologo");clearTimeout(whomtm);whogid.style.left="";whogid.style.display="none";if(m==1) {whoclckstse=(whoclckste-whoclcksts);if(whotid.innerHTML=="") {wholft=60;} else {wholft=155;}whotid.innerHTML+="";}}function whoclcks(t) {var whostp=10,whogid=document.getElementById("whologo"),whoposx=whogid.offsetLeft;whogid.style.display="";whoclcksts=t;if(whoposx>=300){whopos=0;}if(whoposx<=80){whopos=1;}if(whopos==1) {whoposx=whoposx+whostp;} else {whoposx=whoposx-whostp;}whogid.style.left=whoposx+"px";whomtm=setTimeout("whoclcks("+whoclcksts+")",20);return whoclcksts;}function whodelay(t) {return new Promise(resolve=>setTimeout(resolve,t));}function whotimer(t) {var cnt=0,whornd=Math.floor(Math.random()*3),curd=new Date(),curt=curd.getTime(),whotid=document.getElementById("whoclktxt");whotid.innerHTML="";if(t==0) {whotid.innerHTML="";if(cnt==0) {whodelay(((whornd+1)*1000)).then(()=>whoclcks(curt));}cnt++;}}function whoclkstrt() {var cnt=3,timerId=setInterval(()=>whotimer(cnt--),1000);setTimeout(()=>{clearInterval(timerId);whotimer(0);},4000);}function whoclkspd() {var whotid=document.getElementById("whoclktxt");if(whotid.innerHTML=="") {whotid.innerHTML="";whoclcke();} else {whotid.innerHTML="";}}function whoad(n,c,a) {var a_=a.split(","),adsfl="",adr_twitch="",adr_twitch_="",adr_adc="",adr_adc_="",whoadr_="",whoadn="",whoadr=n,whoadse=document.getElementById("whoadvs");for(var i=0;i";var whoadstp=0,whoadcnt=0,whoadrc=0,whoadu=document.getElementById("whoadvu"),whoadid=document.getElementById("whoadimg");setInterval(function() {if(whoadstp<5) {p=1;}if(whoadstp>=70) {p=0;}if(p==0) {whoadid.style.left=whoadstp+"px";whoadstp-=1;}if(p==1) {whoadid.style.left=whoadstp+"px";whoadstp+=1;}},100);setInterval(function() {var xhrl=new XMLHttpRequest();xhrl.open("post","./whoads/whoads.php?adscnt=&adsdel=",true);xhrl.send();xhrl.onreadystatechange=function() {if(xhrl.readyState==4&&xhrl.status==200) {var wholst=xhrl.response.replace(/whoads_/gi,"").replace(/.png/gi,"");a_=wholst.split(",");whoadr=Math.floor(Math.random()*c);for(var j=0;j1) {var whofrmd=new FormData();whofrmd.append("whotxt",whoinp);var xhrm=new XMLHttpRequest();xhrm.open("POST","./whomsg/whomsg.php",true);xhrm.onload=function() {if (this.status==200) {var whorsp=JSON.parse(this.response);alert("Messages has been sent to © Who Is Best, Inc. Messages: "+whorsp.whomsg+" ("+whorsp.whomsg.length+" bytes)");whomsg();};};xhrm.send(whofrmd);} return true;}}function whomsg() {var whomsgidi=document.getElementById("whomsgi"),whomsgidl=document.getElementById("whomsgl");if(whomsgidi.style.display=="") {whomsgidi.style.display="none";whomsgidl.style.display="";} else {whomsgidi.style.display="";whomsgidl.style.display="none";}}var whotptm;function whotop() {if (document.body.scrollTop!=0||document.documentElement.scrollTop!=0){window.scrollBy(0,-370);whotptm=setTimeout("whotop()",10);} else clearTimeout(whotptm);}function whotier(t) {switch(t){case "c":t="#65fe08";break;case "g":t="#F98A83";break;case "m":t="#F180F9";break;case "":t="black";break;} return t;}function whoisbest_sprn(s,r,v) {var whosprn0id=document.getElementById("whosprn0"+v),whosprn1id=document.getElementById("whosprn1"+v),sp=s.split(","),rn=r.split(","),img0="",img1="";if(whosprn0id||whosprn1id) {if(whosprn0id.style.visibility=="visible"||whosprn1id.style.visibility=="visible") {whosprn0id.style.visibility="hidden";whosprn1id.style.visibility="hidden";whosprn0id.innerHTML="";whosprn1id.innerHTML="";} else {whosprn0id.style.visibility="visible";whosprn1id.style.visibility="visible";for(var i=0;i

";}} else if(rmnd>4&&rmnd<10) {if(qtnt==0) {var rn_1_=(rn[rmnd]?rn[rmnd]:"1:1:1:1:1:1:1:1:1:1:1"),rn_1=rn_1_.split(":");img1+="

";}}}whosprn0id.innerHTML=img0;whosprn1id.innerHTML=img1;}}}function whoisbest_liv(n,s,v,d,p) {var whochmplen=function(s) {var sln="",slc=0,swd=0;var wholnchk=function(str) {var stg=document.createElement("span");document.body.appendChild(stg);stg.style.position="absolute";stg.innerHTML=""+str+"";swd=Math.ceil(stg.clientWidth);return swd;};swd=wholnchk(s);if(swd>86) {var dgt=/^[0-9]*$/g,kjc=/^[ㄱ-ㅎ|ㅏ-ㅣ|가-힣|ァ-ヶーぁ-ん|一-龥]+$/g;var whowdpx=function() {var cnt=0;for(var i=0;i86) {sln=s.substring(0,(slc-1));swd=wholnchk(sln);if(swd>86) {sln=s.substring(0,(slc-2));}}} else {sln=s;}return sln;};var xhrf=new XMLHttpRequest();xhrf.open("post","./wholiv/wholiv.php?whosid="+s+":"+n,true);xhrf.send();xhrf.onreadystatechange=function() {if(xhrf.readyState==4&&xhrf.status==200) {var whopopid=document.getElementById("wholiv"+v),whomtchid=document.getElementById("whomtch"+v),whoblckid=document.getElementById("whoblck"+v),whochmid0=document.getElementById("whochmn"+v+"_0"),whochmid1=document.getElementById("whochmn"+v+"_1"),whochmid2=document.getElementById("whochmn"+v+"_2"),whochmid3=document.getElementById("whochmn"+v+"_3"),whochmid4=document.getElementById("whochmn"+v+"_4"),whopopelm=document.createElement("style"),whopnl="";if(whochmid0) {whochmid0.style.visibility="hidden";}if(whochmid1) {whochmid1.style.visibility="hidden";}if(whochmid2) {whochmid2.style.visibility="hidden";}if(whochmid3) {whochmid3.style.visibility="hidden";}if(whochmid4) {whochmid4.style.visibility="hidden";}if(whoblckid) {whoblckid.style.visibility="hidden";}if(whomtchid) {whomtchid.style.visibility="hidden";}if(whopopid.style.visibility=="visible"&&d<0) {var whovsbl="hidden",whofd="whofdout";} else {var whovsbl="visible",whofd="whofdin";if(parseInt(v)>0) {if(document.getElementById("wholiv"+parseInt(v-1))) {document.getElementById("wholiv"+parseInt(v-1)).style.visibility="hidden";}if(document.getElementById("whomtch"+parseInt(v-1)).style) {document.getElementById("whomtch"+parseInt(v-1)).style.visibility="hidden";}}if(parseInt(v)<15) {if(document.getElementById("wholiv"+parseInt(v+1))) {document.getElementById("wholiv"+parseInt(v+1)).style.visibility="hidden";}if(document.getElementById("whomtch"+parseInt(v+1))) {document.getElementById("whomtch"+parseInt(v+1)).style.visibility="hidden";}}var wd=170,mt=25,aft=-42;if(xhrf.response.length==2) {whopnl="
Not Playing Now
";} else {var whorsp=xhrf.response,whopnl0=whorsp.split("|")[0],whopnl1=whorsp.split("|")[1],whopnl2=whorsp.split("|")[2];var whopltm=" "+whopnl0.split(",")[2].substr(0,7)+"Started: "+whopnl0.split(",")[5]+" Min ago Live",whoplch=whopnl1.split(",");var whochmpi="",whoprfli="",whobanni="X",whochmpr="";var whoban0="",whoban1="",whochmp0="",whochmp1="",whochmp2="",whochmp3="",whochmp4="",whochmp5="",whochmp6="",whochmp7="",whochmp8="",whochmp9="",whochmp10="",whochmp11="",whochmp12="",whochmp13="",whochmp14="",whochmp15="",whochmi0="",whochmi1="",whochmi2="",whochmi3="",whochmi4="",whochmi5="",whochmi6="",whochmi7="",whochmi8="",whochmi9="",whochmi10="",whochmi11="",whochmi12="",whochmi13="",whochmi14="",whochmi15="",whoprfl0="",whoprfl1="",whoprfl2="",whoprfl3="",whoprfl4="",whoprfl5="",whoprfl6="",whoprfl7="",whoprfl8="",whoprfl9="",whoprfl10="",whoprfl11="",whoprfl12="",whoprfl13="",whoprfl14="",whoprfl15="",whochv="",whochv2="",whocht="",whochtc=" {Challenger}",whochtg=" {Grand Master}",whochtm=" {Master}",whochtd=" {Diamond}",whochtcc="black #65fe08 black",whochtcg="black #F98A83 black",whochtcm="black #F180F9 black",whovs=" VS ",whochmpu0="0) {wholn=parseInt(wholn-1);}if(whochmcnt>70&&whochmcnt<113) {whoqt0=8;whoqt1=16;}whoqt=whoqt0-(wholn/2);for(var i=0;i70&&whochmcnt<113) {if(livchmc<16) {wholivchma[livchmc]=livchmn;}} else {if(livchmc<10) {wholivchma[livchmc]=livchmn;}}}whochmpr=whochmpi.replace("|",whochv.split("_")[0]).replace("^",((whochv.split("_")[0]=="")?"*Blacklist":whochv.split("_")[0]));if(whormnd";}if(whoqtnt==5) {whochmp0=whochmp0.replace("|",whochv);}}if(whormnd==1) {if(whoqtnt==2) {whochmi1+=whochmpr;}if(whoqtnt==3) {whoprfl1+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi1=whochmi1.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi1=whochmi1.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi1=whochmi1.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp1+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp1=whochmp1.replace("|",whochv);}}if(whormnd==2) {if(whoqtnt==2) {whochmi2+=whochmpr;}if(whoqtnt==3) {whoprfl2+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi2=whochmi2.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi2=whochmi2.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi2=whochmi2.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp2+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp2=whochmp2.replace("|",whochv);}}if(whormnd==3) {if(whoqtnt==2) {whochmi3+=whochmpr;}if(whoqtnt==3) {whoprfl3+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi3=whochmi3.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi3=whochmi3.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi3=whochmi3.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp3+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp3=whochmp3.replace("|",whochv);}}if(whormnd==4) {if(whoqtnt==2) {whochmi4+=whochmpr;}if(whoqtnt==3) {whoprfl4+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi4=whochmi4.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi4=whochmi4.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi4=whochmi4.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp4+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp4=whochmp4.replace("|",whochv);}}if(whochmcnt>70&&whochmcnt<113) {if(whormnd==5) {if(whoqtnt==2) {whochmi5+=whochmpr;}if(whoqtnt==3) {whoprfl5+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi5=whochmi5.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi5=whochmi5.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi5=whochmi5.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp5+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp5=whochmp5.replace("|",whochv);}}if(whormnd==6) {if(whoqtnt==2) {whochmi6+=whochmpr;}if(whoqtnt==3) {whoprfl6+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi6=whochmi6.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi6=whochmi6.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi6=whochmi6.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp6+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp6=whochmp6.replace("|",whochv);}}if(whormnd==7) {if(whoqtnt==2) {whochmi7+=whochmpr;}if(whoqtnt==3) {whoprfl7+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi7=whochmi7.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi7=whochmi7.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi7=whochmi7.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp7+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp7=whochmp7.replace("|",whochv);}}if(whormnd==8) {if(whoqtnt==2) {whochmi8+=whochmpr;}if(whoqtnt==3) {whoprfl8+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi8=whochmi8.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi8=whochmi8.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi8=whochmi8.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp8+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp8=whochmp8.replace("|",whochv);}}}}if(whormnd>whoqt0-1-whoqt&&whormnd70&&whochmcnt<113) {if(whormnd==9) {if(whoqtnt==2) {whochmi9+=whochmpr;}if(whoqtnt==3) {whoprfl9+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi9=whochmi9.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi9=whochmi9.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi9=whochmi9.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp9+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp9=whochmp9.replace("|",whochv);}}if(whormnd==10) {if(whoqtnt==2) {whochmi10+=whochmpr;}if(whoqtnt==3) {whoprfl10+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi10=whochmi10.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi10=whochmi10.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi10=whochmi10.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp10+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp10=whochmp10.replace("|",whochv);}}if(whormnd==11) {if(whoqtnt==2) {whochmi11+=whochmpr;}if(whoqtnt==3) {whoprfl11+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi11=whochmi11.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi11=whochmi11.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi11=whochmi11.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp11+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp11=whochmp11.replace("|",whochv);}}if(whormnd==12) {if(whoqtnt==2) {whochmi12+=whochmpr;}if(whoqtnt==3) {whoprfl12+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi12=whochmi12.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi12=whochmi12.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi12=whochmi12.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp12+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp12=whochmp12.replace("|",whochv);}}if(whormnd==13) {if(whoqtnt==2) {whochmi13+=whochmpr;}if(whoqtnt==3) {whoprfl13+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi13=whochmi13.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi13=whochmi13.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi13=whochmi13.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp13+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp13=whochmp13.replace("|",whochv);}}if(whormnd==14) {if(whoqtnt==2) {whochmi14+=whochmpr;}if(whoqtnt==3) {whoprfl14+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi14=whochmi14.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi14=whochmi14.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi14=whochmi14.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp14+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp14=whochmp14.replace("|",whochv);}}if(whormnd==15) {if(whoqtnt==2) {whochmi15+=whochmpr;}if(whoqtnt==3) {whoprfl15+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi15=whochmi15.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi15=whochmi15.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi15=whochmi15.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp15+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp15=whochmp15.replace("|",whochv);}}} else {if(whormnd==5-whoqt) {if(whoqtnt==2) {whochmi5+=whochmpr;}if(whoqtnt==3) {whoprfl5+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi5=whochmi5.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi5=whochmi5.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi5=whochmi5.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp5+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp5=whochmp5.replace("|",whochv);}}if(whormnd==6-whoqt) {if(whoqtnt==2) {whochmi6+=whochmpr;}if(whoqtnt==3) {whoprfl6+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi6=whochmi6.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi6=whochmi6.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi6=whochmi6.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp6+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp6=whochmp6.replace("|",whochv);}}if(whormnd==7-whoqt) {if(whoqtnt==2) {whochmi7+=whochmpr;}if(whoqtnt==3) {whoprfl7+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi7=whochmi7.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi7=whochmi7.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi7=whochmi7.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp7+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp7=whochmp7.replace("|",whochv);}}if(whormnd==8-whoqt) {if(whoqtnt==2) {whochmi8+=whochmpr;}if(whoqtnt==3) {whoprfl8+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi8=whochmi8.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi8=whochmi8.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi8=whochmi8.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp8+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp8=whochmp8.replace("|",whochv);}}if(whormnd==9) {if(whoqtnt==2) {whochmi9+=whochmpr;}if(whoqtnt==3) {whoprfl9+=whoprfli.replace("|",whochv);}if(whoqtnt==4) {whochv2=whochv.split(":");switch(whochv2[1]){case "c":whochmi9=whochmi9.replace("black",whochtcc);whocht=whochtc;break;case "g":whochmi9=whochmi9.replace("black",whochtcg);whocht=whochtg;break;case "m":whochmi9=whochmi9.replace("black",whochtcm);whocht=whochtm;break;case "":whocht=whochtd;break;}whochmp9+=whochmpu0+"|"+whochmpu1+whochv2[0]+whochmpu1_+whochmpu2+((whochv2[0]=="")?"*Blacklist"+whocht:whochv2[0]+whocht)+whochmpu3+((whochmplen(whochv2[0])=="")?"*Blacklist":whochmplen(whochv2[0]))+"";}if(whoqtnt==5) {whochmp9=whochmp9.replace("|",whochv);}}}}var i_0=59,i_1=65,xht=164;if(whochmcnt>70&&whochmcnt<113) {i_0=95;i_1=101;xht=230;}if(i>i_0&&ii_1-1&&iablcnt-1) {ablrght+=whoablt1;}}}}if(abllft==ablrght) {ablcmpl0=" ▬ ";ablcmpr0=" ▬ ";ablcmpl1=" ▬ ";ablcmpr1=" ▬ ";document.getElementById("ablcmpl0"+v+"_"+i).style.color="black";document.getElementById("ablcmpr0"+v+"_"+i).style.color="black";document.getElementById("ablcmpl1"+v+"_"+i).style.color="black";document.getElementById("ablcmpr1"+v+"_"+i).style.color="black";} else if(abllft>ablrght) {ablcmpl0="▲";ablcmpr0="▼";ablcmpl1="▲";ablcmpr1="▼";document.getElementById("ablcmpl0"+v+"_"+i).style.color="red";document.getElementById("ablcmpr0"+v+"_"+i).style.color="blue";document.getElementById("ablcmpl1"+v+"_"+i).style.color="red";document.getElementById("ablcmpr1"+v+"_"+i).style.color="blue";} else if(abllft"+Math.abs(abllft-ablrght)+" "+abllft+"";document.getElementById("ablcmpr0"+v+"_"+i).innerHTML=ablcmpr0+""+Math.ceil(Math.abs((ablrght/ablcnt)-(abllft/ablcnt)))+"";document.getElementById("ablcmpl1"+v+"_"+i).innerHTML=""+Math.ceil(Math.abs((abllft/ablcnt)-(ablrght/ablcnt)))+""+ablcmpl1;document.getElementById("ablcmpr1"+v+"_"+i).innerHTML=""+ablrght+" "+Math.abs(ablrght-abllft)+""+ablcmpr1;document.getElementById("ablavgl"+v+"_"+i).innerHTML="Avg "+Math.round((abllft/ablcnt)*100/100)+" ";document.getElementById("ablavgr"+v+"_"+i).innerHTML=" "+Math.round((ablrght/ablcnt)*100/100)+" Avg";document.getElementById("ablttl"+v+"_"+i).innerText=ablttl[0];document.getElementById("ablttl"+v+"_"+i).title=ablttl[1];}}};if(whochmcnt>70&&whochmcnt<113) {whopnl="
"+whopltm+"
"+whoprfl0+""+whochmp0+""+whochmi0+whovs+whochmi8+""+whochmp8+""+whoprfl8+"
"+whoprfl1+""+whochmp1+""+whochmi1+whovs+whochmi9+""+whochmp9+""+whoprfl9+"
"+whoprfl2+""+whochmp2+""+whochmi2+whovs+whochmi10+""+whochmp10+""+whoprfl10+"
"+whoprfl3+""+whochmp3+""+whochmi3+whovs+whochmi11+""+whochmp11+""+whoprfl11+"
"+whoprfl4+""+whochmp4+""+whochmi4+whovs+whochmi12+""+whochmp12+""+whoprfl12+"
"+whoprfl5+""+whochmp5+""+whochmi5+whovs+whochmi13+""+whochmp13+""+whoprfl13+"
"+whoprfl6+""+whochmp6+""+whochmi6+whovs+whochmi14+""+whochmp14+""+whoprfl14+"
"+whoprfl7+""+whochmp7+""+whochmi7+whovs+whochmi15+""+whochmp15+""+whoprfl15+"
"+whobanni+" "+whoban0+whovs+whoban1+" "+whobanni+"
 [ X ] ";aft=-6;} else {whopnl="
"+whopltm+"
"+whoprfl0+""+whochmp0+""+whochmi0+whovs+whochmi5+""+whochmp5+""+whoprfl5+"
"+whoprfl1+""+whochmp1+""+whochmi1+whovs+whochmi6+""+whochmp6+""+whoprfl6+"
"+whoprfl2+""+whochmp2+""+whochmi2+whovs+whochmi7+""+whochmp7+""+whoprfl7+"
"+whoprfl3+""+whochmp3+""+whochmi3+whovs+whochmi8+""+whochmp8+""+whoprfl8+"
"+whoprfl4+""+whochmp4+""+whochmi4+whovs+whochmi9+""+whochmp9+""+whoprfl9+"
"+whobanni+" "+whoban0+whovs+whoban1+" "+whobanni+"
 [ X ] ";aft=-8;}wd=317;mt=27;}} whopopid.setAttribute("style","visibility:"+whovsbl+";width:"+wd+"px;background-color:#555;color:#fff;border-radius:6px;padding:5px 0;position:absolute;z-index:1;left:0.5%;margin-top:"+mt+"px;filter:drop-shadow(gray 6px 6px 8px);animation:"+whofd+" 3s;");var whopopcss=".wholiv"+v+"::after{content:'';position:absolute;top:"+aft+"%;left:25%;margin-left:-5px;border-width:7px;border-style:solid;border-color:transparent transparent #555 transparent;}";whopopelm.type="text/css";document.head.appendChild(whopopelm);whopopelm.sheet.insertRule(whopopcss,whopopelm.length);whopopid.innerHTML=""+whopnl.replace(">"+whochmp+"<",">"+((whochmp=="")?"*Blacklist":whochmp)+"<")+"";}setTimeout("whofdio('"+n+"','"+s+"',"+v+")",100);}}function whofdio(n,s,v) {var xhrlc=new XMLHttpRequest();xhrlc.open("post","./wholiv/wholivchk.php?whosid="+s+":"+n,true);xhrlc.send();xhrlc.onreadystatechange=function() {if(xhrlc.readyState==4&&xhrlc.status==200) {var whorsp=xhrlc.response,wholvchkid=document.getElementById("wholvchk"+v);if(wholvchkid) {if(whorsp==1) {wholvchkid.style.WebkitAnimation="whofdio 4s infinite";wholvchkid.style.animation="whofdio 4s infinite";} else {document.addEventListener("DOMContentLoaded",function() {wholvchkid.style.WebkitAnimation="";wholvchkid.style.animation="";});}}};};setInterval(whotwitch(n,s,v),100);}function whotwitch(n,s,v) {var xhrt=new XMLHttpRequest();xhrt.open("post","./twitch/wholiv/wholivchk.php?whosid="+s+":"+n,true);xhrt.send();xhrt.onreadystatechange=function() {if(xhrt.readyState==4&&xhrt.status==200) {var whorsp=xhrt.response;if(whorsp=="") {} else {document.getElementById("whosns"+v+"_twitch").style.WebkitAnimation="whofdio 4s infinite";document.getElementById("whosns"+v+"_twitch").style.animation="whofdio 4s infinite";var curr=new Date(),lvdt=new Date(whorsp),dif=Math.abs(curr.getTime()-lvdt.getTime()),hs=Math.floor(dif/1000/60/60);dif-=hs*1000*60*60;var ms=Math.floor(dif/1000/60),hss="",mss="";document.getElementById("whosns"+v+"_twitch").setAttribute("title","Started: "+hs+" hour"+((hs<2)?hss="":hss="s")+" "+ms+" minute"+((ms<2)?mss="":mss="s")+" ago");}};};}function whoisbest_abl(d,n) {var bar=0,barm=0,chmps="",chmpf="",chmt="",bclr="",ablta="",ablts=["attck:Attack","dfns:Defense","mgc:Magic","dffclt:Difficulty","hp:HP","mp:MP","mvspd:Move Speed","armr:Armor","spllblck:Spell Block","attckrng:Attack Range","hprgn:HP Regen","mprgn:MP Regen","attckdmg:Attack Damage","attckspd:Attack Speed","5:Most Played WinRate","4:Most Played Losses","3:Most Played Wins","6:Most Played LeaguePoints","0:Top Picks & Win Rate"],xhrc=new XMLHttpRequest();ablta=ablts[n].split(":");if(document.getElementById("otp"+n)) {for(var i=0;i<19;i++) {if(i==n) {document.getElementById("otp"+n).style.color="gold";} else {document.getElementById("otp"+i).style.color="black";}}}if(n>13) {chmt="";} else {chmt=""+ablta[1]+"";}document.getElementById("whochmt").innerHTML=chmt;if(n>13) {chmpf="whochmpi.php?otp="+ablta[0];} else {chmpf="whochmp_abl.php?abl="+ablta[0];}xhrc.open("post","./whochmp/"+chmpf,true);xhrc.send();xhrc.onreadystatechange=function() {if(xhrc.readyState==4&&xhrc.status==200) {var whorsp=xhrc.response.split("|");if(n>13) {var rmd=(n==18?4:3),w=0,l=0,r=0;var chmpi=whorsp[0].split(","),chmpi2=whorsp[1].split(","),chmpid=whorsp[2].split(","),chmpid2=whorsp[3].split(","),chmg="
",chmg2="
",cr="
",chmgi="";for(var i=0;i13&&n<18) {if(chmpi[i].toLowerCase()==chmpid[j].toLowerCase()) {w=chmpid[(j+1)],l=chmpid[(j+2)],r=chmpid[(j+3)];}}}}var itr="whoisbest_itr("+(i/rmd+1)+",\""+chmpi[i]+"\","+w+","+l+","+r+","+((i/rmd+1)*-1)+","+(n==17?6:((n-10)+1-2*(n-14)))+",1,1);";var ttl=ablta[1]+" "+(i/rmd+1)+". ["+chmpi[i]+"] "+ablta[1].slice(11)+":"+(n==14?(chmpi[(i+2)]*100)+"%":chmpi[(i+2)]);}chmg+="";if((i/rmd)%22==21) {chmg+=cr;}if(n==18) {var itr2="whoisbest_itr("+(i/rmd+1)+",\""+chmpi2[i]+"\","+chmpi2[(i+1)]+","+chmpi2[(i+2)]+","+chmpi2[(i+3)]+","+(-1000+(i/rmd+1)*-1)+",1,0,0);",ttl2="Top WinRate "+(i/rmd+1)+". ["+chmpi2[i]+"] Wins:"+chmpi2[(i+1)]+", Losses:"+chmpi2[(i+2)]+", WinRate:"+chmpi2[(i+3)]+"%";} else {for(var j=0;j13&&n<18) {if(chmpi2[i].toLowerCase()==chmpid2[j].toLowerCase()) {w=chmpid2[(j+1)],l=chmpid2[(j+2)],r=chmpid2[(j+3)];}}}}var itr2="whoisbest_itr("+(i/rmd+1)+",\""+chmpi2[i]+"\","+w+","+l+","+r+","+(-1000+(i/rmd+1)*-1)+",2,1,1);";var ttl2=ablta[1].slice(0,11)+" "+(i/rmd+1)+". ["+chmpi2[i]+"] Populace:"+chmpi2[(i+2)];}chmg2+="";if((i/rmd)%22==21) {chmg2+=cr;}}}chmg+="
";chmg2+="
";chmgi=chmg+" "+(n==18?"TOP PICKS of WORLD TOP 17 RANKERS":ablta[1])+"

"+chmg2+" "+(n==18?"TOP WINRATE of WORLD TOP 17 RANKERS":"MOST PLAYED by MASTER CLASS")+"";} else {if(n%2==0) {bclr="gold";} else {bclr="white";}chmps+="
";for(var i=0;i0) {bar=bar*10;}chmps+=""+ablt[3]+"
";}chmps+="
";}if(n==14||n==15||n==16||n==17||n==18) {document.getElementById("whochmg").style.visibility="visible";document.getElementById("whochmg").innerHTML=chmgi;document.getElementById("whoablt").style.visibility="hidden";document.getElementById("whoablt").innerHTML="";} else {document.getElementById("whochmg").style.visibility="hidden";document.getElementById("whochmg").innerHTML="";document.getElementById("whoablt").style.visibility="visible";document.getElementById("whoablt").innerHTML=chmps;}}};if(d==1) {document.getElementById("chmglft").onclick=function(){whoisbest_abl(0,n<1?18:n-1)};document.getElementById("chmgrght").onclick=function(){whoisbest_abl(1,n>17?0:n+1)};}if(d==0) {document.getElementById("chmglft").onclick=function(){whoisbest_abl(0,n<1?18:n-1)};document.getElementById("chmgrght").onclick=function(){whoisbest_abl(1,n>17?0:n+1)};}}function lolitr(s,r,n) {var xhri=new XMLHttpRequest();xhri.open("post","./lol/lolgtp.php?lolsid="+s+"&lolctp="+r,true);xhri.send();xhri.onreadystatechange=function() {if(xhri.readyState==4&&xhri.status==200) {var i=xhri.response.split(":");if(i[1]) {whoisbest_itr(i[0],i[1],i[2],i[3],i[4],n,0,0,0);document.getElementById("ctp"+n).style.backgroundImage="url('./lol/lolctp.php?lolsid="+s+":1:"+Date.now()+"')";}}}}function whoisbest_itr(n,c,w,l,r,n_,p,d,e) {if(n_<-1000) {var n0=n_;n_=n_+1000;}if(n0<-1000&&p==0) {p=p+1;}var c12=(n_>=0?"ctpi":(p==1||n0<-1000?"chmpi2_":"chmpi_")),whoitrid=document.getElementById(c12+(n_>=0?n_:(n_<0?Math.abs(n_):n))).innerText,whogrphfnd=whoitrid.indexOf("Rank(2"),otpf,o12=(p==1||n0<-1000?"otpm2_":"otpm_");if(whogrphfnd>-1) {d=0}if(p>1) {d=d;}if(document.getElementById(o12+n_+"_"+p)) {var otpm_=document.getElementById(o12+n_+"_"+p).style.color;otpf=otpm_.indexOf("215");if(otpf>-1) {d=1;}}var sp=10,rank=0,whoitrid="",xhrg=new XMLHttpRequest();xhrg.open("post","./whochmp/whogrph.php?whochm="+c+"&whopck="+p+"&whornk="+d,true);xhrg.send();xhrg.onreadystatechange=function() {if(xhrg.readyState==4&&xhrg.status==200) {if(document.getElementById(c12+(n_>=0?n_:(n_<0?Math.abs(n_):n)))) {var whochmpid=document.getElementById(c12+(n_>=0?n_:(n_<0?Math.abs(n_):n))),whochmpid0=document.getElementById(c12+(n_>=0?n_-1:(n_<0?Math.abs(n_)-1:n-1))),whochmpid1=document.getElementById(c12+(n_>=0?n_+1:(n_<0?Math.abs(n_)+1:n+1))),whochmpelm=document.createElement("style");if(whochmpid.style.visibility=="visible"&&e==0) {var whovsbl="hidden",whofd="whofdout";} else {if(whochmpid0) {whochmpid0.style.visibility="hidden";}if(whochmpid1) {whochmpid1.style.visibility="hidden";}var whovsbl="visible",whofd="whofdin";}var whorsp=xhrg.response.split(","),whoplyln="",whoamp="",whoarrw="",whoac="",whortg="",whomax=whorsp[(whorsp.length-1)],whorng0=whorsp[(whorsp.length-2)],whorng1=whorsp[(whorsp.length-3)],whorng=0;if(whorng0==0.1) {whorng0=0;}if(whorng1==0.1) {whorng1=0;}if(otpf>-1) {n=whorng0;}whorng=(d==0?whorng0-whorng1:(whorng1==0?whorng0:whorng1-whorng0));if(Number.isInteger(whorng)==false) {whorng=Math.floor(whorng*100)/100;}if(whorng==0) {whoarrw=" ▬";whoac="black";whorng="";} else if(whorng>0) {whoarrw="▲";whoac="red";} else if(whorng<0) {whoarrw="▼";whoac="blue";}whortg=""+whoarrw+""+whorng+(Number.isInteger(whorng)==true||whorng==""?"":"%")+"";if(d==1) {rank=50;}for(var i=0;i"+otpmn[i]+(i==1?" »":"")+"";}whochmpid.innerHTML="

1st
X
"+n+". "+c+" ("+(p==0?"Pick":"WR")+")
"+(p==0?"W:"+w+", L:"+l+" (WR:"+r+"%)":(p>1?"Most Played "+otpmn[p]+(d==0?"":" Rank")+": "+whorng0+whoamp+"":"WR:"+r+"% (W:"+w+", L:"+l+")"))+"
"+(p==1?"WinRate":(p>1?otpmn[p]:"Picks"))+whogtxt+"(2weeks) "+whortg+"
"+(p>1?"OTP 1st Rank "+otpmn[p]+" of World Master Class":"Matches of World Top 17 Rankers")+"
In Each Section ("+(otpmn[p]=="LP"?"LP":"LP")+","+(otpmn[p]=="Win"?"Win":"Win")+","+(otpmn[p]=="Loss"?"Loss":"Loss")+","+(otpmn[p]=="WR"?"WR":"WR")+")
"+otp+"
";if(document.getElementById("otpt"+n_)) {if(p>1) {if(otpf>-1) {document.getElementById("otpt0_"+n_).innerHTML=whorng0;}document.getElementById("otpt"+n_).innerHTML="("+otpmn[p]+")";} else {document.getElementById("otpt0_"+n_).innerHTML=(p>1?whorng0:n);document.getElementById("otpt"+n_).innerHTML="("+(p==0?"Pick":"WR")+")";}}}}}}function whoisbest_itr2(n,c,p,t,v,l,a,e) {if(document.getElementById("ablt"+n)) {var whoabltid=document.getElementById("ablt"+n),whoabltid0=document.getElementById("ablt"+(n-1)),whoabltid1=document.getElementById("ablt"+(n+1)),whoabltelm=document.createElement("style");if(whoabltid.style.visibility=="visible"&&e==0) {var whovsbl="hidden",whofd="whofdout";} else {if(whoabltid0) {whoabltid0.style.visibility="hidden";}if(whoabltid1) {whoabltid1.style.visibility="hidden";}var whovsbl="visible",whofd="whofdin";}whoabltid.setAttribute("title","Whole Champions Competed in Abilities");whoabltid.setAttribute("style","visibility:"+whovsbl+";width:182px;height:88px;background-color:#555;border-radius:6px;position:absolute;z-index:1;opacity:1.0;animation:"+whofd+" 3s;");var whochmpcss=".whomp::after{content:'';position:absolute;top:-6px;border-width:3px;border-style:solid;border-color:transparent transparent #555 transparent;}";whoabltelm.type="text/css";document.head.appendChild(whoabltelm);whoabltelm.sheet.insertRule(whochmpcss,whoabltelm.length);var sp=10,xhrg=new XMLHttpRequest();xhrg.open("post","./whochmp/whogrph2.php?whochm="+c+"&whoabl="+a.split(":")[0],true);xhrg.send();xhrg.onreadystatechange=function() {if(xhrg.readyState==4&&xhrg.status==200) {var whorsp=xhrg.response.split(","),whoplyln="",whoarrw="",whoac="",whortg="",whomax=whorsp[(whorsp.length-1)],whorng0=whorsp[(whorsp.length-2)],whorng1=whorsp[(whorsp.length-3)],whorng=0;if(whorng0==0.1) {whorng0=0;}if(whorng1==0.1) {whorng1=0;}whorng=whorng0-whorng1;if(Number.isInteger(whorng)==false) {whorng=Math.floor(whorng*100)/100;}if(whorng==0) {whoarrw=" ▬";whoac="black";whorng="";} else if(whorng>0) {whoarrw="▲";whoac="red";} else if(whorng<0) {whoarrw="▼";whoac="blue";}whortg=""+whoarrw+""+whorng+"";for(var i=0;iX
"+n+". "+c+" "+(t==""?"":"("+t+")")+"
"+p+"
"+a.split(":")[1]+": "+v+" "+(l==""?"":"(lvl+"+l+")")+"
";}};}}function whoisbest_menu() {var whomnid=document.getElementById("whoisbest_menu");if(whomnid.style.visibility=="visible") {whofd="whofdout";whomnid.style.visibility="hidden";} else {whomnid.setAttribute("style","visibility:visible;width:31px;background-color:#555;color:#fff;border-radius:2px;padding:5px 0;position:absolute;z-index:1;left:0%;margin-top:5px;animation:"+whofd+" 3s;");whomnid.innerHTML="
";}var strwdth=window.innerWidth,strhght=window.innerHeight,strwh=Math.floor(strwdth/strhght);if(strwh>0&&strwdth>=1080) {var xhri=new XMLHttpRequest();xhri.open("post","./whochmp/whochmpi.php",true);xhri.responseType="text";xhri.send();xhri.onreadystatechange=function() {if(xhri.readyState==4&&xhri.status==200) {var whorsp=xhri.response.split("|"),chmpi=whorsp[0].split(","),chmpi2=whorsp[1].split(","),chmg="
",chmg2="
",cr="
",whodsktp=document.getElementById("whoisbest_dsktp");for(var i=0;i";if((i/4)%22==21) {chmg+=cr;}chmg2+="";if((i/4)%22==21) {chmg2+=cr;}}}chmg+="
";chmg2+="
";var optmenu=["Attack","Defense","Magic","Difficulty","HP","MP","MS","Armor","MR","AR","HP(R)","MP(R)","AD","AS","WR","Loss","Win","LP","Pick"],otp="",otp2="",otpt=25,otpt2=5;otp+="OTP";for(var i=0;i<19;i++) {if(i>13) {otp+=""+optmenu[i]+"";} else {otp2+=""+optmenu[i]+"";}}whodsktp.innerHTML=""+otp+""+otp2+"
"+chmg+" TOP PICKS of WORLD TOP 17 RANKERS

"+chmg2+" TOP WINRATE of WORLD TOP 17 RANKERS
";}}}}function whosrvrntn(n) {var whosrvr="("+n+"x)";document.getElementById("whosrvr_"+n).innerHTML=""+whosrvr+"";}function whoisbest_hdlyr(ord) {whoisbest_wgrph("w","-1",ord,0,0,0);}function whoisbest_wgrph(ntn,n,ord,p,d,e) {var whogrphtxt=document.getElementById("whogrph").innerText,whogrphfnd=whogrphtxt.indexOf("1Y");if(whogrphfnd>-1) {d=0}var sp=10;var xhrw=new XMLHttpRequest();xhrw.open("post","./whogrph/whogrph.php?whonid="+ntn+"&whotier="+ord+"&whosid=&whopwlw=&whoplytm="+p+"&whoterm="+d,true);xhrw.send();xhrw.onreadystatechange=function() {if(xhrw.readyState==4&&xhrw.status==200) {if(document.getElementById("whogrph")) {var whogrphid=document.getElementById("whogrph"),whowmpid=document.getElementById("whomp"),whogrphelm=document.createElement("style"),lft="",whotr="";whowmpid.style.visibility="hidden";if((whogrphid.style.visibility=="visible"&&e==0)||e==2) {var whovsbl="hidden",whofd="whofdout";} else {var whovsbl="visible",whofd="whofdin";}switch(ord) {case 0:lft=65;whotr="Total";break;case 1:lft=15;whotr="Challenger";break;case 2:lft=30;whotr="Grand Master";break;case 3:lft=50;whotr="Master";break;}var whorsp=xhrw.response.split(","),whoplyln="",whomax=whorsp[(whorsp.length-1)];if(d==1) {sp=0.55}for(var i=0;i
World Record ("+whodays+" flow) "+whotr+" [X]
";whoisbest_wsvg(d);}}}}function whoisbest_wsvg(d) {if(document.getElementById("whographw")) {var whograph=document.getElementById("whographw");var wholen=whograph.getTotalLength();whograph.style.transition=whograph.style.webkitTransition="none";whograph.style.strokeDasharray=wholen+" "+wholen;whograph.style.strokeDashoffset=wholen;whograph.getBoundingClientRect();whograph.style.transition=whograph.style.webkitTransition="stroke-dashoffset 3s ease-in-out";whograph.style.strokeDashoffset="0";}}function whoisbest_wrldmp(ntn,n,ord,d,e) {var whomptxt=document.getElementById("whomp").innerText;var xhrwm=new XMLHttpRequest();xhrwm.open("post","./whomp/whomp.php?whonid="+ntn+"&whotier="+ord,true);xhrwm.send();xhrwm.onreadystatechange=function() {if(xhrwm.readyState==4&&xhrwm.status==200) {if(document.getElementById("whomp")) {var whompid=document.getElementById("whomp"),whompelm=document.createElement("style"),whotr="";if(whompid.style.visibility=="visible"&&e==0) {var whovsbl="hidden",whofd="whofdout";} else {var whovsbl="visible",whofd="whofdin";}switch(ord) {case 0:whotr="Total";break;case 1:whotr="Challenger";break;case 2:whotr="Grand Master";break;case 3:whotr="Master";break;}var whorsp=xhrwm.response.split(","),whosplt="",whoarrw="",whoac="",whomptxt="",lft="",tp="",whosum=whorsp[whorsp.length-1],whorng0="",whorng1="",whorng="";for(var i=0;i0) {whoarrw="▲";whoac="red";}if(whorng<0) {whoarrw="▼";whoac="blue";}whomptxt+="
"+whosplt[0]+" "+whosplt[2]+""+whoarrw+""+whorng+"
";}whompid.setAttribute("style","visibility:"+whovsbl+";width:320px;height:157px;background-color:#555;color:#fff;background:conic-gradient(at 0% 25%, gold 10%,white 30%, #1e90ff 50%),url('./whoimg/whopng/wrldmp.png');filter:drop-shadow(6px 6px 8px gray);background-color:#eee;background-blend-mode:multiply;border-radius:6px;position:absolute;z-index:1;left:0px;margin-top:33px;animation:"+whofd+" 3s;");var whompcss=".whomp::after{content:'';position:absolute;top:-6px;border-width:3px;border-style:solid;border-color:transparent transparent #555 transparent;}";whompelm.type="text/css";document.head.appendChild(whompelm);whompelm.sheet.insertRule(whompcss,whompelm.length);whompid.innerHTML=whomptxt+"
World Record "+whotr+" : "+whosum+"
";var whoarpln=document.getElementById("arpln"),whox=13,whoy=134;whox=parseInt(whoarpln.offsetLeft);whoy=parseInt(whoarpln.offsetTop);setInterval(()=>{if(whox<285&&whoy>5) {whox+=2;whoarpln.style.left=whox+"px";whoy--;whoarpln.style.top=whoy+"px";if(whox==271) {whoarpln.style.display="none";}}},100);}}}}function whoisbest_esprt(ntn,n,ord,d,e) {var whomptxt=document.getElementById("whoesprt").innerText;if(document.getElementById("whoesprt")) {var whompid=document.getElementById("whoesprt"),whompelm=document.createElement("style"),whotr="Preparing";if(whompid.style.visibility=="visible"&&e==0) {var whovsbl="hidden",whofd="whofdout";} else {var whovsbl="visible",whofd="whofdin";}whompid.setAttribute("style","visibility:"+whovsbl+";width:120px;height:42px;background-color:#555;border-radius:6px;position:absolute;z-index:1;left:164px;margin-top:28px;animation:"+whofd+" 3s;");var whompcss=".whomp::after{content:'';position:absolute;top:-6px;border-width:3px;border-style:solid;border-color:transparent transparent #555 transparent;}";whompelm.type="text/css";document.head.appendChild(whompelm);whompelm.sheet.insertRule(whompcss,whompelm.length);whompid.innerHTML=whomptxt+"
eSportsmen.ka
"+whotr+"
";}}function whoisbest_grph0(n,p,d) {if(document.getElementById((p==1?"whograph_p":"whograph_")+n)) {var whograph=document.getElementById((p==1?"whograph_p":"whograph_")+n);var wholen=whograph.getTotalLength();whograph.style.transition=whograph.style.webkitTransition="none";whograph.style.strokeDasharray=wholen+" "+wholen;whograph.style.strokeDashoffset=wholen;whograph.getBoundingClientRect();whograph.style.transition=whograph.style.webkitTransition="stroke-dashoffset 3s ease-in-out";whograph.style.strokeDashoffset="0";}}function whoisbest_svg0(ntn,n,ln,ord,sid,pwlw,p,d) {if(document.getElementById("whoload1")) {setTimeout("whoisbest_svg('"+ntn+"',"+n+","+ln+",'"+ord+"','"+sid+"',"+pwlw+","+p+","+d+")",100);}}function whoisbest_svg(ntn,n,ln,ord,sid,pwlw,p,d) {setTimeout("whoisbest_svg0('"+ntn+"',"+n+","+ln+",'"+ord+"','"+sid+"',"+pwlw+","+p+","+d+")",90000);var whogrphtxt="",whogrphfnd="",whogrphfnds="",whogrphid=document.getElementById((p==1&&sid==''?"whosvg_p":"whosvg_")+n);if(whogrphid) {whogrphtxt=whogrphid.innerText;whogrphfnd=whogrphtxt.indexOf("1Y");whogrphfnds=whogrphtxt.indexOf("Ra");if(whogrphfnd>-1||whogrphfnds>-1) {d=0}whogrphid.innerHTML="";}var sp=10;var xhrp=new XMLHttpRequest();xhrp.open("post","./whogrph/whogrph.php?whonid="+ntn+"&whotier="+ord+"&whosid="+sid+"&whopwlw="+pwlw+"&whoplytm="+p+"&whoterm="+d,true);xhrp.send();xhrp.onreadystatechange=function() {if(xhrp.readyState==4&&xhrp.status==200) {var whorsp=xhrp.response.split(","),rank=50,whotip="",whoplyln="",whotier="",whoamp="",whoarrw="",whoac="",whortg="",whomax=whorsp[(whorsp.length-1)],whorng0=whorsp[(whorsp.length-2)],whorng1=whorsp[(whorsp.length-3)],whorng=0;if(whorng0==0.1) {whorng0=0;}if(whorng1==0.1) {whorng1=0;}whorng=(sid==""||d==0?whorng0-whorng1:(whorng1==0?whorng0:whorng1-whorng0));if(Number.isInteger(whorng)==false) {whorng=Math.floor(whorng*100)/100;}if(whorng==0) {whoarrw=" ▬";whoac="black";whorng="";} else if(whorng>0) {whoarrw="▲";whoac="red";} else if(whorng<0) {whoarrw="▼";whoac="blue";}whortg=""+whoarrw+""+whorng+"";if(p==1&&parseInt(pwlw)>=0&&d==1) {rank=0;}switch (parseInt(ord)) {case 0:whotier="Total";break;case 1:whotier="Challengers";break;case 2:whotier="GMasters";break;case 3:whotier="Masters";break;}if(sid=="") {if(d==1) {sp=0.55;}} else {if(d==1||d==0) {sp=30;}}for(var i=0;i"+(whorsp[0]==0.1?0:whorsp[0])+whoamp+""+(whorsp[Math.round((whorsp.length-1)/2)]==0.1?0:whorsp[Math.round((whorsp.length-1)/2)])+whoamp+""+(whorsp[(whorsp.length-2)]==0.1?0:whorsp[(whorsp.length-2)])+whoamp+"")+""+(p==1&&sid==''?"":"")+"
"+whodays+(p==1&&sid==''?":PlayTime(Avg)":"
"+whotier)+whortg+(parseInt(pwlw)==3&&d==0&&whorng!==""?"%":"")+"
";}whoisbest_grph0("+n+","+p+","+d+");setTimeout("whoisbest_load(1,"+(parseInt((n/ln)*100))+")",100);if(n==ln) {if(document.getElementById("whograph_"+n)) {whoisbest_load(2,0);document.getElementById("whopgb").innerHTML="";document.getElementById("whoudt").style.display="inline";}}}}}function whoisbest_rng(ntn,n,ord) {var xhrp=new XMLHttpRequest();xhrp.open("post","./whogrph/whorng.php?whonid="+ntn+"&whotier="+ord,true);xhrp.send();xhrp.onreadystatechange=function() {if(xhrp.readyState==4&&xhrp.status==200) {var whorsp=xhrp.response,whoarrw="",whoac="",whorndid="";if(whorsp==0) {whoarrw=" ▬";whoac="silver";whorsp="";}if(whorsp>0) {whoarrw="▲";whoac="red";}if(whorsp<0) {whoarrw="▼";whoac="blue";}if(n<0) {whorndid="whorng";} else {whorndid="whorng_"+n;}if(document.getElementById(whorndid)) {document.getElementById(whorndid).innerHTML+=""+whoarrw+""+whorsp+"";}}}}function whoisbest_twitch(e) {if(document.getElementById("whotwitch")) {var whotplst="",xhrtp=new XMLHttpRequest();xhrtp.open("post","./twitch/whojson/whotop.php",true);xhrtp.responseType="json";xhrtp.send();xhrtp.onreadystatechange=function() {if(xhrtp.readyState==4&&xhrtp.status==200) {var whorsp=xhrtp.response,whobxrtpth="./twitch/whoimg/whobxrt/",whobxrtimg0="whobxrt_",whobxrtimg1=".jpg",whobxrtdv="",whoht=14,whoht2=0,whobxrturl="";whotplst+="
";var strwdth=window.innerWidth,strhght=window.innerHeight,strwh=Math.floor(strwdth/strhght);if(strwh>0&&strwdth>=1080) {whoht2=8;}for(var i=0;i3) {whoht=12;}if(i>7) {whoht=10;}if(i>11) {whoht=8;}if(i>15) {whoht=6;}whobxrturl=whorsp[i][1].toLowerCase().replace(/&/g,"and").replace(/[`~!@#$%^&*()_|+\=?;:'",.<>\{\}\[\]\\\/]/gim,"").replace(/ /gi,"-").normalize("NFKD").replace(/[\u0300-\u036F]/g,"");if(whobxrturl=="sports") {whobxrturl=whobxrturl+"-1";}if(i>0&&Math.floor((i+1)%4)==0) {whobxrtdv="
"+((i+1)-3)+""+((i+1)-2)+""+((i+1)-1)+""+(i+1)+"
";} else {whobxrtdv="";}whotplst+="     "+whobxrtdv;}whotplst+="
";var whotopid=document.getElementById("whotwitch"),whotopelm=document.createElement("style"),lft=-6;if(whotopid.style.visibility=="visible"&&e==0) {var whovsbl="hidden",whofd="whofdout";} else {var whovsbl="visible",whofd="whofdin";}whotopid.setAttribute("style","visibility:"+whovsbl+";width:268px;height:380px;background:linear-gradient(to top,transparent,#b1b1b1 90%),gray repeating-linear-gradient(180deg,transparent,transparent 20px,rgba(0,0,0,1) 12px,rgba(255,255,255,0.9) 70px);background-clip:padding-box;border-left:1px solid rgba(255,255,255,0.3);border-radius:10px;border-top:1px solid rgba(255,255,255,0.7);box-shadow:0px 1px 3px 1px #969494;border-radius:6px;padding:5px 0;position:absolute;z-index:1;left:33px;margin-top:-211px;animation:"+whofd+" 3s;");var whotopcss=".whotwitch::after{content:'';position:absolute;top:237px;left:"+lft+"%;border-width:7px;border-style:solid;border-color:transparent transparent #555 transparent;}";whotopelm.type="text/css";document.head.appendChild(whotopelm);whotopelm.sheet.insertRule(whotopcss,whotopelm.length);whotopid.innerHTML="
"+whotplst+"
Twitch Top 20
X
";document.getElementById("whogrph").style.visibility="hidden";if(document.getElementById("whoisbest_rcd").innerHTML=="") {} else {document.getElementById("wholiv0").style.visibility="hidden";document.getElementById("whomtch0").style.visibility="hidden";document.getElementById("whoblck0").style.visibility="hidden";document.getElementById("whochmn0_0").style.visibility="hidden";document.getElementById("whochmn0_1").style.visibility="hidden";document.getElementById("whochmn0_2").style.visibility="hidden";document.getElementById("whochmn0_3").style.visibility="hidden";}}}}}function whoisbest_chmn(cnm,crt,p,n,j,e) {var whochmnid=document.getElementById("whochmn"+n+"_"+p).innerText;if(document.getElementById("whochmn"+n+"_"+p)) {var whompid=document.getElementById("whochmn"+n+"_"+p),whompelm=document.createElement("style");if(p==0) {whochmnid0=document.getElementById("whochmn"+n+"_"+p);whochmnid1=document.getElementById("whochmn"+n+"_"+(p+1));whochmnid2=document.getElementById("whochmn"+n+"_"+(p+2));whochmnid3=document.getElementById("whochmn"+n+"_"+(p+3));whochmnid4=document.getElementById("whochmn"+n+"_"+(p+4));}if(p==1) {whochmnid0=document.getElementById("whochmn"+n+"_"+(p-1));whochmnid2=document.getElementById("whochmn"+n+"_"+(p+1));whochmnid3=document.getElementById("whochmn"+n+"_"+(p+2));whochmnid4=document.getElementById("whochmn"+n+"_"+(p+3));}if(p==2) {whochmnid0=document.getElementById("whochmn"+n+"_"+(p-2));whochmnid1=document.getElementById("whochmn"+n+"_"+(p-1));whochmnid3=document.getElementById("whochmn"+n+"_"+(p+1));whochmnid4=document.getElementById("whochmn"+n+"_"+(p+2));}if(p==3) {whochmnid0=document.getElementById("whochmn"+n+"_"+(p-3));whochmnid1=document.getElementById("whochmn"+n+"_"+(p-2));whochmnid2=document.getElementById("whochmn"+n+"_"+(p-1));whochmnid4=document.getElementById("whochmn"+n+"_"+(p+1));}if(p==4) {whochmnid0=document.getElementById("whochmn"+n+"_"+(p-4));whochmnid1=document.getElementById("whochmn"+n+"_"+(p-3));whochmnid2=document.getElementById("whochmn"+n+"_"+(p-2));whochmnid3=document.getElementById("whochmn"+n+"_"+(p-1));}if(whompid.style.visibility=="visible"&&e==0) {var whovsbl="hidden",whofd="whofdout";} else {var whovsbl="visible",whofd="whofdin";if(whochmnid0||whochmnid1||whochmnid2||whochmnid3||whochmnid4) {if(p!=0) {whochmnid0.style.visibility="hidden";}if(p!=1) {whochmnid1.style.visibility="hidden";}if(p!=2) {whochmnid2.style.visibility="hidden";}if(p!=3) {whochmnid3.style.visibility="hidden";}if(p!=4) {whochmnid4.style.visibility="hidden";}}}whompid.setAttribute("style","visibility:"+whovsbl+";width:150px;height:76px;background-color:#555;border-radius:6px;position:absolute;z-index:1;left:164px;margin-top:28px;opacity:0.9;animation:"+whofd+" 3s;");var whompcss=".whomp::after{content:'';position:absolute;top:-6px;border-width:3px;border-style:solid;border-color:transparent transparent #555 transparent;}";whompelm.type="text/css";document.head.appendChild(whompelm);whompelm.sheet.insertRule(whompcss,whompelm.length);whompid.innerHTML=whochmnid+"
"+cnm+"
"+crt+"
Top "+(j>49?"WinRate":"Picks")+" in this Region "+(j>24?"(2 Weeks)":"Today")+"
";}}function whoisbest_blck(c,s,t,n,b,e) {var xhrbk=new XMLHttpRequest();xhrbk.open("post","./whosrch/whoblck.php?whontn="+c+"&whosid="+s+"&whoblck="+b,true);xhrbk.send();xhrbk.onreadystatechange=function() {if(xhrbk.readyState==4&&xhrbk.status==200) {var whorsp=xhrbk.response.split(","),t_=t.split(":");var whoblckid=document.getElementById("whoblck"+n).innerText;if(document.getElementById("whoblck"+n)) {var whompid=document.getElementById("whoblck"+n),whompelm=document.createElement("style"),whobnm=(whorsp[0]==""?t_[0]:whorsp[0]),whobtg=(whorsp[1]==""||whorsp[1]==undefined?t_[1]:whorsp[1]);if(whompid.style.visibility=="visible"&&e==0) {var whovsbl="hidden",whofd="whofdout";} else {var whovsbl="visible",whofd="whofdin";}whompid.setAttribute("style","visibility:"+whovsbl+";width:120px;height:42px;background-color:#555;border-radius:6px;position:absolute;z-index:1;left:164px;margin-top:28px;opacity:0.9;animation:"+whofd+" 3s;");var whompcss=".whomp::after{content:'';position:absolute;top:-6px;border-width:3px;border-style:solid;border-color:transparent transparent #555 transparent;}";whompelm.type="text/css";document.head.appendChild(whompelm);whompelm.sheet.insertRule(whompcss,whompelm.length);whompid.innerHTML=whoblckid+"
"+whobnm+"
"+whobtg+"
";}}}}function whoisbest_like(s,n,v) {var l=0;if(document.getElementById("wholk_"+v).style.color=="red") {document.getElementById("wholk_"+v).style.color="#eeaaee";} else {document.getElementById("wholk_"+v).style.color="red";l=1;}var xhrlk=new XMLHttpRequest();xhrlk.open("post","./wholike/wholike.php?whosid="+s+":"+n+"&wholk="+l,true);xhrlk.send();xhrlk.onreadystatechange=function() {if(xhrlk.readyState==4&&xhrlk.status==200) {var whorsp=xhrlk.response;document.getElementById("wholkc_"+v).innerHTML=""+(parseInt(whorsp)>999?(parseInt(whorsp)/1000).toFixed(1)+"k":whorsp)+"";}}}function whoisbest_star(s,n,c,v) {if(document.getElementById("whostar0_"+v).style.color=="gold") {} else {var xhrsta=new XMLHttpRequest();xhrsta.open("post","./whostar/whostar.php?whosid="+s+":"+n+"&whoscr="+c,true);xhrsta.send();xhrsta.onreadystatechange=function() {if(xhrsta.readyState==4&&xhrsta.status==200) {var whorsp=xhrsta.response,scr=Math.trunc(whorsp),scr_=(Math.round(whorsp*10)/10.0);document.getElementById("whostar_"+v).innerHTML=""+scr_+"";for(var i=0;i20&&prc<=40) {prc=55;}else if(prc>40&&prc<=60) {prc=60;}else if(prc>60&&prc<=80) {prc=65;}else if(prc>80) {prc=70;}scrstl.innerHTML="#whostar"+scr+"_"+v+"::after{content:attr(data-split);position:absolute;left:0;top:0;height:"+prc+"%;color:gold;overflow:hidden;}";document.head.appendChild(scrstl);}}}}}