1function postData(e) { 2 e.preventDefault(); 3 4 var parent = e.currentTarget, 5 elem = parent.elements, 6 xmlHttp = new XMLHttpRequest(), 7 formData = new FormData(); 8 9 if (elem.name !== undefined) formData.append('name', elem.name.value); 10 if (elem.phone !== undefined) formData.append('phone', elem.phone.value); 11 12 if (elem.subject !== undefined) formData.append('subject', elem.subject.value); 13 if (elem.submit !== undefined) formData.append('submit', null); 14 15 xmlHttp.onreadystatechange = function() { 16 if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { 17 if (xmlHttp.responseText == 'ÐапÑÐ¾Ñ Ð¾ÑпÑавлен...') { 18 elem.name.value = elem.phone.value = null; 19 document.getElementById('personal-manager-switch').checked = false; 20 } 21 } 22 } 23 24 xmlHttp.open('POST', '/personalManager/lib/php/getPost.php?random=' + Math.random(), true); 25 xmlHttp.send(formData); 26}
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.