Server IP : 85.214.239.14 / Your IP : 3.141.192.115 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/root/proc/2/cwd/proc/3/root/var/www/wordpress/wp-content/plugins/fictional-maps-handler/js/leaflet/ |
Upload File : |
L.ResponsivePopup=L.Popup.extend({options:{hasTip:!0},_initLayout:function(){var t="leaflet-popup",e=this._container=L.DomUtil.create("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),s=this._wrapper=L.DomUtil.create("div",t+"-content-wrapper",e);if(this._contentNode=L.DomUtil.create("div",t+"-content",s),L.DomEvent.disableClickPropagation(s),L.DomEvent.disableScrollPropagation(this._contentNode),L.DomEvent.on(s,"contextmenu",L.DomEvent.stopPropagation),this._tipContainer=L.DomUtil.create("div",t+"-tip-container",e),this.options.hasTip||(this._tipContainer.style.visibility="hidden"),this._tip=L.DomUtil.create("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=L.DomUtil.create("a",t+"-close-button",e);i.href="#close",i.innerHTML="×",L.DomEvent.on(i,"click",this._onCloseButtonClick,this)}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._map.layerPointToContainerPoint(t),s=this._container.offsetWidth,i=this._container.offsetHeight,o=L.point(this.options.autoPanPadding),p=L.point(this.options.autoPanPaddingTopLeft||o),a=L.point(this.options.autoPanPaddingBottomRight||o),n=this._map.getSize(),l=this._getAnchor(),r=L.point(this.options.offset),h=Math.abs(r.x),y=Math.abs(r.y);this.options.hasTip&&(h+=11,y+=11,L.DomUtil.removeClass(this._container,"leaflet-resp-popup-north"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-south"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-east"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-west"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-north-east"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-north-west"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-south-east"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-south-west"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-east-north"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-east-south"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-west-north"),L.DomUtil.removeClass(this._container,"leaflet-resp-popup-west-south"));var x=!0,_=!0,u=!0,c=!0,f=!1;e.y+l.y-y-i-Math.abs(p.y)<0&&(x=!1),e.y+l.y+y+i+Math.abs(a.y)>n.y&&(_=!1),e.x+l.x-h-s-Math.abs(p.x)<0&&(u=!1),e.x+l.x+h+s+Math.abs(a.x)>n.x&&(c=!1);var m=s/2-l.x,C=i/2-l.y;if(x||_){var d=e.x+l.x-s/2,v=e.x+l.x+s/2;d<Math.abs(p.x)&&(m=s/2-l.x-Math.abs(p.x)+d),v>n.x-Math.abs(a.x)&&(m=s/2-l.x+v-n.x+Math.abs(a.x))}if(u||c){var D=e.y+l.y-i/2,U=e.y+l.y+i/2;D<Math.abs(p.y)&&(C=i/2-l.y-Math.abs(p.y)+D),U>n.y-Math.abs(a.y)&&(C=i/2-l.y+U-n.y+Math.abs(a.y))}if(x)f=t.subtract(L.point(m,-l.y+i+y,!0)),this.options.hasTip&&(e.x+l.x<p.x+12+11?(f.x=t.x+l.x,L.DomUtil.addClass(this._container,"leaflet-resp-popup-north-east"),this._tipContainer.style.top=i+"px",this._tipContainer.style.left="0px"):e.x+l.x>n.x-a.x-12-11?(f.x=t.x+l.x-s,L.DomUtil.addClass(this._container,"leaflet-resp-popup-north-west"),this._tipContainer.style.top=i+"px",this._tipContainer.style.left=s+"px"):(L.DomUtil.addClass(this._container,"leaflet-resp-popup-north"),this._tipContainer.style.top=i+"px",this._tipContainer.style.left=t.x+l.x-f.x+"px"));else if(u)f=t.subtract(L.point(-l.x+s+h,C,!0)),this.options.hasTip&&(e.y+l.y<p.y+12+11?(f.y=t.y+l.y,L.DomUtil.addClass(this._container,"leaflet-resp-popup-west-south"),this._tipContainer.style.top="0px",this._tipContainer.style.left=s+"px"):e.y+l.y>n.y-a.y-12-11?(f.y=t.y+l.y-i,L.DomUtil.addClass(this._container,"leaflet-resp-popup-west-north"),this._tipContainer.style.top=i+"px",this._tipContainer.style.left=s+"px"):(L.DomUtil.addClass(this._container,"leaflet-resp-popup-west"),this._tipContainer.style.top=t.y+l.y-f.y+"px",this._tipContainer.style.left=s+"px"));else if(_)f=t.subtract(L.point(m,-l.y-y,!0)),this.options.hasTip&&(e.x+l.x<p.x+12+11?(f.x=t.x+l.x,L.DomUtil.addClass(this._container,"leaflet-resp-popup-south-east"),this._tipContainer.style.top="0px",this._tipContainer.style.left="0px"):e.x+l.x>n.x-a.x-12-11?(f.x=t.x+l.x-s,L.DomUtil.addClass(this._container,"leaflet-resp-popup-south-west"),this._tipContainer.style.top="0px",this._tipContainer.style.left=s+"px"):(L.DomUtil.addClass(this._container,"leaflet-resp-popup-south"),this._tipContainer.style.top="0px",this._tipContainer.style.left=t.x+l.x-f.x+"px"));else if(c)f=t.subtract(L.point(-l.x-h,C,!0)),this.options.hasTip&&(e.y+l.y<p.y+12+11?(f.y=t.y+l.y,L.DomUtil.addClass(this._container,"leaflet-resp-popup-east-south"),this._tipContainer.style.top="0px",this._tipContainer.style.left="0px"):e.y+l.y>n.y-a.y-12-11?(f.y=t.y+l.y-i,L.DomUtil.addClass(this._container,"leaflet-resp-popup-east-north"),this._tipContainer.style.top=i+"px",this._tipContainer.style.left="0px"):(L.DomUtil.addClass(this._container,"leaflet-resp-popup-east"),this._tipContainer.style.top=t.y+l.y-f.y+"px",this._tipContainer.style.left="0px"));else{f=(t=this._map.latLngToLayerPoint(this._map.getCenter())).subtract(L.point(s/2,i/2)),this.options.hasTip}e.x<0||e.y<0||e.x>n.x||(e.y,n.y),s-Math.abs(p.x)-Math.abs(a.x)>n.x||(Math.abs(p.y),Math.abs(a.y),n.y),L.DomUtil.setPosition(this._container,f)}}}),L.responsivePopup=function(t,e){return new L.ResponsivePopup(t,e)},"object"==typeof exports&&"undefined"!=typeof module&&(exports.responsivePopup=L.responsivePopup,exports.ResponsivePopup=L.ResponsivePopup);