1jQuery(document).ready(function ($) { 2 $('#bio-analyzer-submit-btn').click(function (e) { 3 e.preventDefault(); 4 let name = $("#bio-analyzer-form input[name='user-name']").val(); 5 let email = $("#bio-analyzer-form input[name='user-email']").val(); 6 let bio = $("#bio-analyzer-form textarea[name='user-bio']").val(); 7 let nonce = $("#bio-analyzer-form input[name='nonce']").val(); 8 if (name === '' || email === '' || bio === '') { 9 $('#bio-analyzer-message').removeClass('success').addClass('error').html('All fields are required'); 10 return false; 11 } 12 $.ajax({ 13 type: 'POST', 14 url: bioAnalyzerAjax.ajaxurl, 15 beforeSend: function () { 16 $('#bio-analyzer-submit-btn').html("<img decoding='async' src='https://impressiongenius.ai/wp-content/uploads/2023/11/loader.gif' class='igai-loader'>").prop("disabled", true); 17 }, 18 data: { 19 action: 'bio_analyzer_save', 20 nonce: nonce, 21 name: name, 22 email: email, 23 bio: bio 24 }, 25 dataType: 'json', 26 success: function (response) { 27 if (response.status) { 28 $("#bio-analyzer-score-breakdown").html(response.html); 29 setTimeout(function () { 30 $('html, body').animate({ 31 scrollTop: $("#bio-analyzer-score-breakdown").offset().top 32 }, 1000); 33 }, 1000); 34 } else { 35 $('#bio-analyzer-message').removeClass('success').addClass('error').html(response.message); 36 } 37 return false; 38 }, 39 error: function (error) { 40 $('#bio-analyzer-message').removeClass('success').addClass('error').html(error); 41 return false; 42 }, 43 complete: function () { 44 $('#bio-analyzer-submit-btn').html('Analyze your BIO').prop("disabled", false); 45 } 46 }); 47 }); 48});
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.