PageSourceSearch

https://subirats.cat/wp-content/themes/bridge/js/default_dynamic.js?ver=1746025967

js subirats.cat collected 2026-10-02 13:04:28 UTC 3,974 bytes, 162 lines download raw bytes

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