1$(document).ready(function() 2{ 3 4 5 6$("#widgetu7863").submit(function(){ 7 $("#u7870-4").hide(); 8}); 9 10$("#widgetu8087").submit(function(){ 11 var data = {}; 12 data.name = $("#widgetu8108_input").val(); 13 data.email = $("#widgetu8093_input").val(); 14 data.message = $("#widgetu8102_input").val(); 15 data.phonenumber = $("#widgetu8089_input").val(); 16 data.subject = $("#widgetu8097_input").val(); 17 18 19 if($("#widgetu8108_input").val()&&$("#widgetu8093_input").val()&&$("#widgetu8102_input").val()&&$("#widgetu8089_input").val()&&$("#widgetu8097_input").val()) 20 { 21 $("#u8106-4").show(); //Error 22 $("#u8106-4 .shared_content").css("color", "white"); 23 $("#u8106-4 .shared_content").text("Sending"); 24 $.ajax({ 25 type: 'POST', 26 data: JSON.stringify(data), 27 contentType: 'application/json', 28 url: '/contactus', 29 success: function(data) { 30 // alert("Thanks. We will get back to you to ASAP!"); 31 $("#u8106-4 .shared_content").text("Successfully Sent. We will get back to you to ASAP"); 32 33 console.log('success'); 34 console.log(JSON.stringify(data)); 35 }, 36 error: function (jqXHR, exception) { 37 $("#u8106-4 .shared_content").css("color", "red"); 38 $("#u8106-4 .shared_content").text("Not Sent. Please try again"); 39 var msg = ''; 40 if (jqXHR.status === 0) { 41 msg = 'Not connect.\n Verify Network.'; 42 } else if (jqXHR.status == 404) { 43 msg = 'Requested page not found. [404]'; 44 } else if (jqXHR.status == 500) { 45 msg = 'Internal Server Error [500].'; 46 } else if (exception === 'parsererror') { 47 msg = 'Requested JSON parse failed.'; 48 } else if (exception === 'timeout') { 49 msg = 'Time out error.'; 50 } else if (exception === 'abort') { 51 msg = 'Ajax request aborted.'; 52 } else { 53 msg = 'Uncaught Error.\n' + jqXHR.responseText; 54 } 55 console.log(msg); 56 $('#post').html(msg); 57 } 58 }); 59 } 60}); 61 62 63});
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.