!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){var n,i,o=document.getElementById("maindiv"),l=document.getElementById("startdiv"),s=document.getElementById("scorediv"),a=document.getElementById("label"),m=document.getElementById("suspenddiv"),d=document.getElementById("enddiv"),u=document.getElementById("planscore"),c=0,r=(document.querySelector(".backpic"),document.body.clientWidth),p=document.body.clientHeight,f=o.clientWidth,h=o.clientHeight;function g(e,t,n,i,l,s,a,m,d,u){this.planX=t,this.planY=n,this.imagenode=null,this.planhp=e,this.planscore=s,this.plansizeX=i,this.plansizeY=l,this.planboomimage=d,this.planisdie=!1,this.plandietimes=0,this.plandietime=a,this.plansudu=m,this.planmove=function(){this.imagenode.style.top=c<=5e4?this.imagenode.offsetTop+this.plansudu+"px":c>5e4&&c<=1e5?this.imagenode.offsetTop+this.plansudu+1+"px":c>1e5&&c<=15e4?this.imagenode.offsetTop+this.plansudu+2+"px":c>15e4&&c<=2e5?this.imagenode.offsetTop+this.plansudu+3+"px":c>2e5&&c<=3e5?this.imagenode.offsetTop+this.plansudu+4+"px":this.imagenode.offsetTop+this.plansudu+5+"px"},this.init=function(){this.imagenode=document.createElement("img"),this.imagenode.style.left=this.planX+"px",this.imagenode.style.top=this.planY+"px",this.imagenode.src=u,o.appendChild(this.imagenode)},this.init()}function v(e,t,n,i,l){this.bulletX=e,this.bulletY=t,this.bulletimage=null,this.bulletattach=1,this.bulletsizeX=n,this.bulletsizeY=i,this.bulletmove=function(){this.bulletimage.style.top=this.bulletimage.offsetTop-20+"px"},this.init=function(){this.bulletimage=document.createElement("img"),this.bulletimage.style.left=this.bulletX+"px",this.bulletimage.style.top=this.bulletY+"px",this.bulletimage.src=l,o.appendChild(this.bulletimage)},this.init()}function b(e,t){v.call(this,e,t,6,14,"/im/lab/plane/image/bullet1.png")}function y(e,t,n,i,o,l,s,a,m,d){g.call(this,e,E(t,n),-100,i,o,l,s,a,m,d)}function E(e,t){return Math.floor(e+Math.random()*(t-e))}/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(h=p,n=0,i=r);var L=new function(e,t){g.call(this,1,e,t,66,80,0,660,0,"/im/lab/plane/image/blast.gif","/im/lab/plane/image/plane.gif"),this.imagenode.setAttribute("id","ourplan")}(r/2-33,h-80),T=document.getElementById("ourplan"),x=function(){var e=window.event||arguments[0],t=(e.srcElement||e.target,e.clientX),n=e.clientY;T.style.left=t-L.plansizeX/2+"px",T.style.top=n-L.plansizeY/2+"px"};let I=document.getElementById("ourplan");I.ontouchstart=function(){},I.ontouchmove=function(e){e.touches[0].clientXi||e.touches[0].clientY<40||e.touches[0].clientY>h-40||(I.style.left=e.touches[0].clientX-33+"px",I.style.top=e.touches[0].clientY-40+"px")},I.ontouchend=function(){};var Y=0,B=function(){0==Y?(m.style.display="block",document.removeEventListener?(o.removeEventListener("mousemove",x,!0),k.removeEventListener("mousemove",X,!0)):document.detachEvent&&(o.detachEvent("onmousemove",x),k.detachEvent("onmousemove",X)),clearInterval(z),Y=1):(m.style.display="none",document.addEventListener?(o.addEventListener("mousemove",x,!0),k.addEventListener("mousemove",X,!0)):document.attachEvent&&(o.attachEvent("onmousemove",x),k.attachEvent("onmousemove",X)),z=setInterval(j,20),Y=0)},X=function(){var e=window.event||arguments[0],t=e.clientX,n=e.clientY;let i=document.body.clientWidth;f=o.clientWidth;var l=o.clientHeight;let s=0,a=0;i==f?(s=0,a=i):(s=(i-f)/2,a=i-s),ta-33||n<40||n>l-40?document.removeEventListener?o.removeEventListener("mousemove",x,!0):document.detachEvent&&o.detachEvent("onmousemove",x):document.addEventListener?o.addEventListener("mousemove",x,!0):document.attachEvent&&o.attachEvent("nomousemove",x)},k=document.getElementsByTagName("body")[0];document.addEventListener?(o.addEventListener("mousemove",x,!0),L.imagenode.addEventListener("click",B,!0),k.addEventListener("mousemove",X,!0),m.getElementsByTagName("button")[0].addEventListener("click",B,!0)):document.attachEvent&&(o.attachEvent("onmousemove",x),L.imagenode.attachEvent("onclick",B),k.attachEvent("onmousemove",X),m.getElementsByTagName("button")[0].attachEvent("onclick",B)),L.imagenode.style.display="none";var z,_=[],w=[],M=0,O=0,P=0;function j(){let e=document.body.clientWidth;f=o.clientWidth;let t=o.clientHeight,n=0,i=0;e==f?(n=0,i=e):(n=(e-f)/2,i=e-n),o.style.backgroundPositionY=P+"px",568==(P+=.5)&&(P=0),20==++M&&(++O%5==0&&_.push(new y(6,n+23,i-46,46,60,5e3,360,E(1,3),"/im/lab/plane/image/blast-mid.gif","/im/lab/plane/image/enemy3_fly_1.png")),20==O?(_.push(new y(12,n+55,i-110,110,164,3e4,540,1,"/im/lab/plane/image/blast-big.gif","/im/lab/plane/image/enemy2_fly_1.png")),O=0):_.push(new y(1,n+17,i-34,34,24,1e3,360,E(1,4),"/im/lab/plane/image/blast-small.gif","/im/lab/plane/image/enemy1_fly_1.png")),M=0);for(var l=_.length,s=0;st-10&&(o.removeChild(_[s].imagenode),_.splice(s,1),l--),1==_[s].planisdie&&(_[s].plandietimes+=20,_[s].plandietimes==_[s].plandietime&&(o.removeChild(_[s].imagenode),_.splice(s,1),l--));M%5==0&&w.push(new b(parseInt(L.imagenode.style.left)+31,parseInt(L.imagenode.style.top)-10));var m=w.length;for(s=0;s=L.imagenode.offsetLeft&&_[p].imagenode.offsetLeft<=L.imagenode.offsetLeft+L.plansizeX&&_[p].imagenode.offsetTop+_[p].plansizeY>=L.imagenode.offsetTop+40&&_[p].imagenode.offsetTop<=L.imagenode.offsetTop-20+L.plansizeY&&(L.imagenode.src="/im/lab/plane/image/blast.gif",d.style.display="block",u.innerHTML=c,document.removeEventListener?(o.removeEventListener("mousemove",x,!0),k.removeEventListener("mousemove",X,!0)):document.detachEvent&&(o.detachEvent("onmousemove",x),k.removeEventListener("mousemove",X,!0)),clearInterval(z)),w[r].bulletimage.offsetLeft+w[r].bulletsizeX>_[p].imagenode.offsetLeft&&w[r].bulletimage.offsetLeft<_[p].imagenode.offsetLeft+_[p].plansizeX&&w[r].bulletimage.offsetTop<=_[p].imagenode.offsetTop+_[p].plansizeY&&w[r].bulletimage.offsetTop+w[r].bulletsizeY>=_[p].imagenode.offsetTop)){_[p].planhp=_[p].planhp-w[r].bulletattach,0==_[p].planhp&&(c+=_[p].planscore,a.innerHTML=c,_[p].imagenode.src=_[p].planboomimage,_[p].planisdie=!0),o.removeChild(w[r].bulletimage),w.splice(r,1),m--;break}}let S=document.getElementById("start");S&&(S.onclick=function(){l.style.display="none",o.style.display="block",L.imagenode.style.display="block",s.style.display="block",z=setInterval(j,20)});let C=document.getElementById("jixu");C&&(C.onclick=function(){location.reload(!0)})}]);