PageSourceSearch

https://trnava-vuc.sk/wp-content/plugins/trnava_vuc/public/js/was-helpful.js?ver=1.1.3.3620

js trnava-vuc.sk collected 2026-10-01 11:26:07 UTC 1,047 bytes, 30 lines download raw bytes

1jQuery(document).ready(function ($) {
2    $('.was-helpful-button').on('click', function (e) {
3        e.preventDefault();
4
5        var $button = $(this);
6        var $container = $button.closest('.was-helpful-container');
7        var postId = $container.data('post-id');
8        var vote = $button.data('vote');
9
10        $.ajax({
11            url: wasHelpfulAjax.ajaxurl,
12            type: 'POST',
13            data: {
14                action: 'vote_helpful',
15                nonce: wasHelpfulAjax.nonce,
16                post_id: postId,
17                vote: vote,
18            },
19            success: function (response) {
20                if (response.success) {
21                    $container.html(
22                        '<div class="was-helpful-thanks color-white" role="status" aria-live="polite" title="Potvrdenie o odoslaní hodnotenia">' +
23                            '<p class="mb-0 mt-0">Ďakujeme za váš názor!</p>' +
24                            '</div>'
25                    );
26                }
27            },
28        });
29    });
30});

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.