1jQuery(document).ready(function($) { 2 3 $("button[name=subscribe]").click(() => { 4 5 if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test( $("#emailaddr").val() )) { 6 7 //captcha check 8 9 if( $("#cid").val() != $("#answer").val() ) { 10 $('#answerlabel').html('Answer failed, please try again.'); 11 $("#answer").val(''); 12 return false; 13 } 14 15 16 $.ajax({ 17 type: "GET", 18 crossDomain:true, 19 url: $("#email-form").attr("action"), 20 data: $("#email-form").serialize(), 21 cache: false, 22 success: (data) => { 23 24 return false; 25 } 26 }); 27 28 $(".form-row").html(' '); 29 $("#newsletter-signup-form").html('<h5 class="form-heading">Thank you for subscribing.</h5><p class="form-heading" id="subscribemessage">Please check your inbox for your $5 off discount code!</p>'); 30 31 } 32 33 return false; 34 }); 35});
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.