PageSourceSearch

https://thepucicpalace.com/wp-content/themes/stockholm/js/default_dynamic.js?ver=1784308056

js thepucicpalace.com collected 2026-10-02 11:09:53 UTC 4,408 bytes, 162 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 = 150;
31									min_header_height_scroll = 90;
32									min_header_height_sticky = 70;
33											var logo_height = 130; // stockholm logo height
34		var logo_width = 280; // stockholm logo 
34width
35						logo_height  = 300;
36				logo_width = 474;
37					header_top_height = 0;
38		
39				
40				
41		var loading_text;
42		loading_text = 'Loading new posts...';
43		var finished_text;
44		finished_text = 'No more posts';
45					
46			var piechartcolor;
47			piechartcolor	= "#e6ae48";
48							piechartcolor = "#000000";
49						
50			var geocoder;
51			var map;
52			
53			function initialize() {
54			"use strict";
55			// Create an array of styles.
56						var mapStyles = [
57			{
58			stylers: [
59			{hue: "#393939" },
60			{saturation: "-100"},
61			{lightness: "-60"},
62			{gamma: 1}
63			]
64			}
65			];
66			var qodeMapType = new google.maps.StyledMapType(mapStyles, {name: "Qode Google Map"});
67			
68			geocoder = new google.maps.Geocoder();
69			var latlng = new google.maps.LatLng(-34.397, 150.644);
70			var myOptions = {
71						zoom: 12,
72							scrollwheel: false,
73						center: latlng,
74			zoomControl: true,
75			zoomControlOptions: {
76			style: google.maps.ZoomControlStyle.SMALL,
77			position: google.maps.ControlPosition.RIGHT_CENTER
78			},
79			scaleControl: false,
80			scaleControlOptions: {
81			position: google.maps.ControlPosition.LEFT_CENTER
82			},
83			streetViewControl: false,
84			streetViewControlOptions: {
85			position: google.maps.ControlPosition.LEFT_CENTER
86			},
87			panControl: false,
88			panControlOptions: {
89			position: google.maps.ControlPosition.LEFT_CENTER
90			},
91			mapTypeControl: false,
92			mapTypeControlOptions: {
93			mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'qode_style'],
94			style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
95			position: google.maps.ControlPosition.LEFT_CENTER
96			},
97										mapTypeId: 'qode_style',
98						mapId: "SELECT_MAP_ID",
99			};
100			map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
101							map.mapTypes.set('qode_style', qodeMapType);
102						}
103			
104			function codeAddress(data) {
105			"use strict";
106			
107			if (data === '')
108			return;
109			
110			var contentString = '<div id="content"><div id="siteNotice"></div><div id="bodyContent"><p>'+data+'</p></div></div>';
111			var infowindow = new google.maps.InfoWindow({
112			content: contentString
113			});
114						var pinImg = document.createElement( 'img' );
115			pinImg.src = 'https://stockholm52.qodeinteractive.com/wp-content/themes/stockholm/img/pin.png';
116						geocoder.geocode( { 'address': data}, function(results, status) {
117			if (status === google.maps.GeocoderStatus.OK) {
118			map.setCenter(results[0].geometry.location);
119			var marker = new google.maps.marker.AdvancedMarkerElement({
120			map: map,
121			position: results[0].geometry.location,
122							content:  pinImg,
123						title: data['store_title']
124			});
125			google.maps.event.addListener(marker, 'click', function() {
126			infowindow.open(map,marker);
127			});
128			}
129			});
130			}
131			
132			var $j = jQuery.noConflict();
133			
134			$j( document ).on(
135			'qodefGoogleMapsCallbackEvent',
136			function () {
137			showContactMap();
138			}
139			);
140					
141		function showContactMap() {
142		"use strict";
143		
144		if($j("#map_canvas").length > 0 && typeof google === 'object'){
145		initialize();
146		codeAddress("");
147		codeAddress("");
148		codeAddress("");
149		codeAddress("");
150		codeAddress("");
151		}
152		}
153		
154		var no_ajax_pages = [];
155		var qode_root = 'https://thepucicpalace.com/';
156		var theme_root = 'https://thepucicpalace.com/wp-content/themes/stockholm';
157					var header_style_admin = "";
158				if(typeof no_ajax_obj !== 'undefined') {
159		no_ajax_pages = no_ajax_obj.no_ajax_pages;
160		}
161		
162		

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.