1 // ------- Mail Send ajax 2 3 $(document).ready(function() { 4 var form = $('#myForm'); // contact form 5 var submit = $('.submit-btn'); // submit button 6 var alert = $('.alert-msg'); // alert div for show alert message 7 8 // form submit event 9 form.on('submit', function(e) { 10 e.preventDefault(); // prevent default form submit 11 12 $.ajax({ 13 url: 'mail.php', // form action url 14 type: 'POST', // form submit method get/post 15 dataType: 'html', // request type html/json/xml 16 data: form.serialize(), // serialize form data 17 beforeSend: function() { 18 alert.fadeOut(); 19 submit.html('Sending....'); // change submit button text 20 }, 21 success: function(data) { 22 alert.html(data).fadeIn(); // fade in response data 23 form.trigger('reset'); // reset form 24 submit.attr("style", "display: none !important");; // reset submit button text 25 }, 26 error: function(e) { 27 console.log(e) 28 } 29 }); 30 }); 31 });
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.