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 = 90; 20var min_header_height = 45; 21var scroll_amount_for_sticky = 90; 22 23var logo_height = 51; // elision logo height 24var logo_width = 177; // elision logo width 25 logo_height = 26; 26 logo_width = 161; 27 28 29/* 30** Init placeholder for search widget 31*/ 32function addPlaceholderSearchWidget(){ 33 "use strict"; 34 35 $j('.widget.widget_search form input:text, .header_top .searchform input:text').each( 36 function(i,el) { 37 if (!el.value || el.value === '') { 38 el.placeholder = 'Search Here'; 39 } 40 }); 41} 42 43 44var geocoder; 45var map; 46 47function initialize() { 48 "use strict"; 49 // Create an array of styles. 50 var mapStyles = [ 51 { 52 stylers: [ 53 {hue: "#324156" }, 54 {saturation: -60}, 55 {lightness: -20}, 56 {gamma: 1.51} 57 ] 58 } 59 ]; 60 var qodeMapType = new google.maps.StyledMapType(mapStyles, 61 {name: "Qode Map"}); 62 63 geocoder = new google.maps.Geocoder(); 64 var latlng = new google.maps.LatLng(-34.397, 150.644); 65 var myOptions = { 66 zoom: 12, 67 scrollwheel: false, 68 center: latlng, 69 zoomControl: true, 70 zoomControlOptions: { 71 style: google.maps.ZoomControlStyle.SMALL, 72 position: google.maps.ControlPosition.RIGHT_CENTER 73 }, 74 scaleControl: false, 75 scaleControlOptions: { 76 position: google.maps.ControlPosition.LEFT_CENTER 77 }, 78 streetViewControl: false, 79 streetViewControlOptions: { 80 position: google.maps.ControlPosition.LEFT_CENTER 81 }, 82 panControl: false, 83 panControlOptions: { 84 position: google.maps.ControlPosition.LEFT_CENTER 85 }, 86 mapTypeControl: false, 87 mapTypeControlOptions: { 88 mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'qode_style'], 89 style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, 90 position: google.maps.ControlPosition.LEFT_CENTER 91 }, 92 mapTypeId: google.maps.MapTypeId.ROADMAP 93 }; 94 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 95 } 96 97function codeAddress(data) { 98 "use strict"; 99 100 if (data === '') 101 return; 102 103 var contentString = '<div id="content">'+ 104 '<div id="siteNotice">'+ 105 '</div>'+ 106 '<div id="bodyContent">'+ 107 '<p>'+data+'</p>'+ 108 '</div>'+ 109 '</div>'; 110 var infowindow = new google.maps.InfoWindow({ 111 content: contentString 112 }); 113 geocoder.geocode( { 'address': data}, function(results, status) { 114 if (status === google.maps.GeocoderStatus.OK) { 115 map.setCenter(results[0].geometry.location); 116 var marker = new google.maps.Marker({ 117 map: map, 118 position: results[0].geometry.location, 119 icon: 'http://demo.qodeinteractive.com/elision/wp-content/themes/elision/img/pin.png', 120 title: data['store_title'] 121 }); 122 google.maps.event.addListener(marker, 'click', function() { 123 infowindow.open(map,marker); 124 }); 125 //infowindow.open(map,marker); 126 } 127 }); 128} 129 130var $j = jQuery.noConflict(); 131 132$j(document).ready(function() { 133 "use strict"; 134 135 showContactMap(); 136}); 137 138function showContactMap() { 139 "use strict"; 140 141 if($j("#map_canvas").length > 0){ 142 initialize(); 143 codeAddress(""); 144 codeAddress(""); 145 codeAddress(""); 146 codeAddress(""); 147 codeAddress("San Francisco, USA"); 148 } 149} 150 151var no_ajax_pages = []; 152var root = 'https://philipbailey.com/'; 153var theme_root = 'https://philipbailey.com/wp-content/themes/pb/'; 154var parallax_speed = 0.5; 155var header_style_admin = "dark"; 156 157 158 no_ajax_pages.push('');
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.