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