diff --git a/TraceRoute/wwwroot/js/site.js b/TraceRoute/wwwroot/js/site.js index f8b6d56..d9d5960 100644 --- a/TraceRoute/wwwroot/js/site.js +++ b/TraceRoute/wwwroot/js/site.js @@ -84,4 +84,9 @@ function drawPath(HostList) { } polyline = L.polyline(latlngs, { color: 'red' }).addTo(map); map.fitBounds(polyline.getBounds()); +} + +function hideKeyboard() { + document.activeElement.blur(); + $("input").trigger("blur"); } \ No newline at end of file diff --git a/TraceRoute/wwwroot/js/site.min.js b/TraceRoute/wwwroot/js/site.min.js index c626264..3b7e1fd 100644 --- a/TraceRoute/wwwroot/js/site.min.js +++ b/TraceRoute/wwwroot/js/site.min.js @@ -1 +1 @@ -function initMap(){map=L.map("map").setView([0,0],2);L.Icon.Default.imagePath="lib/leaflet/images/";const n=L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'© OpenStreetMap<\/a>'}).addTo(map);L.Map.include({getMarkerById:function(n){var t=null;return this.eachLayer(function(i){i instanceof L.Marker&&i.options.id===n&&(t=i)}),t}})}function addMarker(n,t,i,r){var u=L.marker([n,t],{id:"marker_"+i}).bindTooltip(i,{permanent:!0,direction:"right"}).on("mouseover",hilightHopTable).on("click",function(){ipDetailsJS(r)}).addTo(map);markers.push[u]}function ipDetailsJS(n){var t=angular.element(document.querySelector("body")).controller();t.IpDetails(n)}function hilightHopTable(){var t=this.getTooltip(),n=".tr_hop_"+t.getContent();$(n).addClass("highlight");setTimeout(function(){$(n).removeClass("highlight")},2e3)}function hilightTooltip(n){const i=$(n).data("index-value"),t=map.getMarkerById("marker_"+i);t!=null&&($(t._icon).addClass("highlight"),setTimeout(function(){$(t._icon).removeClass("highlight")},1e3))}function clearMarkersAndPaths(){map.eachLayer(n=>{(n._latlng!=undefined||n._path!=undefined)&&n.remove()});markers=[];polyline=undefined}function drawPath(n){var t=[],i;if(n.find(n=>n.details==undefined||n.details.isp==undefined)==undefined){for(let r=0;rOpenStreetMap<\/a>'}).addTo(map);L.Map.include({getMarkerById:function(n){var t=null;return this.eachLayer(function(i){i instanceof L.Marker&&i.options.id===n&&(t=i)}),t}})}function addMarker(n,t,i,r){var u=L.marker([n,t],{id:"marker_"+i}).bindTooltip(i,{permanent:!0,direction:"right"}).on("mouseover",hilightHopTable).on("click",function(){ipDetailsJS(r)}).addTo(map);markers.push[u]}function ipDetailsJS(n){var t=angular.element(document.querySelector("body")).controller();t.IpDetails(n)}function hilightHopTable(){var t=this.getTooltip(),n=".tr_hop_"+t.getContent();$(n).addClass("highlight");setTimeout(function(){$(n).removeClass("highlight")},2e3)}function hilightTooltip(n){const i=$(n).data("index-value"),t=map.getMarkerById("marker_"+i);t!=null&&($(t._icon).addClass("highlight"),setTimeout(function(){$(t._icon).removeClass("highlight")},1e3))}function clearMarkersAndPaths(){map.eachLayer(n=>{(n._latlng!=undefined||n._path!=undefined)&&n.remove()});markers=[];polyline=undefined}function drawPath(n){var t=[],i;if(n.find(n=>n.details==undefined||n.details.isp==undefined)==undefined){for(let r=0;r