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 = 120; 30 min_header_height_scroll = 80; 31 min_header_height_sticky = 120; 32 scroll_amount_for_sticky = 90; 33 min_header_height_fixed_hidden = 50; 34 35var logo_height = 130; // proya logo height 36var logo_width = 280; // proya logo width 37 logo_height = 84; 38 logo_width = 360; 39 40 header_top_height = 33; 41var loading_text; 42loading_text = 'Loading new posts...'; 43var finished_text; 44finished_text = 'No more posts'; 45 46var piechartcolor; 47piechartcolor = "#1abc9c"; 48 piechartcolor = "#1b181a"; 49 50var geocoder; 51var map; 52 53function initialize() { 54 "use strict"; 55 // Create an array of styles. 56 var mapStyles = [ 57 { 58 stylers: [ 59 {hue: "#002d47" }, 60 {saturation: "-75"}, 61 {lightness: "5"}, 62 {gamma: 1.51} 63 ] 64 } 65 ]; 66 var qodeMapType = new google.maps.StyledMapType(mapStyles, 67 {name: "Qode Map"}); 68 69 geocoder = new google.maps.Geocoder(); 70 var latlng = new google.maps.LatLng(-34.397, 150.644); 71 var myOptions = { 72 zoom: 13, 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 }; 99 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 100 map.mapTypes.set('qode_style', qodeMapType); 101 } 102 103function codeAddress(data) { 104 "use strict"; 105 106 if (data === '') 107 return; 108 109 var contentString = '<div id="content">'+ 110 '<div id="siteNotice">'+ 111 '</div>'+ 112 '<div id="bodyContent">'+ 113 '<p>'+data+'</p>'+ 114 '</div>'+ 115 '</div>'; 116 var infowindow = new google.maps.InfoWindow({ 117 content: contentString 118 }); 119 geocoder.geocode( { 'address': data}, function(results, status) { 120 if (status === google.maps.GeocoderStatus.OK) { 121 map.setCenter(results[0].geometry.location); 122 var marker = new google.maps.Marker({ 123 map: map, 124 position: results[0].geometry.location, 125 icon: 'https://www.fairview.co.za/wp-content/uploads/2016/10/Map-Pointer.png', 126 title: data['store_title'] 127 }); 128 google.maps.event.addListener(marker, 'click', function() { 129 infowindow.open(map,marker); 130 }); 131 //infowindow.open(map,marker); 132 } 133 }); 134} 135 136var $j = jQuery.noConflict(); 137 138$j(document).ready(function() { 139 "use strict"; 140 141 showContactMap(); 142}); 143 144function showContactMap() { 145 "use strict"; 146 147 if($j("#map_canvas").length > 0){ 148 initialize(); 149 codeAddress(""); 150 codeAddress(""); 151 codeAddress(""); 152 codeAddress(""); 153 codeAddress("-33.77167392572422, 18.924728123251732"); 154 } 155} 156 157var no_ajax_pages = []; 158var qode_root = 'https://www.fairview.co.za/'; 159var theme_root = 'https://www.fairview.co.za/wp-content/themes/Bridge/'; 160var header_style_admin = ""; 161if(typeof no_ajax_obj !== 'undefined') { 162 no_ajax_pages = no_ajax_obj.no_ajax_pages; 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.