PageSourceSearch

https://zaryalg.com/wp-content/plugins/light-shortcode/includes/frontend/ls_sc_scripts.js?ver=1.0.3

js zaryalg.com collected 2026-10-06 19:38:28 UTC 1,766 bytes, 67 lines download raw bytes

1jQuery(document).ready(function($){
2	
3	// Accordion
4	$(".ls-sc-accordion").accordion({heightStyle: "content"});
5	
6	// Toggle
7	$(".ls-sc-toggle-trigger").click(function(){$(this).toggleClass("active").next().slideToggle("fast");return false; });
8	
9	// Tabs
10	$( ".ls-sc-tabs" ).tabs();
11	
12	// Google Maps
13	$('.googlemap').each( function() {
14		
15		var $map_id = $(this).attr('id'),
16		$title = $(this).find('.title').val(),
17		$location = $(this).find('.location').val(),
18		$zoom = parseInt( $(this).find('.zoom').val() ),
19		geocoder, map;
20		
21		var mapOptions = {
22			zoom: $zoom,
23			mapTypeId: google.maps.MapTypeId.ROADMAP
24		};
25		
26		geocoder = new google.maps.Geocoder();
27		
28		geocoder.geocode( { 'address': $location}, function(results, status) {
29		
30			if (status == google.maps.GeocoderStatus.OK) {
31			
32				var mapOptions = {
33					zoom: $zoom,
34					mapTypeId: google.maps.MapTypeId.ROADMAP
35				};
36				
37				map = new google.maps.Map($('#'+ $map_id + ' .map_canvas')[0], mapOptions);
38				
39				map.setCenter(results[0].geometry.location);
40				
41				var marker = new google.maps.Marker({
42				  map: map, 
43				  position: results[0].geometry.location,
44				  title : $location
45				});
46				
47				var contentString = '<div class="map-infowindow">'+
48					( ($title) ? '<h3>' + $title + '</h3>' : '' ) + 
49					$location + '<br/>' +
50					'<a href="https://maps.google.com/?q='+ $location +'" target="_blank">View on Google Map</a>' +
51					'</div>';
52				
53				var infowindow = new google.maps.InfoWindow({
54				  content: contentString
55				});
56				
57				google.maps.event.addListener(marker, 'click', function() {
58					infowindow.open(map,marker);
59				});
60				
61			} else {
62				$('#'+ $map_id).html("Geocode was not successful for the following reason: " + status);
63			}
64		});
65		
66	});
67});

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.