1jQuery(document).ready(function (event) { 2 "use strict"; 3 4 jQuery('.ekit-mailChimpForm').on('submit', function (e) { 5 e.preventDefault(); 6 let mailForm = jQuery(this).serialize(), 7 listed = jQuery(this).attr('data-listed'), 8 message = jQuery(this).attr('data-success-message'), 9 messageBox = jQuery(this).children('.ekit-mail-message'); 10 11 jQuery.ajax({ 12 data: mailForm, 13 type: 'get', 14 url: ekit_site_url.siteurl + '/wp-json/elementskit/v1/widget/mailchimp/sendmail/?listed=' + listed, 15 success: function (response) { 16 messageBox.show(); 17 if (response.error.length > 0) { 18 messageBox.removeClass('error').html('Found error : ' + response.error).addClass('error'); 19 return; 20 } 21 var obj = JSON.parse(response.success.body); 22 if (obj.status == 'subscribed') { 23 messageBox.removeClass('success').html(message).addClass('success'); 24 return; 25 } 26 messageBox.html(obj.title); 27 } 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.