PageSourceSearch

https://www.iti.org.uk/preside/system/assets/extension/preside-ext…/_20cae0f3.emailListSignup.min.js

js iti.org.uk collected 2026-10-02 03:26:38 UTC 1,498 bytes, 2 lines download raw bytes

1(n=>{n(".newsletter-signup-form.form-ajax").on("submit",function(e){e.preventDefault();function a(){"undefined"!=typeof grecaptcha&&grecaptcha.reset()}var t=n(this);n(".alert",t).remove(),n(".form-group ",t).removeClass("has-error"),n.ajax({type:"POST",url:t.attr("action"),data:t.serialize(),success:function(e){var r;e.confirmationPageTitle&&e.confirmationPageTitle.length||e.confirmationPageContent&&e.confirmationPageContent.length?(t.empty(),r=n('<div class="newsletter-signup-confirmation"></div>'),e.confirmationPageTitle&&e.confirmationPageTitle.length&&r.append('<div class="alert alert-success">'+e.confirmationPageTitle+"</div>"),e.confirmationPageContent&&e.confirmationPageContent.length&&r.append('<div class="newsletter-signup-confirmation-content">'+e.confirmationPageContent+"</div>"),t.prepend(r)):e.successMessage&&e.successMessage.length?(t.empty(),t.prepend('<div class="alert alert-success">'+e.successMessage+"</div>")):(e.errorMessage&&e.errorMessage.length&&t.prepend('<div class="alert alert-danger">'+e.errorMessage+"</div>"),n.each(e.errorFields||{},function(e,r){var e=n('input[name="'+e+'"]',t),a=e.closest(".form-group"),e=e.closest(".form-field");a.addClass("has-error"),e.append('<div class="alert alert-danger alert-message error">'+r+"</div>")}),a())},error:function(e){t.prepend('<div class="alert alert-danger">'+i18n.translateResource("widgets.CrmEmailListSubscribe:email.send.error")+"</div>"),a()}})})})(jQuery);
2//# sourceMappingURL=_emailListSignup.min.map

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.