var strwdth=window.innerWidth,strhght=window.innerHeight-5; var pelmnt=document.getElementsByClassName("plrs")[0],plrsz=18,plyarr=[],plypos=[]; if(strwdth>strhght) { var plrswd=Math.ceil(strhght/plrsz);var plrsht=plrswd;} else { var plrswd=Math.ceil(strwdth/plrsz);var plrsht=plrswd; } if(strwdth>strhght) {var bllsz="30",blllnht="1.5",blltp="-2.6",bllft="-2.5",bllopt="0.35";} else {var bllsz="17",blllnht="1",blltp="0.3",bllft="-1.4",bllopt="0.7";} var sccrbll=document.createElement("style");var bllplr22=".plr22::before{content:\"⚽\";position:relative;font-size:"+bllsz+"px;line-height:"+blllnht+"em;top:"+blltp+"px;left:"+bllft+"px;opacity:"+bllopt+";}"; sccrbll.type="text/css";document.head.appendChild(sccrbll); sccrbll.sheet.insertRule("@media {"+bllplr22+"}",sccrbll.length); function setplrs(n) { for(var p=0;p<23;p++) { var plrstp=Math.ceil(strhght/2);var plrslt=Math.ceil(strwdth/2);var plrsln=Math.floor(p/4)*1.7; if(p<10) {var plrclr="darkred";if(strwdth>strhght) {plrstp=plrstp-plrstp+2.3*plrsht+(p%4)*4*plrsht;plrslt=plrslt-Math.ceil(plrswd*9.8)+plrsln*plrswd*2.08;} else {plrslt=plrslt-plrslt+2.3*plrswd+(p%4)*4*plrswd;plrstp=plrstp-plrsht*10+plrsln*plrsht*1.99;}} if(p>9&&p<20) {var plrclr="darkblue";if(strwdth>strhght) {plrstp=plrstp-plrstp+2.3*plrsht+(p%4)*4*plrsht;plrslt=plrslt-plrswd*5+plrsln*plrswd*1.99;} else {plrslt=plrslt-plrslt+2.3*plrswd+(p%4)*4*plrswd;plrstp=plrstp-plrsht*4.8+plrsln*plrsht*2;}} if(p==20) {var plrclr="white";if(strwdth>strhght) {plrstp=plrstp-Math.ceil(plrsht/2)-2;plrslt=plrslt-plrslt+58;} else {plrslt=plrslt-Math.ceil(plrswd/2)-2;plrstp=plrstp-plrstp+10;}} if(p==21) {var plrclr="gray";if(strwdth>strhght) {plrstp=plrstp-Math.ceil(plrsht/2)-2;plrslt=plrslt+plrslt-plrswd-62;} else {plrslt=plrslt-Math.ceil(plrswd/2)-2;plrstp=plrstp+plrstp-plrsht-14;}} if(p==22) {var plrclr="#52606d";if(strwdth>strhght) {plrstp=60;plrslt=43} else {plrslt=Math.ceil(strwdth/4);plrstp=2;}} pelmnt.innerHTML+=(n==0?"
":""); var plrp=document.getElementsByClassName("plr"+p)[0]; if(p<20) {var plrpclr="2px solid white",plrpani="";} else if(p>19&&p<22) {plrpclr="3px dashed #ffff99";plrpani="animation:animate 8s linear infinite;";} else if(p==22){plrpclr="4px solid #ffff99";plrpani="clip-path:polygon(97.45% 65.75%,49.69% 100.00%,2.35% 65.15%,20.87% 9.37%,79.64% 9.73%);animation:animate 8s linear infinite;";} plrp.setAttribute("style","position:absolute;top:"+plrstp+"px;left:"+plrslt+"px;width:"+plrswd+"px;height:"+plrsht+"px;margin:0;border-radius:50%;border:"+plrpclr+";background:radial-gradient(circle at "+Math.ceil(plrswd/3)+"px "+Math.ceil(plrsht/3)+"px,"+plrclr+",black);"+plrpani+"z-index:1;"); if(p==22) {var plrpaniclr="4px solid #ffff99";} else {plrpaniclr="3px dashed #ffff99";} plrp.setAttribute("onmouseover","javascript:event.target.style.animation='animate 1.5s linear infinite';javascript:event.target.style.border='"+plrpaniclr+"';"); if(p<20) {plrp.setAttribute("onmouseout","javascript:event.target.style.animation='animate 3.5s ease-out alternate';javascript:event.target.style.border='2px solid white';"); } else {plrp.setAttribute("onmouseout","javascript:event.target.style.animation='animate 8s linear infinite';");} } } setplrs(0); document.getElementById("sccrfldsz").width=strwdth;document.getElementById("sccrfldsz").height=strhght; var c = document.getElementById("sccrfldsz"); var ctx = c.getContext("2d"); var grd = ctx.createRadialGradient(strwdth/2,strhght/2,strhght/10,strwdth/2,strhght/2,strhght); function drwcnvs(c,ctx,grd,strwdth,strhght) { grd.addColorStop(0,"green"); grd.addColorStop(0.1,"darkgreen"); grd.addColorStop(0.3,"green"); grd.addColorStop(0.5,"darkgreen"); grd.addColorStop(0.7,"green"); grd.addColorStop(0.9,"green"); grd.addColorStop(1,"darkgreen"); ctx.fillStyle = grd; ctx.fillRect(0,0,strwdth,strhght); var xlntrvl=10;var ylntrvl=30; if(strwdth>strhght) {var xlntrvl=100;var ylntrvl=10;} ctx.strokeStyle="white"; ctx.lineWidth=3; ctx.beginPath(); ctx.moveTo(xlntrvl,ylntrvl); ctx.lineTo(strwdth-xlntrvl,ylntrvl); ctx.moveTo(xlntrvl,ylntrvl-1); ctx.lineTo(xlntrvl,strhght-ylntrvl+1); ctx.moveTo(xlntrvl,strhght-ylntrvl); ctx.lineTo(strwdth-xlntrvl,strhght-ylntrvl); ctx.moveTo(strwdth-xlntrvl,ylntrvl-1); ctx.lineTo(strwdth-xlntrvl,strhght-ylntrvl+1); if(strwdth>strhght) { ctx.moveTo(strwdth/2,ylntrvl); ctx.lineTo(strwdth/2,strhght-ylntrvl); ctx.moveTo(xlntrvl-60,strhght/2-61); ctx.lineTo(xlntrvl-60,strhght/2+61); ctx.moveTo(xlntrvl-60,strhght/2-60); ctx.lineTo(xlntrvl,strhght/2-60); ctx.moveTo(xlntrvl-60,strhght/2+60); ctx.lineTo(xlntrvl,strhght/2+60); ctx.moveTo(xlntrvl+70,strhght/2-91); ctx.lineTo(xlntrvl+70,strhght/2+91); ctx.moveTo(xlntrvl,strhght/2-90); ctx.lineTo(xlntrvl+70,strhght/2-90); ctx.moveTo(xlntrvl,strhght/2+90); ctx.lineTo(xlntrvl+70,strhght/2+90); ctx.moveTo(xlntrvl+180,strhght/2-181); ctx.lineTo(xlntrvl+180,strhght/2+181); ctx.moveTo(xlntrvl,strhght/2-180); ctx.lineTo(xlntrvl+180,strhght/2-180); ctx.moveTo(xlntrvl,strhght/2+180); ctx.lineTo(xlntrvl+180,strhght/2+180); ctx.moveTo(strwdth-xlntrvl-180,strhght/2-181); ctx.lineTo(strwdth-xlntrvl-180,strhght/2+181); ctx.moveTo(strwdth-xlntrvl-180,strhght/2-180); ctx.lineTo(strwdth-xlntrvl,strhght/2-180); ctx.moveTo(strwdth-xlntrvl-180,strhght/2+180); ctx.lineTo(strwdth-xlntrvl,strhght/2+180); ctx.moveTo(strwdth-xlntrvl-70,strhght/2-91); ctx.lineTo(strwdth-xlntrvl-70,strhght/2+91); ctx.moveTo(strwdth-xlntrvl-70,strhght/2-90); ctx.lineTo(strwdth-xlntrvl,strhght/2-90); ctx.moveTo(strwdth-xlntrvl-70,strhght/2+90); ctx.lineTo(strwdth-xlntrvl,strhght/2+90); ctx.moveTo(strwdth-xlntrvl+60,strhght/2-61); ctx.lineTo(strwdth-xlntrvl+60,strhght/2+61); ctx.moveTo(strwdth-xlntrvl,strhght/2-60); ctx.lineTo(strwdth-xlntrvl+60,strhght/2-60); ctx.moveTo(strwdth-xlntrvl,strhght/2+60); ctx.lineTo(strwdth-xlntrvl+60,strhght/2+60); } else { ctx.moveTo(xlntrvl,strhght/2); ctx.lineTo(strwdth-xlntrvl,strhght/2); ctx.moveTo(strwdth/2-41,ylntrvl-20); ctx.lineTo(strwdth/2+41,ylntrvl-20); ctx.moveTo(strwdth/2-40,ylntrvl-20); ctx.lineTo(strwdth/2-40,ylntrvl); ctx.moveTo(strwdth/2+40,ylntrvl-20); ctx.lineTo(strwdth/2+40,ylntrvl); ctx.moveTo(strwdth/2-51,ylntrvl+30); ctx.lineTo(strwdth/2+51,ylntrvl+30); ctx.moveTo(strwdth/2-50,ylntrvl); ctx.lineTo(strwdth/2-50,ylntrvl+30); ctx.moveTo(strwdth/2+50,ylntrvl); ctx.lineTo(strwdth/2+50,ylntrvl+30); ctx.moveTo(strwdth/2-101,ylntrvl+80); ctx.lineTo(strwdth/2+101,ylntrvl+80); ctx.moveTo(strwdth/2-100,ylntrvl); ctx.lineTo(strwdth/2-100,ylntrvl+80); ctx.moveTo(strwdth/2+100,ylntrvl); ctx.lineTo(strwdth/2+100,ylntrvl+80); ctx.moveTo(strwdth/2-101,strhght-ylntrvl-80); ctx.lineTo(strwdth/2+101,strhght-ylntrvl-80); ctx.moveTo(strwdth/2-100,strhght-ylntrvl); ctx.lineTo(strwdth/2-100,strhght-ylntrvl-80); ctx.moveTo(strwdth/2+100,strhght-ylntrvl); ctx.lineTo(strwdth/2+100,strhght-ylntrvl-80); ctx.moveTo(strwdth/2-51,strhght-ylntrvl-30); ctx.lineTo(strwdth/2+51,strhght-ylntrvl-30); ctx.moveTo(strwdth/2-50,strhght-ylntrvl-30); ctx.lineTo(strwdth/2-50,strhght-ylntrvl); ctx.moveTo(strwdth/2+50,strhght-ylntrvl-30); ctx.lineTo(strwdth/2+50,strhght-ylntrvl); ctx.moveTo(strwdth/2-41,strhght-ylntrvl+20); ctx.lineTo(strwdth/2+41,strhght-ylntrvl+20); ctx.moveTo(strwdth/2-40,strhght-ylntrvl); ctx.lineTo(strwdth/2-40,strhght-ylntrvl+20); ctx.moveTo(strwdth/2+40,strhght-ylntrvl); ctx.lineTo(strwdth/2+40,strhght-ylntrvl+20); } ctx.stroke(); if(strwdth>strhght) {var rds=90;} else {var rds=50;} ctx.beginPath(); ctx.arc(strwdth/2,strhght/2,rds,0,2*Math.PI,false); ctx.stroke(); ctx.beginPath(); if(strwdth>strhght) {ctx.arc(xlntrvl+153,strhght/2,rds,1.6*Math.PI,0.4*Math.PI,false);} else {ctx.arc(strwdth/2,ylntrvl+64,rds,2.1*Math.PI,0.9*Math.PI,false);} ctx.stroke(); ctx.beginPath(); if(strwdth>strhght) {ctx.arc(strwdth-xlntrvl-153,strhght/2,rds,0.6*Math.PI,1.4*Math.PI,false);} else {ctx.arc(strwdth/2,strhght-ylntrvl-64,rds,1.1*Math.PI,1.9*Math.PI,false);} ctx.stroke(); if(strwdth>strhght) {ctx.font="30px Arial";ctx.strokeText("FENO",(xlntrvl-30*2.2),(ylntrvl+Math.ceil(30/1.2)),2.0*30);} else {ctx.font="25px Arial";ctx.strokeText("FENO",(xlntrvl),(ylntrvl-(ylntrvl-25)));} if(strwdth>strhght) {ctx.font="30px Arial";ctx.strokeText("PLAY",(strwdth-30*3.2),(ylntrvl+Math.ceil(30/1.2)),2.0*30);} else {ctx.font="25px Arial";ctx.strokeText("PLAY",(strwdth-(xlntrvl*7.3)),(ylntrvl-(ylntrvl-25)));} if(strwdth>strhght) {ctx.font="30px Arial";ctx.strokeText("UNDO",(strwdth-30*3.2),(strhght-Math.ceil(30/2.5)),2.0*30);} else {ctx.font="25px Arial";ctx.strokeText("UNDO",(strwdth-(xlntrvl*8.3)),(strhght-Math.ceil(ylntrvl/4.3)));} if(strwdth>strhght) {ctx.font="30px Arial";ctx.strokeText("DRAW",(xlntrvl-30*2.4),(strhght-Math.ceil(30/2.5)),2.3*30);} else {ctx.font="25px Arial";ctx.strokeText("DRAW",(xlntrvl),(strhght-Math.ceil(ylntrvl/4.3)));} } drwcnvs(c,ctx,grd,strwdth,strhght); function plrdrg(e) { var trgt=e.target;trgt.moving=true; if(e.clientX) {trgt.ox=e.clientX;trgt.oy=e.clientY;} else {trgt.ox=e.touches[0].clientX;trgt.oy=e.touches[0].clientY;} trgt.otp=window.getComputedStyle(trgt).getPropertyValue('top').split('px')[0]*1; trgt.olt=window.getComputedStyle(trgt).getPropertyValue('left').split('px')[0]*1; if(trgt.getAttribute("class")) {plypos=[];plypos.push({m:trgt.getAttribute("class"),x:trgt.olt,y:trgt.otp});} document.onmousemove=rundrg;document.ontouchmove=rundrg; function rundrg(event) {event.preventDefault(); if(!trgt.moving) {return;} if(event.clientX) {trgt.dx=event.clientX-trgt.ox;trgt.dy=event.clientY-trgt.oy;} else {trgt.dx=event.touches[0].clientX-trgt.ox;trgt.dy=event.touches[0].clientY-trgt.oy;} var plrleft=(trgt.olt+trgt.dx);var plrtop=(trgt.otp+trgt.dy);trgt.style.left=plrleft+"px";trgt.style.top=plrtop+"px"; if(trgt.getAttribute("class")) {plypos.push({m:trgt.getAttribute("class"),x:plrleft,y:plrtop});} } function stpdrg() {trgt.moving=false;if(trgt.getAttribute("class")) {plyarr.push(plypos);}} trgt.onmouseup=stpdrg;trgt.ontouchend=stpdrg; } document.onmousedown=plrdrg;document.ontouchstart=plrdrg; msgfeno.addEventListener("click",scrnlck);msgfeno.addEventListener("touchmove",scrnlck); function scrnlck() { if(document.getElementById("msg")) { var whomsgid=document.getElementById("msg"),whomsgelm=document.createElement("style"); if(whomsgid.style.visibility=="visible") {var whovsbl="hidden",whofd="whofdout";} else {var whovsbl="visible",whofd="whofdin";} if(strwdth>strhght) {var lftrt=0.2,tprt=0.7,wdthrt=2.0,hghtrt=1.0;} else {var lftrt=0.2,tprt=1.1,wdthrt=2.5,hghtrt=1.4;} whomsgid.setAttribute("title","Notice - Screen Rotate Lock"); whomsgid.setAttribute("style","position:absolute;z-index:1;left:"+Math.ceil(30*lftrt)+"px;top:"+Math.ceil(30/tprt)+"px;width:122px;height:68px;margin:0;visibility:"+whovsbl+";background:linear-gradient(to top,transparent,#b1b1b1 90%),black repeating-linear-gradient(180deg,transparent,transparent 20px,rgba(0,0,0,1) 12px,rgba(255,255,255,0.9) 62px);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;animation:"+whofd+" 3s;"); var whochmpcss=".whomp::after{content:'';position:absolute;top:-6px;border-width:3px;border-style:solid;border-color:transparent transparent #ffffff transparent;}"; whomsgelm.type="text/css";document.head.appendChild(whomsgelm); whomsgelm.sheet.insertRule(whochmpcss,whomsgelm.length); if(strwdth>strhght) { whomsgid.innerHTML="X