diff --git a/scripts/shortcode-helper.min.js b/scripts/shortcode-helper.min.js index 397c40a..de8e8e8 100644 --- a/scripts/shortcode-helper.min.js +++ b/scripts/shortcode-helper.min.js @@ -1 +1 @@ -!function(){(window.WPLeafletMapPlugin||[]).push(function(){var t=document.getElementById("map-shortcode"),e=document.getElementById("marker-shortcode"),n=window.WPLeafletMapPlugin.maps[0],a=window.WPLeafletMapPlugin.markers[0];function l(){var t=a.getLatLng();e.value="[leaflet-marker lat="+t.lat+" lng="+t.lng+"]"}function o(){var e=n.getBounds(),l=e.getCenter();t.value="[leaflet-map lat="+l.lat+" lng="+l.lng+" zoom="+n.getZoom()+"]",e.contains(a.getLatLng())||a.setLatLng(l)}a.on("drag",l),n.on("move",o),o(),l(),t.addEventListener?(t.addEventListener("click",function(){this.select()}),e.addEventListener("click",function(){this.select()})):(t.attachEvent("onclick",function(){t.select()}),e.attachEvent("onclick",function(){e.select()}))})}(); +!function(){window.WPLeafletMapPlugin=window.WPLeafletMapPlugin||[],window.WPLeafletMapPlugin.push(function(){var e=document.getElementById("map-shortcode"),t=document.getElementById("marker-shortcode"),n=window.WPLeafletMapPlugin.maps[0],a=window.WPLeafletMapPlugin.markers[0];function l(){var e=a.getLatLng();t.value="[leaflet-marker lat="+e.lat+" lng="+e.lng+"]"}function o(){var t=n.getBounds(),l=t.getCenter();e.value="[leaflet-map lat="+l.lat+" lng="+l.lng+" zoom="+n.getZoom()+"]",t.contains(a.getLatLng())||a.setLatLng(l)}a.on("drag",l),n.on("move",o),o(),l(),e.addEventListener?(e.addEventListener("click",function(){this.select()}),t.addEventListener("click",function(){this.select()})):(e.attachEvent("onclick",function(){e.select()}),t.attachEvent("onclick",function(){t.select()}))})}();