1jQuery.noConflict(); 2 3jQuery(document).ready(function($){ 4 "use strict"; 5 //MAIN CONTACT FORM... 6 jQuery(".contact-frm").validate({ 7 onfocusout: function(element){ $(element).valid(); }, 8 rules: { 9 cname: { required: true, minlength: 2 }, 10 cemail: { required: true, email: true }, 11 cmessage: { required: true, minlength: 10 }, 12 txtcap: { required: true, minlength: 4, equalTo: "#txthidcap" } 13 } 14 }); 15 16 //AJAX SUBMIT... 17 $('.contact-frm').submit(function () { 18 19 var This = $(this); 20 var data_value = null; 21 22 if($(This).valid()) { 23 var action = $(This).attr('action'); 24 25 data_value = decodeURI($(This).serialize()); 26 $.ajax({ 27 type: "POST", 28 url:action, 29 data: data_value, 30 success: function (response) { 31 $('#ajax_message').html(response); 32 $('#ajax_message').slideDown('slow'); 33 if (response.match('success') !== null){ $(This).slideUp('slow'); } 34 } 35 }); 36 } 37 return false; 38 }); 39});
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.