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 var logo_height = 130; // stockholm logo height 31 var logo_width = 280; // stockholm logo width 32 logo_height = 156; 33 logo_width = 112; 34 header_top_height = 0; 35 36 37 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 = "#e6ae48"; 45 piechartcolor = "#af986e"; 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: "#393939" }, 57 {saturation: "-100"}, 58 {lightness: "-60"}, 59 {gamma: 1} 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"><div id="siteNotice"></div><div id="bodyContent"><p>'+data+'</p></div></div>'; 108 var infowindow = new google.maps.InfoWindow({ 109 content: contentString 110 }); 111 geocoder.geocode( { 'address': data}, function(results, status) { 112 if (status === google.maps.GeocoderStatus.OK) { 113 map.setCenter(results[0].geometry.location); 114 var marker = new google.maps.Marker({ 115 map: map, 116 position: results[0].geometry.location, 117 icon: 'https://dev.vinous.gr/jima/wp-content/themes/stockholm/img/pin.png', 118 title: data['store_title'] 119 }); 120 google.maps.event.addListener(marker, 'click', function() { 121 infowindow.open(map,marker); 122 }); 123 } 124 }); 125 } 126 127 var $j = jQuery.noConflict(); 128 129 $j(document).ready(function() { 130 "use strict"; 131 132 showContactMap(); 133 }); 134 135 function showContactMap() { 136 "use strict"; 137 138 if($j("#map_canvas").length > 0 && typeof google === 'object'){ 139 initialize(); 140 codeAddress(""); 141 codeAddress(""); 142 codeAddress(""); 143 codeAddress(""); 144 codeAddress(""); 145 } 146 } 147 148 var no_ajax_pages = []; 149 var qode_root = 'https://dev.vinous.gr/jima/'; 150 var theme_root = 'https://dev.vinous.gr/jima/wp-content/themes/stockholm'; 151 var header_style_admin = ""; 152 if(typeof no_ajax_obj !== 'undefined') { 153 no_ajax_pages = no_ajax_obj.no_ajax_pages; 154 } 155 156
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.