1function ValidateForm(query_nonce_value) { 2 jQuery(".cfw-error").hide(); 3 var action = "submit-query"; 4 var name = jQuery("#name").val(); 5 var email = jQuery("#email").val(); 6 var subject = jQuery("#subject").val(); 7 var message = jQuery("#message").val(); 8 9 //validation check 10 if(name == "") { 11 jQuery(".name-error").show(); 12 jQuery("#name").focus(); 13 jQuery(".cfw-error").fadeOut(4000); 14 return false; 15 } 16 17 if(email == "") { 18 jQuery(".email-error").show(); 19 jQuery("#email").focus(); 20 jQuery(".cfw-error").fadeOut(4000); 21 return false; 22 } 23 24 if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email) == false) { 25 jQuery(".email-error-2").show(); 26 jQuery("#email").focus(); 27 jQuery(".cfw-error").fadeOut(4000); 28 return false; 29 } 30 31 if(subject == "") { 32 jQuery(".subject-error").show(); 33 jQuery("#subject").focus(); 34 jQuery(".cfw-error").fadeOut(4000); 35 return false; 36 } 37 38 if(message == "") { 39 jQuery(".message-error").show(); 40 jQuery("#message").focus(); 41 jQuery(".cfw-error").fadeOut(4000); 42 return false; 43 } 44 45 jQuery("#user-contact-form").hide(); 46 jQuery("#awp-loading-icon").show(); 47 48 var alldata = { 49 'action': 'submit_user_query', 50 'formsdata': jQuery("#user-contact-form").serialize(), 51 'security': query_nonce_value 52 }; 53 54 jQuery.post(cfw_ajax.ajaxurl, alldata, function(response) { 55 jQuery("#awp-loading-icon").hide(); 56 jQuery("#contact-result").show(); 57 jQuery("#contact-result").text(response); 58 }); 59}
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.