You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
8.4 KiB
1 line
8.4 KiB
1 year ago
|
/**/_jsload2 && _jsload2('opmb', 'var Nh=q,Oh=p; B.Xe(function(a){function b(){e&&(e=q,f=p,g||a.dispatchEvent(j))}function c(c){e=o;j=na(new N("ontouch"),c);f=new R(c.changedTouches[0].clientX,c.changedTouches[0].clientY);var g=d("onclickex",c);setTimeout(function(){b();a.dispatchEvent(g)},a.B.eX);Nh||a.dispatchEvent(d("onclick",c))}function d(b,c){for(var d=new N(b),e=c.target,f=p,g=p;e&&e!==a.Ua;){if(e.ba){var i=x.lang.Lc(e.ba);i instanceof kb&&"canvas"!==e.nodeName.toLowerCase()&&(f=i);i instanceof td&&(g=i)}e=e.offsetParent}for(var e=c.changedTouches[0].pageX, i=c.changedTouches[0].pageY,j=a.Ua;j&&j!=document.body;)e-=j.offsetLeft,i-=j.offsetTop,j=j.offsetParent;d.offsetX=e;d.offsetY=i;d.pixel=d.Wa=new R(d.offsetX,d.offsetY);d.point=d.point=a.Rb(d.Wa);d.overlay=d.cb=f;d.infoWindow=g;return d}a.B.eX=500;var e=q,f,g=q,i=q,j;x.M(a.Ga(),"touchmove",function(b){a.B.Gb&&b.preventDefault()});x.M(a.platform,"touchstart",function(b){Nh=q;Oh=setTimeout(function(){Nh=o;a.dispatchEvent(na(d("onlongpress",b),b))},1E3);a.B.Gb&&pa(b);i=q;a.dispatchEvent(na(d("ontouchstart", b),b));a.B.Gb&&Gb(b)});x.M(a.platform,"touchmove",function(b){a.B.Gb&&pa(b);i=o;a.dispatchEvent(na(d("ontouchmove",b),b))});x.M(a.platform,"touchend",function(j){clearTimeout(Oh);a.B.Gb&&Gb(j);i||(e?(g=o,Nh||a.dispatchEvent(d("onclick",j)),20>Ib(f,new R(j.changedTouches[0].clientX,j.changedTouches[0].clientY))?(a.dispatchEvent(d("ondblclick",j)),a.dispatchEvent(na(new N("ondbltouch"),j))):a.dispatchEvent(na(d("ontouchend",j),j)),b(),g=q):c(j));a.dispatchEvent(na(d("ontouchend",j),j))});x.M(a.platform, "gesturestart",function(b){b.preventDefault();a.dispatchEvent(na(new N("ongesturestart"),b))});x.M(a.platform,"gesturechange",function(b){b.preventDefault();a.dispatchEvent(na(new N("ongesturechange"),b))});x.M(a.platform,"gestureend",function(b){b.preventDefault();a.dispatchEvent(na(new N("ongestureend"),b))})}); B.Xe(function(a){function b(a){a&&(z.WebkitTransform="");j=i=0;l=1;m[0].x=m[0].y=m[1].x=m[1].y=0;D=q}function c(){if(x.platform.Ym)if(/Nexus/.test(navigator.userAgent))a.B.Gb&&(z.left=a.offsetX+i+"px",z.top=a.offsetY+j+"px");else if(1!==l&&a.B.Ak&&a.B.Cm)z.WebkitTransform="scale("+l+")";else{if(a.B.Gb&&(z.left=a.offsetX+i*l+"px",z.top=a.offsetY+j*l+"px"),1!=l)z.WebkitTransform=a.B.Cm?"scale("+l+") ":""}else z.WebkitTransform=1!==l&&a.B.Ak&&a.B.Cm?"scale("+l+")":(a.B.Gb?"translate("+i*l+"px, "+j*l+ "px) ":"")+(a.B.Cm?"scale("+l+") ":"")}function d(b){var c=0,d=0;Ph&&(d=c=0);"end"===b&&a.B.Gb&&a.B.Ak?(z.WebkitTransformOrigin=Math.round(a.width/2)-i-a.offsetX+"px "+(Math.round(a.height/2)-j-a.offsetY)+"px",n=z.WebkitTransformOrigin):"end"!==b&&a.B.Gb&&a.B.Ak||(z.WebkitTransformOrigin=a.B.Gb?(m[0].x+m[1].x)/2-a.offsetX-c+"px "+((m[0].y+m[1].y)/2-a.offsetY-d)+"px":Math.round(a.width/2)+"px "+Math.round(a.height/2)+"px")}function e(b,c){var d=new N(b),e=f(c.changedTouches[0].pageX,c.changedTouches[0].pageY); d.offsetX=e.x;d.offsetY=e.y;d.Wa=new R(d.offsetX,d.offsetY);d.point=a.Rb(d.Wa);return d}function f(b,c){for(var d=a.Ua;d&&d!=document.body;)b-=d.offsetLeft,c-=d.offsetTop,d=d.offsetParent;return new R(b,c)}function g(a){for(var b=[],c,d=0,e=a.touches.length;d<e;d++)c=a.touches[d],b.push({x:c.pageX,y:c.pageY});return b}var i=0,j=0,l=1,m=[{x:0,y:0},{x:0,y:0}],n=Math.round(a.width/2)+"px "+Math.round(a.height/2)+"px",s=0,u=0,w=q,y=q,D=q,C=p,F,A,z=a.platform.style;a.B.Ak&&(z.WebkitTransformOrigin=n); a.addEventListener("touchstart",function(b){if(!(b.cb instanceof W)){F=g(b);var c=b.targetTouches.length;s=s+c;s>2&&(s=2);var d=a.R;if(c==2)d.MI=o;d.nb&&d.nb.stop();if(s==1){this.R.gV=i;this.R.hV=j;b=f(b.targetTouches[0].pageX,b.targetTouches[0].pageY);m[0].x=b.x;m[0].y=b.y}else if(s==2){b=f(b.touches[c-1].pageX,b.touches[c-1].pageY);m[1].x=b.x;m[1].y=b.y}}});a.addEventListener("touchmove",function(b){if(x.xK>=4&&b.changedTouches.length>=2){A=g(b);var n=F.length==2&&A.length==2?Ib(A[0],A[1])/Ib(F[0], F[1]):1;if(Math.abs(1-n)>0){l=n;y=o;clearTimeout(Oh);d()}}if(y&&!(b.changedTouches.length<2)){for(n=b.target;n&&n!=a.Ua;){n.Ft&&x.lang.Lc(n.Ft);n=n.offsetParent}for(v
|