1$(document).ready(function() { 2 3 $("#contactForm").on("submit", function(e) { 4 5 e.preventDefault(); 6 7 const form = this; 8 const data = $(this).serialize(); 9 10 $.ajax({ 11 type:"POST", 12 url:"api/send_message", 13 data:data, 14 dataType:"json", 15 beforeSend:function(){ 16 $(form).find('[type=submit]').prop("disabled", true); 17 $(form).find('.response').html(''); 18 }, 19 success:function(r) { 20 $(form).find('[type=submit]').prop("disabled", false); 21 if(r.success) { 22 $(form).trigger('reset'); 23 $(form).find('.response').html('<div class="alert alert-success">'+r.success+'</div>'); 24 } else if (r.error) { 25 $(form).find('[type=submit]').prop("disabled", false); 26 $(form).find('.response').html('<div class="alert alert-danger">'+r.error+'</div>'); 27 } 28 } 29 }) 30 31 }); 32 33});
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.