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