PageSourceSearch

https://www.tipsricerche.it/wp-content/themes/seosight/framework-c…/portfolio/static/js/likes.js?ver=1.0.8

js tipsricerche.it collected 2026-10-08 06:14:24 UTC 1,548 bytes, 44 lines download raw bytes

1(function ($) {
2    'use strict';
3    $(document).on('click', '.sl-button', function () {
4        var button = $(this);
5        var post_id = button.attr('data-post-id');
6        var security = button.attr('data-nonce');
7        var iscomment = button.attr('data-iscomment');
8        var allbuttons;
9        if (iscomment === '1') { /* Comments can have same id */
10            allbuttons = $('.sl-comment-button-' + post_id);
11        } else {
12            allbuttons = $('.sl-button-' + post_id);
13        }
14        var loader = allbuttons.next('#sl-loader');
15        if (post_id !== '') {
16            $.ajax({
17                type: 'POST',
18                url: fwAjaxUrl,
19                data: {
20                    action: 'process_simple_like',
21                    post_id: post_id,
22                    nonce: security,
23                    is_comment: iscomment,
24                },
25                beforeSend: function () {
26                    //loader.html('&nbsp;<div class="loader"></div>');
27                },
28                success: function (response) {
29                    var icon = response.icon;
30                    var count = response.count;
31                    allbuttons.html(icon + count);
32                    if (response.status === 'unliked') {
33                        allbuttons.removeClass('liked');
34                    } else {
35                        allbuttons.addClass('liked');
36                    }
37                    loader.empty();
38                }
39            });
40
41        }
42        return false;
43    });
44})(jQuery);

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.