1jQuery(document).ready(function ($) { 2 $(document).on('submit','.mc4wp-form',function (e){ 3 e.preventDefault(); 4 5 var form = $(this), 6 formData = form.serialize(); 7 8 form.addClass('loading'); 9 10 // Send the AJAX request 11 $.ajax({ 12 url: form.attr('action'), 13 type: 'POST', 14 data: formData, 15 success: function(data) { 16 var $html = $(data), 17 $message = $html.find('.mc4wp-response').html(); 18 $('body').append('<div class="penciwp-notice-form"><div class="penciwp-notice-form-inner"><a class="pcwp-close-btn"></a>'+$message+'</div></div>'); 19 }, 20 error: function(xhr, status, error) { 21 // Handle any errors 22 console.error('Error:', error); 23 alert('There was an error with the submission.'); 24 }, 25 complete: function (){ 26 form.removeClass('loading'); 27 } 28 }); 29 }); 30 $(document).on('click','.pcwp-close-btn',function (e){ 31 e.preventDefault(); 32 $('.penciwp-notice-form').remove(); 33 }); 34});
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.