1 2$(document).ready(function() 3{ 4 5 setTimeout(function() { 6 $("#HomepagecontactForm fieldset").show(); 7 }, 1500); 8 9 setTimeout(function() { 10 $("#HomepagecontactForm .btn").show(); 11 }, 2000); 12 13 $("#contactForm").validate 14 ({ 15 16 rules: 17 { 18 fname: {required:true}, 19 email: {required:true, email:true} 20 } 21 22 }); 23 24 $("#HomepagecontactForm").validate 25 ({ 26 27 rules: 28 { 29 home_fname: {required:true}, 30 home_phone: {digits:true}, 31 home_email: {required:true, email:true} 32 } 33 34 }); 35 36 $("#HomepagecontactForm_bottom").validate 37 ({ 38 39 rules: 40 { 41 home_bottom_fname: {required:true}, 42 home_bottom_email: {required:true, email:true} 43 } 44 45 }); 46 47 48 $('#contactForm button[type="submit"]').attr('disabled','disabled'); 49 $('#contactForm #fname').keyup(function() { 50 if($(this).val() !== '') { 51 $('#contactForm :button[type="submit"]').prop('disabled', false); 52 } 53 }); 54 55 $('#HomepagecontactForm button[type="submit"]').attr('disabled','disabled'); 56 $('#HomepagecontactForm #home_fname').keyup(function() { 57 if($(this).val() !== '') { 58 $('#HomepagecontactForm :button[type="submit"]').prop('disabled', false); 59 } 60 }); 61 62 $("#HomepagecontactForm #home_fname").on("change paste keyup", function(e) { 63 if (e.isTrigger) 64 { 65 console.log('not a human'); 66 $("#HomepagecontactForm #home_fname").val(''); 67 } 68 else{ 69 console.log('human'); 70 } 71 }); 72 73 $('#HomepagecontactForm_bottom button[type="submit"]').attr('disabled','disabled'); 74 $('#HomepagecontactForm_bottom #home_bottom_fname').keyup(function() { 75 if($(this).val() !== '') { 76 $('#HomepagecontactForm_bottom :button[type="submit"]').prop('disabled', false); 77 } 78 }); 79 80 $("#member_login").validate 81 ({ 82 83 rules: 84 { 85 member_password_num: {required:true}, 86 member_fname: {required:true} 87 } 88 89 }); 90 91 92}); 93 94 95
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.