1/* 2 3[Main Script] 4 5Project: Frutin 6Version: 1.0 7Author : Themeholy 8 9*/ 10;(function($){ 11 "use strict"; 12/* ------------------------------------------------------------------------- * 13 14 * Mail Chimp ajax 15 16 * ------------------------------------------------------------------------- */ 17 18 var $widgetsubscribeForm = $('form.footer-newsletter'); 19 20 // Subscribe Shortcode MailChimp ajax 21 $widgetsubscribeForm.on('submit',function(e){ 22 let $emailAdd = $(this).find('input[type="email"]').val(); 23 $.ajax({ 24 type: 'POST', 25 url: frutinajax.action_url, 26 data:{ 27 sectsubscribe_email: $emailAdd, 28 security: frutinajax.nonce, 29 action: 'frutin_subscribe_ajax' 30 }, 31 32 success: function(data){ 33 $('form.footer-newsletter input[type="email"]').val(''); 34 $('.footer-newsletter').append(data); 35 }, 36 37 error: function(){ 38 $('.footer-newsletter').append('<div class="alert alert-danger mt-2" role="alert">Something Goes Wrong</div>'); 39 40 } 41 }); 42 e.preventDefault(); 43 }); 44 45})(jQuery);
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.