PageSourceSearch

https://twoheartspetlosscenter.com/wp-content/plugins/divi-testimo…/el-testimonial-form.min.js?ver=2.4.2

js twoheartspetlosscenter.com collected 2026-10-04 13:25:17 UTC 3,183 bytes, 1 lines download raw bytes

1function validateCaptcha(e,a,t){return t===e+a&&""!==t}function validateEmail(e){return!!/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e)}function validateScript(e){return!/<script>/i.test(e)}function validateHTML(e){return!/</.test(e)}jQuery(window).load(function(){jQuery(".el_md_testimonial_extended_form .module-radio-field").on("click",function(){!0===jQuery(this).prop("checked")&&jQuery(this).parents(".radio-field-container").find(".module-radio-value-field").val(jQuery(this).val())}),jQuery("body").on("submit",".el_testimonial_form_wrapper",function(e){e.preventDefault(),e.stopImmediatePropagation();var a=jQuery(this),t=a.parents(".el_md_testimonial_extended_form"),i=a.data("form-number"),r=0,d=[],n=[],o="",l=new FormData;t.fadeTo("slow",.2,function(){if(""!==i&&l.append("form-number",i),t.find(".field-error").each(function(){jQuery(this).removeClass("field-error")}),t.find(".module-form-captcha").length>0){var e=parseInt(t.find(".module-form-captcha").data("first-digit")),a=parseInt(t.find(".module-form-captcha").data("second-digit")),f=parseInt(t.find(".module-form-captcha").val());""!==f&&""!==e&&""!==a&&!0===validateCaptcha(e,a,f)?l.append("captcha",f):""!==f&&""!==e&&""!==a&&!1===validateCaptcha(e,a,f)&&(e=Math.floor(20*Math.random()+1),a=Math.floor(20*Math.random()+1),t.find(".el-md-captcha-values").html(e+" + "+a+" ="),t.find(".module-form-captcha").data("first-digit",e),t.find(".module-form-captcha").data("second-digit",a),t.find(".module-form-captcha").addClass("field-error"),r=1)}if(t.find(".module-input-field").each(function(){var e=jQuery(this).val(),a=jQuery(this).data("required");""==e&&"required"==a||0==validateHTML(e)||0==validateScript(e)?(jQuery(this).addClass("field-error"),jQuery(this).parents(".el-module-form-field-container").find("label").length>0&&jQuery(this).parents(".el-module-form-field-container").find("label").addClass("field-error"),r=1):jQuery(this).hasClass("module-email-field")&&0==validateEmail(e)?(jQuery(this).addClass("field-error"),jQuery(this).parents(".el-module-form-field-container").find("label").length>0&&jQuery(this).parents(".el-module-form-field-container").find("label").addClass("field-error"),r=1):jQuery(this).hasClass("module-file-field")?(o=jQuery(this)[0].files[0],"required"!=a||void 0!==o&&""!=o||(jQuery(this).parents(".el-module-form-field-container").find("label").addClass("field-error"),r=1)):(d.push(jQuery(this).attr("name")),n.push(e))}),1===r)return t.fadeTo("slow",1),!1;void 0===o&&""==o||l.append("file",o),l.append("values",n.join("##")),l.append("parameters",d.join("##")),l.append("nonce-el-md-testimonial-extended-form",t.find("#nonce-el-md-testimonial-extended-form").val());jQuery.ajax({type:"POST",url:jQuery(this).attr("action"),data:l,processData:!1,contentType:!1,success:function(e){var a=jQuery(e).find(".el_md_testimonial_extended_form .el-module-notification");t.find(".et_pb_module_inner").html(a),t.fadeTo("slow",1),jQuery("html, body").animate({scrollTop:t.offset().top-(jQuery("#main-header").innerHeight()+jQuery("#top-header").innerHeight()+50)})},error:function(){alert("Oops!! Something went wrong!! Try again!")}})})})});

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.