PageSourceSearch

https://slatadoc.ai/wp-content/themes/stockholm/js/default_dynamic.js?ver=1785386094

js slatadoc.ai collected 2026-10-05 16:21:49 UTC 4,332 bytes, 160 lines download raw bytes

1		
2		function ajaxSubmitCommentForm(){
3		"use strict";
4		
5		var options = {
6		success: function(){
7		$j("#commentform textarea").val("");
8		$j("#commentform .success p").text("Comment has been sent!");
9		}
10		};
11		
12		$j('#commentform').submit(function() {
13		$j(this).find('input[type="submit"]').next('.success').remove();
14		$j(this).find('input[type="submit"]').after('<div class="success"><p></p></div>');
15		$j(this).ajaxSubmit(options);
16		return false;
17		});
18		}
19		var header_height = 100;
20		var min_header_height_scroll = 57;
21		var min_header_height_fixed_hidden = 50;
22		var min_header_height_sticky = 60;
23		var scroll_amount_for_sticky = 85;
24		var content_line_height = 60;
25		var header_bottom_border_weight = 1;
26		var scroll_amount_for_fixed_hiding = 200;
27		var paspartu_width_init = 0.02;
28		var search_header_height = 50;
29		
30						header_height = 100;
31									min_header_height_scroll = 100;
32									min_header_height_sticky = 100;
33											var logo_height = 130; // stockholm logo height
34		var logo_width = 280; // stockholm logo 
34width
35				header_top_height = 0;
36		
37				
38				
39		var loading_text;
40		loading_text = 'Loading new posts...';
41		var finished_text;
42		finished_text = 'No more posts';
43					
44			var piechartcolor;
45			piechartcolor	= "#e6ae48";
46							piechartcolor = "#323232";
47						
48			var geocoder;
49			var map;
50			
51			function initialize() {
52			"use strict";
53			// Create an array of styles.
54						var mapStyles = [
55			{
56			stylers: [
57			{hue: "#393939" },
58			{saturation: "-100"},
59			{lightness: "-60"},
60			{gamma: 1}
61			]
62			}
63			];
64			var qodeMapType = new google.maps.StyledMapType(mapStyles, {name: "Qode Google Map"});
65			
66			geocoder = new google.maps.Geocoder();
67			var latlng = new google.maps.LatLng(-34.397, 150.644);
68			var myOptions = {
69						zoom: 12,
70							scrollwheel: false,
71						center: latlng,
72			zoomControl: true,
73			zoomControlOptions: {
74			style: google.maps.ZoomControlStyle.SMALL,
75			position: google.maps.ControlPosition.RIGHT_CENTER
76			},
77			scaleControl: false,
78			scaleControlOptions: {
79			position: google.maps.ControlPosition.LEFT_CENTER
80			},
81			streetViewControl: false,
82			streetViewControlOptions: {
83			position: google.maps.ControlPosition.LEFT_CENTER
84			},
85			panControl: false,
86			panControlOptions: {
87			position: google.maps.ControlPosition.LEFT_CENTER
88			},
89			mapTypeControl: false,
90			mapTypeControlOptions: {
91			mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'qode_style'],
92			style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
93			position: google.maps.ControlPosition.LEFT_CENTER
94			},
95										mapTypeId: 'qode_style',
96						mapId: "SELECT_MAP_ID",
97			};
98			map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
99							map.mapTypes.set('qode_style', qodeMapType);
100						}
101			
102			function codeAddress(data) {
103			"use strict";
104			
105			if (data === '')
106			return;
107			
108			var contentString = '<div id="content"><div id="siteNotice"></div><div id="bodyContent"><p>'+data+'</p></div></div>';
109			var infowindow = new google.maps.InfoWindow({
110			content: contentString
111			});
112						var pinImg = document.createElement( 'img' );
113			pinImg.src = 'https://slatadoc.ai/wp-content/themes/stockholm/img/pin.png';
114						geocoder.geocode( { 'address': data}, function(results, status) {
115			if (status === google.maps.GeocoderStatus.OK) {
116			map.setCenter(results[0].geometry.location);
117			var marker = new google.maps.marker.AdvancedMarkerElement({
118			map: map,
119			position: results[0].geometry.location,
120							content:  pinImg,
121						title: data['store_title']
122			});
123			google.maps.event.addListener(marker, 'click', function() {
124			infowindow.open(map,marker);
125			});
126			}
127			});
128			}
129			
130			var $j = jQuery.noConflict();
131			
132			$j( document ).on(
133			'qodefGoogleMapsCallbackEvent',
134			function () {
135			showContactMap();
136			}
137			);
138					
139		function showContactMap() {
140		"use strict";
141		
142		if($j("#map_canvas").length > 0 && typeof google === 'object'){
143		initialize();
144		codeAddress("");
145		codeAddress("");
146		codeAddress("");
147		codeAddress("");
148		codeAddress("");
149		}
150		}
151		
152		var no_ajax_pages = [];
153		var qode_root = 'https://slatadoc.ai/';
154		var theme_root = 'https://slatadoc.ai/wp-content/themes/stockholm';
155					var header_style_admin = "light";
156				if(typeof no_ajax_obj !== 'undefined') {
157		no_ajax_pages = no_ajax_obj.no_ajax_pages;
158		}
159		
160		

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.