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 = 90; 31 min_header_height_scroll = 90; 32 min_header_height_sticky = 150; 33 scroll_amount_for_sticky = 50; 34 scroll_amount_for_fixed_hiding = 10000; 35 var logo_height = 130; // stockholm logo height 36 var logo_width = 280;
36 // stockholm logo width 37 logo_height = 347; 38 logo_width = 975; 39 header_top_height = 0; 40 41 42 43 var loading_text; 44 loading_text = 'Loading new posts...'; 45 var finished_text; 46 finished_text = 'No more posts'; 47 48 var piechartcolor; 49 piechartcolor = "#e6ae48"; 50 piechartcolor = "#0a4875"; 51 52 var geocoder; 53 var map; 54 55 function initialize() { 56 "use strict"; 57 // Create an array of styles. 58 var mapStyles = [ 59 { 60 stylers: [ 61 {hue: "#393939" }, 62 {saturation: "-100"}, 63 {lightness: "-60"}, 64 {gamma: 1} 65 ] 66 } 67 ]; 68 var qodeMapType = new google.maps.StyledMapType(mapStyles, 69 {name: "Qode Map"}); 70 71 geocoder = new google.maps.Geocoder(); 72 var latlng = new google.maps.LatLng(-34.397, 150.644); 73 var myOptions = { 74 zoom: 7, 75 scrollwheel: false, 76 center: latlng, 77 zoomControl: true, 78 zoomControlOptions: { 79 style: google.maps.ZoomControlStyle.SMALL, 80 position: google.maps.ControlPosition.RIGHT_CENTER 81 }, 82 scaleControl: false, 83 scaleControlOptions: { 84 position: google.maps.ControlPosition.LEFT_CENTER 85 }, 86 streetViewControl: false, 87 streetViewControlOptions: { 88 position: google.maps.ControlPosition.LEFT_CENTER 89 }, 90 panControl: false, 91 panControlOptions: { 92 position: google.maps.ControlPosition.LEFT_CENTER 93 }, 94 mapTypeControl: false, 95 mapTypeControlOptions: { 96 mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'qode_style'], 97 style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, 98 position: google.maps.ControlPosition.LEFT_CENTER 99 }, 100 mapTypeId: google.maps.MapTypeId.ROADMAP 101 }; 102 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 103 } 104 105 function codeAddress(data) { 106 "use strict"; 107 108 if (data === '') 109 return; 110 111 var contentString = '<div id="content"><div id="siteNotice"></div><div id="bodyContent"><p>'+data+'</p></div></div>'; 112 var infowindow = new google.maps.InfoWindow({ 113 content: contentString 114 }); 115 geocoder.geocode( { 'address': data}, function(results, status) { 116 if (status === google.maps.GeocoderStatus.OK) { 117 map.setCenter(results[0].geometry.location); 118 var marker = new google.maps.Marker({ 119 map: map, 120 position: results[0].geometry.location, 121 icon: 'http://demo.select-themes.com/stockholm1/wp-content/uploads/2014/08/pin.png', 122 title: data['store_title'] 123 }); 124 google.maps.event.addListener(marker, 'click', function() { 125 infowindow.open(map,marker); 126 }); 127 } 128 }); 129 } 130 131 var $j = jQuery.noConflict(); 132 133 $j(document).ready(function() { 134 "use strict"; 135 136 showContactMap(); 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("1201 Commercial way Squamish V8B 0V1"); 148 codeAddress("21900 Westminster Hwy Richmond, BC, V6V 0A8 "); 149 } 150 } 151 152 var no_ajax_pages = []; 153 var qode_root = 'https://servusgrouplowermainland.com/'; 154 var theme_root = 'https://servusgrouplowermainland.com/wp-content/themes/stockholm'; 155 var header_style_admin = ""; 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.