1 function bridgeQodeAjaxSubmitCommentForm(){ 2 "use strict"; 3 4 var options = { 5 success: function(){ 6 $j("#commentform textarea").val(""); 7 $j("#commentform .success p").text("Comment has been sent!"); 8 } 9 }; 10 11 $j('#commentform').submit(function() { 12 $j(this).find('input[type="submit"]').next('.success').remove(); 13 $j(this).find('input[type="submit"]').after('<div class="success"><p></p></div>'); 14 $j(this).ajaxSubmit(options); 15 return false; 16 }); 17 } 18 var header_height = 100; 19 var min_header_height_scroll = 57; 20 var min_header_height_fixed_hidden = 50; 21 var min_header_height_sticky = 60; 22 var scroll_amount_for_sticky = 85; 23 var content_line_height = 60; 24 var header_bottom_border_weight = 1; 25 var scroll_amount_for_fixed_hiding = 200; 26 var paspartu_width_init = 0.02; 27 var add_for_admin_bar = jQuery('body').hasClass('admin-bar') ? 32 : 0; 28 29 header_height = 120; 30 min_header_height_sticky = 80; 31 32 var logo_height = 130; // proya logo height 33 var logo_width = 280; // proya logo width 34 logo_height = 257; 35 logo_width = 300; 36 37 header_top_height = 33; 38 var loading_text; 39 loading_text = 'Loading new posts...'; 40 var finished_text; 41 finished_text = 'No more posts'; 42 43 var piechartcolor; 44 piechartcolor = "#1abc9c"; 45 piechartcolor = "#00392c"; 46 47 var geocoder; 48 var map; 49 50 function initialize() { 51 "use strict"; 52 // Create an array of styles. 53 var mapStyles = [ 54 { 55 stylers: [ 56 {hue: "#324156" }, 57 {saturation: "-60"}, 58 {lightness: "-20"}, 59 {gamma: 1.51} 60 ] 61 } 62 ]; 63 var qodeMapType = new google.maps.StyledMapType(mapStyles, 64 {name: "Qode 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 }; 97 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 98 map.mapTypes.set('qode_style', qodeMapType); 99 } 100 101 function codeAddress(data) { 102 "use strict"; 103 104 if (data === '') 105 return; 106 107 var contentString = '<div id="content">'+ 108 '<div id="siteNotice">'+ 109 '</div>'+ 110 '<div id="bodyContent">'+ 111 '<p>'+data+'</p>'+ 112 '</div>'+ 113 '</div>'; 114 var infowindow = new google.maps.InfoWindow({ 115 content: contentString 116 }); 117 geocoder.geocode( { 'address': data}, function(results, status) { 118 if (status === google.maps.GeocoderStatus.OK) { 119 map.setCenter(results[0].geometry.location); 120 var marker = new google.maps.Marker({ 121 map: map, 122 position: results[0].geometry.location, 123 icon: 'http://www.welgevonden.org/wp-content/themes/bridge/img/pin.png', 124 title: data['store_title'] 125 }); 126 google.maps.event.addListener(marker, 'click', function() { 127 infowindow.open(map,marker); 128 }); 129 //infowindow.open(map,marker); 130 } 131 }); 132 } 133 134 var $j = jQuery.noConflict(); 135 136 $j(document).ready(function() { 137 "use strict"; 138 139 showContactMap(); 140 }); 141 142 function showContactMap() { 143 "use strict"; 144 145 if($j("#map_canvas").length > 0){ 146 initialize(); 147 codeAddress(""); 148 codeAddress(""); 149 codeAddress(""); 150 codeAddress(""); 151 codeAddress(""); 152 } 153 } 154 155 var no_ajax_pages = []; 156 var qode_root = 'https://www.welgevonden.org/'; 157 var theme_root = 'https://www.welgevonden.org/wp-content/themes/bridge/'; 158 var header_style_admin = ""; 159 if(typeof no_ajax_obj !== 'undefined') { 160 no_ajax_pages = no_ajax_obj.no_ajax_pages; 161 } 162 163
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.