PageSourceSearch

https://podillyanews.com/wp-content/plugins/wp-reader-news/js/feedback.js?ver=1

js podillyanews.com collected 2026-10-02 16:21:10 UTC 2,223 bytes, 48 lines download raw bytes

1jQuery(document).ready(function ($) {
2    var add_form = $('#add_feedback');
3
4    // Сброс значений полей
5    $('#add_feedback input, #add_feedback textarea').on('blur', function () {
6        $('#add_feedback input, #add_feedback textarea').removeClass('error');
7        $('.error-name,.error-email,.error-comments,.message-success').remove();
8        $('#submit-feedback').val('Відправити новину');
9    });
10
11    // Отправка значений полей
12    var options = {
13        url: feedback_object.url,
14        data: {
15            action: 'feedback_action',
16            nonce: feedback_object.nonce
17        },
18        type: 'POST',
19        dataType: 'json',
20        beforeSubmit: function (xhr) {
21            // При отправке формы меняем надпись на кнопке
22            $('#submit-feedback').val('Відправляємо...');
23        },
24        success: function (request, xhr, status, error) {
25
26            if (request.success === true) {
27                // Если все поля заполнены, отправляем данные и меняем надпись на кнопке
28                add_form.after('<div class="message-success">' + request.data + '</div>').slideDown();
29                $('#submit-feedback').val('Відправити новину');
30            } else {
31                // Если поля не заполнены, выводим сообщения и меняем надпись на кнопке
32                $.each(request.data, function (key, val) {
33                    $('.art_' + key).addClass('error');
34                    $('.art_' + key).before('<span class="error-' + key + '">' + val + '</span>');
35                });
36                $('#submit-feedback').val('Щось пішло не так...');
37
38            }
39            // При успешной отправке сбрасываем значения полей
40            $('#add_feedback')[0].reset();
41        },
42        error: function (request, status, error) {
43            $('#submit-feedback').val('Щось пішло не так...');
44        }
45    };
46    // Отправка формы
47    add_form.ajaxForm(options);
48});

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.