1jQuery(document).ready(function($){ 2 3 // Property Slider For Archive Pages 4 $(".property-slider").each(function(){ 5 if( $(this).find("li").length > 1 ){ 6 $(this).bxSlider({ auto:false, video:true, useCSS:false, pager:'', autoHover:true, adaptiveHeight:true }); 7 } 8 }); 9 10 // Property Slider For Single Pages 11 if( $(".property-gallery").find("li").length > 1 ) { 12 $(".property-gallery").bxSlider({ auto:false, video:true, useCSS:false, pagerCustom: '#bx-pager', autoHover:true, adaptiveHeight:true }); 13 } 14 15 // Enquiry Form Ajax Process 16 $('form[name="property-enquiry"]').on('submit', function () { 17 18 var $this = $(this); 19 var $txtfname = $this.find('#txtfname').val(), 20 $txtlname = $this.find('#txtlname').val(), 21 $txtemail = $this.find('#txtemail').val(), 22 $txtphone = $this.find('#txtphone').val(), 23 $txtmessage = $this.find('#txtmessage').val(), 24 $txtadminemail = $this.find('#txtadminemail').val(), 25 $txtenquiryemails = $this.find('#txtenquiryemails').val(), 26 $txtproperty = $this.find('#txtproperty').val(), 27 $txtpropertylink = $this.find('#txtpropertylink').val(); 28 29 $.ajax({ 30 type: "POST", 31 url: mytheme_urls.ajaxurl, 32 data: 33 { 34 action: 'dttheme_property_enquiry_form', 35 txtfname: $txtfname, 36 txtlname: $txtlname, 37 txtemail: $txtemail, 38 txtphone: $txtphone, 39 txtmessage: $txtmessage, 40 txtadminemail: $txtadminemail, 41 txtenquiryemails: $txtenquiryemails, 42 txtproperty: $txtproperty, 43 txtpropertylink: $txtpropertylink 44 }, 45 success: function (response) { 46 $this.parent().find('#ajax_property_enquiry_msg').html(response); 47 $this.parent().find('#ajax_property_enquiry_msg').slideDown('slow'); 48 if (response.match('success') != null) $this.slideUp('slow'); 49 } 50 }); 51 52 return false; 53 54 }); 55 56 // Property Map Section 57 if($("div#property-gmap").length ) { 58 59 var $title = $("div#property-gmap").data("title"); 60 61 var $lat = $("div#property-gmap").data("lat"); 62 $lat = ( $.trim($lat).length > 0 ) ? $lat : "37.80544394934272"; 63 64 var $lng = $("div#property-gmap").data("lng"); 65 $lng = ( $.trim($lng).length > 0 ) ? $lng : "144.964599609375"; 66 67 var $icon = $("div#property-gmap").data("icon"); 68 69 var myLatlng = new google.maps.LatLng($lat,$lng); 70 var mapOptions = { 71 zoom: 8, 72 center: myLatlng, 73 mapTypeId: google.maps.MapTypeId.ROADMAP 74 } 75 76 var map = new google.maps.Map(document.getElementById('property-gmap'), mapOptions); 77 var marker = new google.maps.Marker({ 78 position: myLatlng, 79 map: map, 80 title : $title, 81 icon: $icon 82 }); 83 84 var infowindow = new google.maps.InfoWindow({ 85 content: $title+"<br>"+$("div#property-gmap").data("address") 86 }); 87 88 google.maps.event.addListener(marker, 'click', function() { 89 infowindow.open(map,marker); 90 }); 91 } 92 93});
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.