PageSourceSearch

https://coachnoelle.com/wp-content/plugins/freesoul-builder/assets-3/js/dist/newsletter-subscription.min.js

js coachnoelle.com collected 2026-10-04 14:12:18 UTC 4,453 bytes, 1 lines download raw bytes

1function eos_correct_optins(e){jQuery(".eos-newsletter-optin-wrp").each(function(){var s=jQuery(this),r=s.find(".eos-mc-col"),t=0,a=0;r.each(function(e,s){a=jQuery(this).height(),t=a>t?a:t}),r.each(function(){var r=jQuery(this),a=s.hasClass("optin-boxed")?350:700;if(s.width()>a){if(s.find(".newsletter-text-wrapper").hasClass("eosb_col-sm-12")){r.css("width","100%").css("margin-bottom","16px")}else{var o=parseInt(r.attr("class").split("eosb_col-sm-")[1].split(" ")[0]);""!==r.attr("data-original-margin")&&0!==o&&"resize"===e&&r.css("margin",r.attr("data-original-margin")).css("width",100/(12/o)+"%");var i=jQuery(window).width()>a&&!r.hasClass("eosb_col-sm-12")?(t-r.height())/2+"px 0":"16px 0";r.css("margin",i),"loading"===e&&r.attr("data-original-margin",i).attr("data-original-width",r.width())}}else{r.css("width","100%").css("margin-bottom","16px")}})})}jQuery(document).on("popupOpen",function(){eos_correct_optins("popup_open")}),window.addEventListener("resize",function(e){eos_correct_optins("resize")}),jQuery(document).ready(function(){eos_correct_optins("loading"),jQuery(".eos-mc-subscribe").on("click",function(){var e={},s=jQuery(this),r=s.css("background-image"),t=s.closest(".eos-newsletter-optin-wrp");!(t.closest(".popup-content").length>0)||t.closest(".popup-content").attr("data-popup-id"),t.addClass("eos-processing"),s.css("background-image","url("+s.attr("data-ajax-loader")+")");t.find(".newsletter-failed"),t.find(".newsletter-success");var a=t.find(".mce-FNAME"),o=t.find(".mce-EMAIL"),i=t.find(".eos-newsletter-privacy_agree-checkbox"),n=t.find(".eos-newsletter-terms_agree-checkbox"),c=t.closest(".popup-content").length>0?t.closest(".popup-content").attr("data-popup-id"):"none";e.page_id=jQuery("body").attr("data-post-id"),e.popup_id=c,e.url=window.location.href,e.fname=a.val(),e.email=o.val(),e.id=t.attr("data-list-id"),e.privacy_agreement=i.length>0?i.is(":checked"):"false",e.terms_agreement=n.length>0?n.is(":checked"):"false";var d=!1;if(""==a.val()||a.val()===a.attr("data-name-caption")?(a.addClass("eos-error"),d=!0):a.removeClass("eos-error"),""==o.val()?(o.addClass("eos-error"),d=!0):o.removeClass("eos-error"),i.length>0&&(i.is(":checked")?t.find(".eos-privacy_agreement-error").addClass("eos-hidden"):(t.find(".eos-privacy_agreement-error").removeClass("eos-hidden"),d=!0)),n.length>0&&(n.is(":checked")?t.find(".eos-terms_agreement-error").addClass("eos-hidden"):(t.find(".eos-terms_agreement-error").removeClass("eos-hidden"),d=!0)),1==d){return t.removeClass("eos-processing"),s.css("background-image",r),!1}bw=s.children("span").outerWidth();var l=JSON.stringify(e);if('delegate_mc4wp'===s[0].dataset.mc4wp){jQuery('#'+s[0].dataset.mc4wp_form+' [type="submit"]').trigger('click');return false}return jQuery.ajax({type:"POST",url:s.attr("data-ajax-url"),data:{mailchimp_data:l,action:"eos_subscribe_mailchimp"},success:function(e){switch(e.substring(0,10)){case "eos_failed":var a=t.prev();t.fadeOut();var i=e.replace(/[0-9]/g,"").replace("eos_failed","");return a.removeClass("eos-hidden").text(i),jQuery("html, body").animate({scrollTop:a.offset().top-20-(jQuery("#site-navigation").outerHeight()||0)},1e3),t.removeClass("eos-processing"),s.css("background-image",r),!0;case "eos_milnok":return o.addClass("eos-error"),s.css("visibility","visible"),t.removeClass("eos-processing"),void s.css("background-image",r);default:if("false"===t.attr("data-redirect")){a=t.prev().prev();return t.fadeOut(),a.removeClass("eos-hidden").removeAttr("hidden").text(e.replace(/[0-9]/g,"")),jQuery("html, body").animate({scrollTop:a.offset().top-20-(jQuery("#site-navigation").outerHeight()||0)},1e3),t.removeClass("eos-processing"),s.css("background-image",r),!0}return document.location.href=t.attr("data-redirect"),!1}}}),!1});if('undefined'!==typeof(mc4wp)&&'undefined'!==typeof(mc4wp_scroll_to_error)&&mc4wp_scroll_to_error){mc4wp.forms.on('success',function(form,data){var id=jQuery('.mc4wp-form-'+form.id).attr('id');if(id){var msg=jQuery('#'+id+'-success');msg.removeClass('eos-hidden').text(mc4wp_succ_msg);jQuery("html, body").animate({scrollTop:msg.offset().top-20-(jQuery("#site-navigation").outerHeight()||0)},1e3)}});
1mc4wp.forms.on('error',function(form,data){var id=jQuery('.mc4wp-form-'+form.id).attr('id');if(id){var msg=jQuery('#'+id+'-failed');msg.removeClass('eos-hidden');jQuery("html, body").animate({scrollTop:msg.offset().top-20-(jQuery("#site-navigation").outerHeight()||0)},1e3)}})}});

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.