document.write("
League of Legends QWER QUIZ GAME : On-Line Free");var ldprgr="WER";
function ldngcnt() {let ldngstmp=null;const stp=(stmp)=>{if(!ldngstmp) {ldngstmp=stmp;}const prgr=Math.min((stmp-ldngstmp)/5000,1);if(Math.floor(prgr*(0-410)+410)==0) {document.getElementById("qwerld").innerHTML="Wait Seconds!";setTimeout(function() {document.getElementById("qwerld").innerHTML="";},2000);} else {document.getElementById("qwerld").innerHTML=Math.floor(prgr*(0-410)+410);}if(prgr<1) {window.requestAnimationFrame(stp);}};window.requestAnimationFrame(stp);}
function qwerpnt(p) {let pntstmp=null;var p_=parseInt(p);const stp=(stmp)=>{if(!pntstmp) {pntstmp=stmp;}const pntanm=Math.min((stmp-pntstmp)/500,1);if(document.getElementById("qwerscr")) {if(Math.floor(pntanm*(0-p_)+p_)==0) {document.getElementById("qwerscr").innerHTML=p;} else {document.getElementById("qwerscr").innerHTML=p.substr(0,(p.length-String(p_).length))+Math.floor(pntanm*(0-p_)+p_);}}if(pntanm<1) {window.requestAnimationFrame(stp);}};window.requestAnimationFrame(stp);}
function qwercln() {var xhra=new XMLHttpRequest();xhra.open("get","https://api.country.is",true);xhra.setRequestHeader("Cache-Control","no-cache, no-store, must-revalidate");xhra.setRequestHeader("Pragma","no-cache");xhra.setRequestHeader("Expires","0");xhra.send();xhra.onreadystatechange=function() {if(xhra.readyState==4&&xhra.status==200) {var qrsa=xhra.response.split('\"');qrspa=btoa(qrsa[3]+','+qrsa[7]);var xhrq=new XMLHttpRequest();xhrq.open("post","./qwerxhr.php",true);xhrq.responseType="text";const qwerdata=new FormData();qwerdata.append("qwerxhr","cln");qwerdata.append("cln",qrspa);xhrq.send(qwerdata);xhrq.onreadystatechange=function() {if(xhrq.readyState==4&&xhrq.status==200) {console.log("cln:"+xhrq.response);}}}}}
function qwerchmpclr() {var chmprnt=document.getElementById("qwer"),chmpchld=Array.from(chmprnt.querySelectorAll('[id]')).map(el=>el.id);for(var i=1;iWER Challenge!
Which Owner of Q W E R?
********************************* ";}
/*1. chmp*/
function qwerchmp(l) {
var xhrq=new XMLHttpRequest();xhrq.open("post","./qwerxhr.php",true);xhrq.responseType="text";const qwerdata=new FormData();qwerdata.append("qwerxhr","chmp");xhrq.send(qwerdata);xhrq.onreadystatechange=function() {if(xhrq.readyState==4&&xhrq.status==200) {var qrsp=xhrq.response;
console.log(l+", qwerchmp "+qrsp);//log
setTimeout("qwer('"+qrsp+"',"+l+")",100);
if(l==1) {document.getElementById("qwer").innerHTML=""+ldprgr+" Loading...
";setTimeout("ldngcnt()",100);}
if(l==2) {document.getElementById("qwerqstn").innerHTML=""+ldprgr+" Loading...
";}
}}}/*1. chmp*/
/*2. qwer*/
function qwer(c,l) {
var xhrq=new XMLHttpRequest();xhrq.open("post","./qwerxhr.php",true);xhrq.responseType="text";const qwerdata=new FormData();qwerdata.append("qwerxhr","qwer");qwerdata.append("qwer",c);qwerdata.append("qwerload",l);xhrq.send(qwerdata);xhrq.onreadystatechange=function() {if(xhrq.readyState==4&&xhrq.status==200) {document.getElementById("qwerld").innerHTML="";var qrsp=xhrq.response.split("|");
console.log(l+", qwer "+c);//log
if(l==1) {document.getElementById("qwerqstn").innerHTML=""+qrsp[0]+"
";document.getElementById("qwer").innerHTML=""+qrsp[1]+"
";}
if(l==2) {document.getElementById("qwerqstn").innerHTML=""+qrsp[0]+"
";qwerchmpclr();document.getElementById("qwerinp").innerHTML=qrsp[1];if(document.getElementById("qwerscr")) {var qwerscr0=document.getElementById("qwerscr").textContent;setTimeout("qwerpnt('"+qwerscr0+"')",500);document.getElementById("qwerscr").textContent=qwerscr0;}
}
document.getElementById("ans").innerHTML="⭕ Challenge? ❌ FF?"+(l==2?"Blend: "+qrsp[2]+", Double: "+qrsp[3]+"":"")+"";document.getElementById("qwerld").innerHTML="";} else {if(l==1) {document.getElementById("qwer").innerHTML=""+ldprgr+" Start!
";}
if(l==2) {document.getElementById("ans").innerHTML="⭕ Challenge? ❌ FF?";document.getElementById("qwerqstn").innerHTML=""+ldprgr+" Start!
";
}
document.getElementById("qwerld").innerHTML="";}}}/*2. qwer*/
/*3. ans(fill out)*/
function qwerans() {
var ans=document.getElementById('qwerans').value;if(ans) {
var xhrq=new XMLHttpRequest();xhrq.open("post","./qwerxhr.php",true);xhrq.responseType="text";const qwerdata=new FormData();qwerdata.append("qwerxhr","ans");qwerdata.append("ans",ans);qwerdata.append("qst",2);xhrq.send(qwerdata);xhrq.onreadystatechange=function() {if(xhrq.readyState==4&&xhrq.status==200) {var qrsp=xhrq.response.split("|");document.getElementById("ans").innerHTML=""+qrsp[0]+qrsp[2]+"
";
console.log("ans:"+qrsp[1]+", 2:"+qrsp[2]+", 3:"+qrsp[3]+", 4:"+qrsp[4]);//log
if(document.getElementById("qwerscr")) {setTimeout("qwerpnt('"+qrsp[1]+"')",500);document.getElementById("qwerscr").textContent=qrsp[1];}var qrsp_=qrsp[0].split(""),qrsp__=qrsp_[(qrsp_.length-2)].split(">"),ans_=qrsp__[(qrsp__.length-1)];if(qrsp_[0].substr(-7)=="❌") {if(ans_=="Not Champion!") {} else {document.getElementById(ans_).style.borderColor="red";}var inp=document.getElementById('qwerinp');inp.classList.remove('qwershk');void inp.offsetWidth;inp.classList.add('qwershk');} else {document.getElementById(ans_).style.borderColor='rgb(107,254,125)';setTimeout("qwerchmp(2)",100);}document.getElementById("qwerld").innerHTML="";if(qrsp[4]==1) {qwercln();}} else {var inp=document.getElementById('qwerinp');inp.classList.remove('qwershk');void inp.offsetWidth;inp.classList.add('qwershk');}}}return;}/*3. ans(fill out)*/
/*3. ans(opt)*/
function qwerchmps(c) {
var xhrq=new XMLHttpRequest();xhrq.open("post","./qwerxhr.php",true);xhrq.responseType="text";const qwerdata=new FormData();qwerdata.append("qwerxhr","ans");qwerdata.append("ans",c);qwerdata.append("qst",1);xhrq.send(qwerdata);xhrq.onreadystatechange=function() {if(xhrq.readyState==4&&xhrq.status==200) {var qrsp=xhrq.response.split("|");document.getElementById("ans").innerHTML=""+qrsp[0]+qrsp[2]+"
";
console.log("champs: "+qrsp[1]+", 2:"+qrsp[2]+", 3:"+qrsp[3]+", 4:"+qrsp[4]);//log
if(document.getElementById("qwerscr")) {setTimeout("qwerpnt('"+qrsp[1]+"')",500);document.getElementById("qwerscr").textContent=qrsp[1];}if(qrsp[0].split("")[0].substr(-7)=="❌") {document.getElementById(c).style.borderColor="red";} else {document.getElementById(c).style.borderColor='rgb(107,254,125)';setTimeout("qwerchmp(2)",100);}document.getElementById("qwerld").innerHTML="";if(qrsp[4]==1) {qwercln();}}}}//}}/*3. ans(opt)*/
setTimeout("qwerlg()",100);setTimeout("qwerchmp(1)",100);document.write("");