Home

June 1, 2021


thisStart.getTime()) { PushObject(title,link,image,order,alt); } } if(start && end) { var thisStart = new Date(moment(start).format()); var thisEnd = new Date(moment(end).format()); if((today >= thisStart && today <= thisEnd)) { PushObject(title,link,image,order,alt); } } }); } }); $.each(slides.sort(SortByOrder), function (key, val) { var active = ""; if(key == 0) { active = "active"; } $('ol.carousel-indicators').append("

  • “); $(‘div.carousel-inner’).append(“"+val.alt+"]]>
  • “); }); } function GetLocations(mp) { $().SPServices({ operation: “GetListItems”, listName: “Locations”, webURL: “/”, async: false, completefunc: function (xData, Status) { $(xData.responseXML).SPFilterNode(“z:row”).each(function() { var mapItem = {Title: $(this).attr(“ows_Title”), Address: $(this).attr(“ows_Address”), City: $(this).attr(“ows_City”), State: ‘MS’, Zip: $(this).attr(“ows_Zipcode”), Latitude: $(this).attr(“ows_Latitude”), Longitude: $(this).attr(“ows_Longitude”), Phone: $(this).attr(“ows_Phone”), FeatureTypeValue: $(this).attr(“ows_LocationType”) }; //alert(mapItem.Latitude); createMapMarker(mapItem,mp); }); } }); function createMapMarker(dataObj,mo) { var marker = new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(dataObj.Latitude, dataObj.Longitude), {icon: ‘/Style%20Library/assets/img/pushpin.png’, width: 22, height: 35, draggable: false}); marker.Title = dataObj.Title; marker.Description = dataObj.Address + ‘
    ‘ + dataObj.City + ((dataObj.State.length > 0) ? ‘, ‘ + dataObj.State : ”) + ((dataObj.Zip.length > 0) ? ‘, ‘ + dataObj.Zip : ”) + ‘
    ‘ + ((dataObj.Phone.length > 0) ? dataObj.Phone : ”) + ‘
    Get Driving Directions

    ‘; //register listeners Microsoft.Maps.Events.addHandler(marker, ‘click’, function(e){}); //Microsoft.Maps.Events.addHandler(ms_map, ‘viewchange’, hideInfobox); //mo.entities.push(map_info_window); mo.entities.push(marker); } function displayInfobox(e,loc,mp) { alert(e.targetType); if (e.targetType == ‘pushpin’) { //map_info_window = new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0, 0),{}); //mp.entities.push(map_info_window); //map_info_window.setLocation(new Microsoft.Maps.Location(loc.Latitude, loc.Longitude)); //map_info_window.setOptions({ visible: true, title: e.target.Title, description: e.target.Description }); //mp.setView({ center: e.target.getLocation(), centerOffset: new Microsoft.Maps.Point(-94, 110) }); } } }

    Source