PageSourceSearch

https://samsebevoin.ru/wp-content/plugins/f-seo-comments/js/comment_ajax.js?ver=5.2

js samsebevoin.ru collected 2026-10-03 17:47:14 UTC 1,942 bytes, 58 lines download raw bytes

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.