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 = 60; 30 min_header_height_scroll = 100; 31 min_header_height_sticky = 80; 32 scroll_amount_for_sticky = 1200; 33 paspartu_width_init = 0.1; 34 35var logo_height = 130; // proya logo height 36var logo_width = 280; // proya logo width 37 logo_height = 60; 38 logo_width = 450; 39 40 header_top_height = 0; 41var loading_text; 42loading_text = 'Loading new posts...'; 43var finished_text; 44finished_text = 'No more posts'; 45 46var piechartcolor; 47piechartcolor = "#1abc9c"; 48 piechartcolor = "#17202a"; 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: "#1abc9c" }, 60 {saturation: "-60"}, 61 {lightness: "-20"}, 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: 12, 73 scrollwheel: false, 74 center: latlng, 75 zoomControl: true, 76 zoomControlOptions: { 77 style: google.maps.ZoomControlStyle.SMALL, 78 position: google.maps.ControlPosition.RIGHT_CENTER 79 }, 80 scaleControl: false, 81 scaleControlOptions: { 82 position: google.maps.ControlPosition.LEFT_CENTER 83 }, 84 streetViewControl: false, 85 streetViewControlOptions: { 86 position: google.maps.ControlPosition.LEFT_CENTER 87 }, 88 panControl: false, 89 panControlOptions: { 90 position: google.maps.ControlPosition.LEFT_CENTER 91 }, 92 mapTypeControl: false, 93 mapTypeControlOptions: { 94 mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'qode_style'], 95 style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, 96 position: google.maps.ControlPosition.LEFT_CENTER 97 }, 98 mapTypeId: 'qode_style' 99 }; 100 map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); 101 map.mapTypes.set('qode_style', qodeMapType); 102 } 103 104function codeAddress(data) { 105 "use strict"; 106 107 if (data === '') 108 return; 109 110 var contentString = '<div id="content">'+ 111 '<div id="siteNotice">'+ 112 '</div>'+ 113 '<div id="bodyContent">'+ 114 '<p>'+data+'</p>'+ 115 '</div>'+ 116 '</div>'; 117 var infowindow = new google.maps.InfoWindow({ 118 content: contentString 119 }); 120 geocoder.geocode( { 'address': data}, function(results, status) { 121 if (status === google.maps.GeocoderStatus.OK) { 122 map.setCenter(results[0].geometry.location); 123 var marker = new google.maps.Marker({ 124 map: map, 125 position: results[0].geometry.location, 126 icon: 'http://dev.queerscreen.org.au/wp-content/uploads/2017/09/pin.png', 127 title: data['store_title'] 128 }); 129 google.maps.event.addListener(marker, 'click', function() { 130 infowindow.open(map,marker); 131 }); 132 //infowindow.open(map,marker); 133 } 134 }); 135} 136 137var $j = jQuery.noConflict(); 138 139$j(document).ready(function() { 140 "use strict"; 141 142 showContactMap(); 143}); 144 145function showContactMap() { 146 "use strict"; 147 148 if($j("#map_canvas").length > 0){ 149 initialize(); 150 codeAddress(""); 151 codeAddress(""); 152 codeAddress(""); 153 codeAddress(""); 154 codeAddress("Suite 313/410 Elizabeth Street, Surry Hills, NSW, 2010"); 155 } 156} 157 158var no_ajax_pages = []; 159var qode_root = 'http://dev.queerscreen.org.au/'; 160var theme_root = 'http://dev.queerscreen.org.au/wp-content/themes/bridge/'; 161var header_style_admin = ""; 162if(typeof no_ajax_obj !== 'undefined') { 163 no_ajax_pages = no_ajax_obj.no_ajax_pages; 164}
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.