1 2//ajax оÑпÑавка ÑоÑÐ¼Ñ 3jQuery('form#commentform').attr("onsubmit", "return submit_form(this)"); 4function Ajaxsend_comm() { 5 //alert("пÑиÑло"); 6 var pathname = jQuery(location).attr('host'); 7 jQuery.ajax({ 8 url: '//' + pathname + '/wp-comments-post.php', //ÐдÑÐµÑ Ð¿Ð¾Ð´Ð³ÑÑжаемой ÑÑÑаниÑÑ 9 type: "POST", //Тип запÑоÑа 10 dataType: "html", //Тип даннÑÑ 11 data: jQuery("#commentform").serialize(), 12 success: function(response) { //ÐÑли вÑе ноÑмалÑно 13 //alert("ÐÑпÑавлено"); 14 jQuery("form.comment-form").hide(); 15 jQuery("div.thanks_hide").hide(); 16 jQuery("#cancel-comment-reply-link").hide(); 17 jQuery(".thanks").show(); 18 }, 19 error: function(response) { //ÐÑли оÑибка 20 alert("ÐÑибка пÑи оÑпÑавке ÑоÑÐ¼Ñ " + response.status); 21 } 22 }); 23} 24 25var btn = document.getElementById('com_send'); 26if(btn){btn.onclick = function submit_form(value){ 27 //alert("1234"); 28 var comment = jQuery("#comment"); 29 var auth = jQuery('input#author'); 30 var mail = jQuery('input#email'); 31 jQuery('#commentform .error').removeClass('error'); 32 if(!comment.val()) 33 { 34 //alert("ÑекÑÑ"); 35 comment.addClass('error').focus(); 36 return false; 37 } 38 else if(document.getElementById('author')&&document.getElementById('email')){ 39 if(!auth.val()) { 40 // alert("имÑ"); 41 auth.addClass('error').focus(); 42 return false; 43 } 44 if(!mail.val()) { 45 //alert("мÑло"); 46 mail.addClass('error').focus(); 47 return false; 48 } 49 //alert("ÑÑло"); 50 Ajaxsend_comm(); 51 return false; 52 } 53 else { 54 //alert("ÑÑло"); 55 Ajaxsend_comm(); 56 return false; 57 } 58}}
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.