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 search_header_height = 50; 29var add_for_admin_bar = 0; 30var logo_height = 130; // stockholm logo height 31var logo_width = 280; // stockholm logo width 32 logo_height = 190; 33 logo_width = 635; 34 35 header_top_height = 0; 36 37 38 39var loading_text; 40loading_text = 'Loading new posts...'; 41var finished_text; 42finished_text = 'No more posts'; 43 44var piechartcolor; 45piechartcolor = "#e6ae48"; 46 piechartcolor = "#a7a6a6"; 47 48var geocoder; 49var map; 50 51function initialize() { 52 "use strict"; 53 // Create an array of styles. 54 var mapStyles = [ 55 { 56 stylers: [ 57 {hue: "#a7a6a6" }, 58 {saturation: "-100"}, 59 {lightness: "-10"}, 60 {gamma: 1} 61 ] 62 } 63 ]; 64 var qodeMapType = new google.maps.StyledMapType(mapStyles, 65 {name: "Qode Map"}); 66 67 geocoder = new google.maps.Geocoder(); 68 var latlng = new google.maps.LatLng(-34.397, 150.644); 69 var myOptions = { 70 zoom: 16, 71 scrollwheel: false, 72 center: latlng, 73 zoomControl: true, 74 zoomControlOptions: { 75 style: google.maps.ZoomControlStyle.SMALL, 76 position: google.maps.ControlPosition.RIGHT_CENTER 77 }, 78 scaleControl: false, 79 scaleControlOptions: { 80 position: google.maps.ControlPosition.LEFT_CENTER 81 }, 82 streetViewControl: false, 83 streetViewControlOptions: { 84 position: google.maps.ControlPosition.LEFT_CENTER 85 }, 86 panControl: false, 87 panControlOptions: { 88 position: google.maps.ControlPosition.LEFT_CENTER 89 }, 90 mapTypeControl: false, 91 mapTypeControlOptions: { 92 mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'qode_style'], 93 style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, 94 position: google.maps.ControlPosition.LEFT_CENTER 95 }, 96 mapTypeId: 'qode_style' 97 }; 98 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 99 map.mapTypes.set('qode_style', qodeMapType); 100 } 101 102function codeAddress(data) { 103 "use strict"; 104 105 if (data === '') 106 return; 107 108 var contentString = '<div id="content">'+ 109 '<div id="siteNotice">'+ 110 '</div>'+ 111 '<div id="bodyContent">'+ 112 '<p>'+data+'</p>'+ 113 '</div>'+ 114 '</div>'; 115 var infowindow = new google.maps.InfoWindow({ 116 content: contentString 117 }); 118 geocoder.geocode( { 'address': data}, function(results, status) { 119 if (status === google.maps.GeocoderStatus.OK) { 120 map.setCenter(results[0].geometry.location); 121 var marker = new google.maps.Marker({ 122 map: map, 123 position: results[0].geometry.location, 124 icon: 'http://demo.select-themes.com/stockholm2/wp-content/uploads/2014/09/pin2.png', 125 title: data['store_title'] 126 }); 127 google.maps.event.addListener(marker, 'click', function() { 128 infowindow.open(map,marker); 129 }); 130 //infowindow.open(map,marker); 131 } 132 }); 133} 134 135var $j = jQuery.noConflict(); 136 137$j(document).ready(function() { 138 "use strict"; 139 140 showContactMap(); 141}); 142 143function showContactMap() { 144 "use strict"; 145 146 if($j("#map_canvas").length > 0){ 147 initialize(); 148 codeAddress(""); 149 codeAddress(""); 150 codeAddress(""); 151 codeAddress(""); 152 codeAddress("60 Ehad Ha'am st. Tel-Aviv Israel"); 153 } 154} 155 156var no_ajax_pages = []; 157var qode_root = 'http://www.nogagallery.com/'; 158var theme_root = 'http://www.nogagallery.com/wp-content/themes/noga/'; 159var header_style_admin = ""; 160if(typeof no_ajax_obj !== 'undefined') { 161 no_ajax_pages = no_ajax_obj.no_ajax_pages; 162}
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.