1var map;var geocoder;var bounds;var infoWin=[];var markers=[];var haveAnimation=false;function initMap(){if(jQuery("#map").length<=0){return;}else{geocoder=new google.maps.Geocoder();callback();}} 2function callback(){var initLocation={lat:locationsList[0]["latitude"],lng:locationsList[0]["longitude"]};map=new google.maps.Map(document.getElementById("map"),{zoom:15,maxZoom:16,mapTypeId:"hybrid",disableDefaultUI:true,scrollwheel:false,});bounds=new google.maps.LatLngBounds();map.fitBounds(bounds);for(var i=0;i<locationsList.length;i++){placeMarker(locationsList[i]);} 3map.addListener('tilesloaded',function(){jQuery('[src="'+plugin_url+'/img/g-marker.svg"]').each(function(){jQuery(this).parent('div').addClass('map-icon');jQuery(this).parent('div').addClass('bounce');})});} 4function placeMarker(loc){var latLng=new google.maps.LatLng(loc["latitude"],loc["longitude"]);var contentString='<div id="infobox-content" style="">'+'<div id="inner-infobox">'+'<div id="siteNotice">'+"</div>"+'<div id="bodyContent">'+'<div class="content"><h4 class="title">'+loc["title"]+"</h4>"+'<div class="text">'+ 5loc["text"]+"</div></div>"+"</div>"+"</div>"+"</div>";var infowindow;if(jQuery(window).width()>=992){infowindow=new google.maps.InfoWindow({content:contentString,pixelOffset:new google.maps.Size(-270,180)});}else{infowindow=new google.maps.InfoWindow({content:contentString,});} 6infowindow.addListener('closeclick',function(){$('.map').removeClass('overlay');});google.maps.event.addListener(map,"click",function(event){infowindow.close();$('.map').removeClass('overlay');for(let i=0;i<markers.length;i++){markers[i].setIcon(plugin_url+"/img/g-marker.svg");}});const image={url:plugin_url+"/img/g-marker.svg",size:new google.maps.Size(41,51),className:"test-1",title:"custom-marker",};var marker=new google.maps.Marker({position:latLng,map:map,icon:image,title:"custom-marker",className:"test"});marker.addListener("click",(ev,target)=>{marker.setAnimation();});infoWin.push(infowindow);markers.push(marker);google.maps.event.addListener(marker,"click",function(){for(let i=0;i<infoWin.length;i++){infoWin[i].close();} 7for(let i=0;i<markers.length;i++){} 8$('.map').addClass('overlay');marker.setIcon(plugin_url+"/img/g-marker-active.svg");infowindow.open(map,marker);$('.map-icon').addClass('stop');if($(window).width()<=992){$('html, body').animate({scrollTop:$("#map").offset().top-100},800);}});bounds.extend(marker.position);google.maps.event.addListener(infowindow,"domready",function(){var iwOuter=jQuery(".gm-style-iw");var iwBackground=iwOuter.prev().html("<h1>just test</h1>").addClass("infobox-wrapper-decoration").remove();iwBackground.children(":nth-child(2)").css({display:"none"});iwBackground.children(":nth-child(4)").css({display:"none"});iwOuter.parent().parent().addClass("infobox-wrapper");iwBackground.children(":nth-child(1)").attr("style",function(i,s){return s+"left: 150px !important;";});iwBackground.children(":nth-child(3)").attr("style",function(i,s){return s+"left: 150px !important;";});iwBackground.children(":nth-child(3)").find("div").children().css({"box-shadow":"rgba(72, 181, 233, 0.6) 0px 1px 6px","z-index":"1"});});} 9function deleteMarkers(){clearMarkers();markers=[];} 10function clearMarkers(){setMapOnAll(null);} 11function setMapOnAll(map){for(var i=0;i<markers.length;i++){markers[i].setMap(map);}} 12function isValidDate(dateString){var regEx=/^\d{4}-\d{2}-\d{2}$/;if(!dateString.match(regEx))return false;var d=new Date(dateString);var dNum=d.getTime();if(!dNum&&dNum!==0)return false;return d.toISOString().slice(0,10)===dateString;}
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.