1$(document).ready(function () { 2 $("#joinform, #joinform-bottom").submit(function (e) { 3 e.preventDefault(); 4 5 var form = $(this); 6 var formCollection = form.serialize(); 7 8 var trackCategory = 'Marketing-page'; 9 var trackAction = 'Listing-submit'; 10 var pid = form.attr('attr-pid'); 11 window.TrackGoogleAnalyticsEvent(pid, trackCategory, trackAction, ''); 12 13 let btnSubmit = $('button[type=submit]',form); 14 btnSubmit.html('<i class="fas fa-spinner fa-spin"></i> Sending...'); 15 16 $.post(form.attr('action'), formCollection, function (data) { 17 if (data && data.success === true) { 18 window.location.href = data.redirectUrl; 19 } 20 else { 21 var msg = 'Something went wrong. Please check your input and try again.'; 22 if (data && data.success === false && data.message) { 23 msg = data.message; 24 } 25 26 let alertEl = $('<div class="alert alert-danger">' + msg + '</div>'); 27 alertEl.prependTo(form).delay(7000).fadeOut(400).delay(500).queue(function () { $(this).remove(); }); 28 } 29 }) 30 .always(function () { 31 btnSubmit.html('Send'); 32 }); 33 34 return false; 35 }); 36});
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.