1$(document).ready(function () { 2 var applicationForm = $("#applicationForm"); 3 applicationForm.on("submit", function (e) { 4 e.preventDefault(); 5 6 var selectedPositions = $("input[name='position']:checked") 7 .map(function () { 8 return $(this).val(); 9 }) 10 .get() 11 .join(','); 12 13 var capturedIP = $("#capturedIP").val(); 14 var name = $("#name").val(); 15 var email = $("#email").val(); 16 var phone = $("#phone").val(); 17 var address = $("#address").val(); 18 var position = selectedPositions; 19 var experience = $("#experience").val(); 20 var additional = $("#additional").val(); 21 22 $.ajax({ 23 type: "POST", 24 url: "/scripts/mailvacancy.php", 25 data: { 26 capturedIP: capturedIP, 27 name: name, 28 email: email, 29 phone: phone, 30 address: address, 31 position: position, 32 experience: experience, 33 additional: additional, 34 captcha: grecaptcha.getResponse(), 35 }, 36 success: function (data2) { 37 var divsuccess = 38 "<div class=\"successful-send\"><p>Thank you " + 39 name + 40 " for your application.</p><p>We will be in contact shortly.</p></div>"; 41 if (data2 == "ok") { 42 $("#applicationForm").replaceWith(divsuccess); 43 } else { 44 alert("Verification failed, please try again."); 45 } 46 data2 = ""; 47 }, 48 }); 49 }); 50});
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.