1$(document).ready(function(){ 2$('#csubmit').click(function(){alert("hi"); 3 var fname=$.trim($('#fullname').val()); 4 var email=$.trim($('#email').val()); 5 var phone=$.trim($('#phone').val()); 6 var zipcode=$.trim($('#zipcode').val()); 7 var numberwindow=$.trim($('#numberwindow').val()); 8 var whatproduct=$.trim($('#whatproduct').val()); 9 10 if(fname ==''){ 11 $('#error_msg').html("<span class='my-notify-error'>Please enter your name</span>"); 12 return false; 13 } 14 var check = /^[a-zA-Z\s]+$/; 15 if(!check.test(fname)){ 16 $('#error_msg').html("<span class='my-notify-error'>Please enter valid name</span>"); 17 return false; 18 } 19 if(email ==''){ 20 $('#error_msg').html("<span class='my-notify-error'>Please enter your email</span>"); 21 return false; 22 } 23 var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 24 if(!regex.test(email)){ 25 $('#error_msg').html("<span class='my-notify-error'>Please enter valid email</span>"); 26 return false; 27 } 28 else{ 29 $('#error_msg').html(''); 30 $.ajax({ 31 url:"contact_process.php", 32 method:"POST", 33 data:{fullname1:fname, email1:email, phone1:phone, msg:whatproduct}, 34 success:function(data){ 35 console.log(data); 36 $("form").trigger("reset"); 37 $('#success_message').fadeIn().html(data); 38 setTimeout(function(){ 39 $('#success_message').fadeOut("Slow"); 40 }, 2000); 41 } 42 }); 43 } 44return false; 45 46 }); 47}); 48jQuery(window).one("scroll", function(){ 49jQuery("#cust-youtube").load("#"); 50jQuery("#cust-youtube1").load("#"); 51});
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.