1 $(document).ready(function(){ 2 3 $("#send").click(function(){ 4 5 var name = $("#name").val(); 6 7 var email = $("#email").val(); 8 9 var message = $("#message").val(); 10 11 12 13 var error = false; 14 15 16 17 if(email.length == 0 || email.indexOf("@") == "-1" || email.indexOf(".") == "-1"){ 18 19 var error = true; 20 21 $("#error_email").fadeIn(500); 22 23 }else{ 24 25 $("#error_email").fadeOut(500); 26 27 } 28 29 if(message.length == 0){ 30 31 var error = true; 32 33 $("#error_message").fadeIn(500); 34 35 }else{ 36 37 $("#error_message").fadeOut(500); 38 39 } 40 41 42 43 if(error == false){ 44 45 $("#send").attr({"disabled" : "true", "value" : "Loading..." }); 46 47 48 49 $.ajax({ 50 51 type: "POST", 52 53 url : "send.php", 54 55 data: "name=" + name + "&email=" + email + "&subject=" + "From Web Contact Form" + "&message=" + message, 56 57 success: function(data){ 58 59 if(data == 'success'){ 60 61 $("#btnsubmit").remove(); 62 63 $("#mail_success").fadeIn(500); 64 65 }else{ 66 67 $("#mail_failed").html(data).fadeIn(500); 68 69 $("#send").removeAttr("disabled").attr("value", "send"); 70 71 } 72 73 } 74 75 }); 76 77 } 78 79 return false; 80 81 }); 82 83 });
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.