PageSourceSearch

https://mmerevise.co.uk/app/plugins/mme-core/dist/assets/js/init/init_contact.js?ver=88f3e915e541

js mmerevise.co.uk collected 2026-10-01 15:21:47 UTC 1,816 bytes, 3 lines download raw bytes

1(function($){
2(()=>{jQuery(".contact-form").each(function(){let n=jQuery(this),o=n.find('input[name="phoneNumber"]'),g=/^(?:\+?\d{11,13}|\d{11})$/,m=n.find(".success-message"),r=n.find(".error-message");r.addClass("mt-4"),o.attr("maxlength",14);let l=t=>g.test(t),i=t=>{r.find("span").html(t),r.fadeIn(300)},b=t=>{m.find("span").html(t),m.fadeIn(300)},f=()=>{r.hide(),m.hide()};o.on("input",function(){let t=jQuery(this).val(),u=t.replace(/\+/g,""),a=l(t);o.toggleClass("is-invalid",!a),a?f():i(u.length<11||u.length>13?"Please enter a phone number between 11-13 digits.":"Please enter a phone number with the + symbol and numbers only.")}),n.submit(function(t){t.preventDefault(),f();let u=o.val();if(!l(u)){i("Please enter a valid phone number."),o.addClass("is-invalid");return}let a=new FormData(this),d=n.find(".ajax-loader");d.show(),a.forEach((e,s)=>{s==="phoneNumber"&&a.set(s,"tel:"+e)});let c={action:"submit_contact_form",formAction:this.action,formContent:{}};for(let[e,s]of a)c.formContent[e]=s;let h="cf-turnstile-response"in c.formContent;if(h&&!c.formContent["cf-turnstile-response"]){i("Please verify you are human."),d.hide();return}let p=n.find("span.cf-turnstile").attr("id");jQuery.ajax({url:"/wp/wp-admin/admin-ajax.php",type:"POST",data:c,success:function(e){let s="Your request has been sent successfully.";e&&e.data&&e.data.message&&(s=e.data.message),b(s),h&&(turnstile.reset(`#${p}`),p=n.find("span.cf-turnstile").attr("id")),n[0].reset(),n.trigger("mme:contact-form-submitted"),window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent","Form Submission"])},error:function(e){let s="Oops, there was a problem with your request.";e.responseJSON&&e.responseJSON.data.message&&(s=e.responseJSON.data.message),i(s)},complete:function(){d.hide()}})})});})();
3})(window.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.