PageSourceSearch

https://www.griceconnect.com/jsb/mapping?v=WfLwGqPCToTzTzBLEvTPZi4-UKG6YjooOvhQ3nRI6Lc1

js griceconnect.com collected 2026-09-24 09:50:57 UTC 2,643 bytes, 1 lines download raw bytes

1var VM=VM||{};VM.Mapping={$maps:null,init:function(){this.$maps=VM.$body.find(".widget-map-autoload");this.$maps.length>0&&(this.loadAllData(),this.loadMapApi())},loadAllData:function(){this.$maps.each(function(){var n=$(this),t=n.data("endpoint");t&&(n.data("endpoint-append")&&(t+=window.location.search),$.getJSON(t,function(t){n.data("data",t);n.data("data-loaded",!0)}))})},loadMapApi:function(n){if(VM.$body.append('<link rel="stylesheet" href="/css/leaflet.min.css" />'),typeof L=="object"){if(typeof n=="function")return n();VM.Mapping.onMapApiLoaded()}else $.getScript("/js/leaflet.js",function(){if(typeof n=="function")return n();VM.Mapping.onMapApiLoaded()})},onMapApiLoaded:function(){VM.Mapping.$maps.each(function(){var n=$(this).removeClass("hidden"),r=VM.Mapping.initializeMap(n),u,t,i;n.data("endpoint")&&(u=VM.Mapping.loadData(n,r),u||(t=0,i=window.setInterval(function(){t++;VM.Mapping.loadData(n,r,i);t===50&&window.clearInterval(i)},150)))})},initializeMap:function(n){var i=parseFloat(n.data("lat")||47.1563624),r=parseFloat(n.data("lng")||-97.8962156),u=parseInt(n.data("min-zoom")||3,10),f=parseInt(n.data("max-zoom")||18,10),t=new L.Map(n[0],{center:[i,r]});return L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{minZoom:u,maxZoom:f,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap<\/a>'}).addTo(t),t},loadData:function(n,t,i,r){var u,s,e,f,o,c,h;if(n.data("data-loaded")){if(n.removeClass("map-loading"),i&&window.clearInterval(i),u=n.data("data"),u&&u.length>0){for(s=[],e=0;e<u.length;e++)f=u[e],o=[f.lat,f.lng],r?(c=L.divIcon({className:"",html:r,iconSize:null}),h=L.marker(o,{icon:c,extra:f.extra}).addTo(t)):h=L.marker(o).addTo(t),s.push(o),h.bindPopup(VM.Mapping.buildPopupMarkup(f));t.fitBounds(s)}else n.addClass("hidden");return!0}return!1},buildPopupMarkup:function(n){var i="",t;if(n.src&&(i+='<img src="'+n.src+';h=60" alt="'+n.title+'" style="display:block;margin-bottom:5px">'),t=[],n.title.trim()!==(n.description||"").trim()&&t.push("<b>"+n.title+"<\/b>"),n.subtitle&&t.push("<i>"+n.subtitle+"<\/i>"),n.description&&t.push(n.description),i+=t.join("<br>"),n.url){var r=n.url,u=n.url.substring(0,4)==="http",f="",e="",o,s="",h="",c="";return u&&(f=' target="_blank"',e=' rel="noopener"'),n.event_category?(o=' data-ga-category="'+n.event_category+'"',s=' data-ga-action="'+n.event_action+'"',h=' data-ga-label="'+n.event_label+'"',c=u?' class="ga ga-ext"':' class="ga"'):u&&(r=VM.Track.getExternalParams(r)),'<a href="'+r+'" style="display:block;text-decoration:none;color:inherit" '+f+e+o+s+h+c+">"+i+"<\/a>"}return i}};
1$(function(){VM.Mapping.init()})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.