PageSourceSearch

https://www.pecu24.org/templates/COMMON_JS/locator.js?version=30Apr2025

js pecu24.org collected 2026-10-05 22:38:25 UTC 6,196 bytes, 98 lines download raw bytes

1function pinSymbol(e){return{path:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z",fillColor:e,fillOpacity:1,strokeColor:ColorLuminance(e),strokeWeight:1,scale:.066,labelOrigin:new google.maps.Point(200,200)}}function starSymbol(e){return{path:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",fillColor:e,fillOpacity:1,strokeColor:ColorLuminance(e),strokeWeight:1,scale:.066,labelOrigin:new google.maps.Point(290,260)}}function geoSymbol(e){return{path:"M256 168c-48.6 0-88 39.4-88 88s39.4 88 88 88 88-39.4 88-88-39.4-88-88-88zm0 128c-22.06 0-40-17.94-40-40s17.94-40 40-40 40 17.94 40 40-17.94 40-40 40zm240-64h-49.66C435.49 145.19 366.81 76.51 280 65.66V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v49.66C145.19 76.51 76.51 145.19 65.66 232H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h49.66C76.51 366.81 145.19 435.49 232 446.34V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-49.66C366.81 435.49 435.49 366.8 446.34 280H496c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zM256 400c-79.4 0-144-64.6-144-144s64.6-144 144-144 144 64.6 144 144-64.6 144-144 144z",fillColor:ColorLuminance(e),fillOpacity:1,strokeColor:e,strokeWeight:0,scale:.075,labelOrigin:new google.maps.Point(250,260)}}function ColorLuminance(e){var t=-.1;(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var o,n,_="#";for(n=0;n<3;n++)_+=("00"+(o=Math.round(Math.min(Math.max(0,(o=parseInt(e.substr(2*n,2),16))+o*t),255)).toString(16))).substr(o.length);return _}function myClick(e){google.maps.event.trigger(markers[e],"click")}function clearPanel(){document.getElementById("directionsPanel").innerHTML="",document.getElementById("exedout").style.display="none",document.getElementById("directionsPanel").style.padding="0",document.getElementById("directionsPanel").style.boxShadow=" 0 0 0 0 rgba(0,0,0,.5)",initialize()}function getDir(e,t){geocoder.geocode({address:document.getElementById("clientAddress").value},function(o,n){if(n==google.maps.GeocoderStatus.OK){var _=o[0].geometry.location,l=new google.maps.LatLng(e,t),i={origin:_,destination:l,travelMode:google.maps.DirectionsTravelMode.DRIVING};directionsService.route(i,function(e,t){t==google.maps.DirectionsStatus.OK&&directionsDisplay.setDirections(e)}),document.getElementById("exedout").style.display="block",document.getElementById("directionsPanel").style.padding="20px",document.getElementById("directionsPanel").style.boxShadow=" 0 0 5px 0 rgba(0,0,0,.5)"}else document.getElementById("clientAddress").value="Directions cannot be computed at this time."})}function validateForm(){var e=document.forms.locator.search.value,t=document.forms.locator.state.value;return(null==t||""==t)&&(null==e||""==e)||null!=t&&""!=t&&null!=e&&""!=e||(null!=t&&""!=t&&(null==e||""==e)?(alert("Please enter a city or zip code"),!1):null!=e&&""!=e&&isNaN(e)?((null==t||""==t)&&alert("Please choose a state"),!1):void 0)}function getLocation(){navigator.geolocation?navigator.geolocation.getCurrentPosition(showPosition):alert("Geolocation is not supported by this browser.")}function showPosition(e){var t="?lat="+e.coords.latitude+"&long="+e.coords.longitude,o=window.location.href,n=o.indexOf("option");t+="&"+o.slice(n),window.location=t}
2
3
4$(document).ready(function(){
5	$('#cubranches1').change(function() {
6
7        if(this.checked) {
8			$('.loc_formbox2a').slideDown('fast');
9        } else {
10			$('.loc_formbox2a').slideUp('fast');
11			$('input#Stat1, input#Stat2, input#Stat3, input#Stat4, input#Stat5').prop('checked', false);
12		}
13    });
14
15	function toggle_expanded(obj) {
16		var exp = $(obj).attr("aria-expanded");
17		if(exp === 'false')
18			$(obj).attr("aria-expanded", 'true');
19		else
20			$(obj).attr("aria-expanded", 'false');
21	}
22
23
24	$('button#showcities').click(function(){
25		toggle_expanded(this);
26		$('.citylist').toggle();
27		$('.svclist').hide();
28		$('button#showservices').attr("aria-expanded", 'false');
29	});
30
31	$('button#showservices').click(function(){
32		toggle_expanded(this);
33		$('.svclist').toggle();
34		$('.citylist').hide();
35		$('button#showcities').attr("aria-expanded", 'false');
36	});
37
38	$('.citylist button').click(function(){
39		var which = $(this).attr("id");
40		var say = $(this).html();
41		var service = $('#showservices').html();
42		var service_id = $('button[aria-title="show '+ service +'"]').attr('id');
43
44		$('#showcities').text(say);
45		$('.citylist').hide();
46		$('button#showcities').attr("aria-expanded", 'false');
47
48		
49		if(which == 'All_Cities') {
50			$('.locpanel_cell').fadeIn('fast');
51			$('.locpanel_state').fadeIn('fast');
52			$('#showservices').text('All Services');
53		} else {
54			$('.locpanel_state').fadeOut('fast');
55			$('.locpanel_cell').fadeOut('fast');
56			$('.locpanel_cell.'+which).fadeIn('fast');
57			$('.locpanel_cell.'+service_id).fadeIn('fast');
58		}
59	});
60
61	$('.svclist button').click(function(){
62		var which = $(this).attr("id");
63		var say = $(this).attr("aria-title");
64		var city = $('#showcities').html();
65		var city_id = $('button[aria-title="show only locations in '+ city +'"]').attr('id');
66		
67		say = say.substring(5);
68
69		$('#showservices').text(say);
70		$('.svclist').hide();
71		$('button#showservices').attr("aria-expanded", 'false');
72		
73
74		if(which == 'All_Services') {
75			$('.locpanel_cell').fadeIn('fast');
76			$('.locpanel_state').fadeIn('fast');
77			$('#showcities').text('All Cities');
78		} else {
79			$('.locpanel_state').fadeOut('fast');
80			$('.locpanel_cell').fadeOut('fast');
81			$('.locpanel_cell.'+which).fadeIn('fast');
82			$('.locpanel_cell.'+city_id).fadeIn('fast');
83		}
84	});
85
86	$('#clear_filters').click(function(){
87		var say = "All Cities";
88
89		$('#showcities').text(say);
90		$('.citylist').removeClass('show');
91		$('#showservices').text('All Services');
92
93		$('.locpanel_cell').fadeIn('fast');
94		$('.locpanel_state').fadeIn('fast');
95		
96	});
97
98});

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.