PageSourceSearch

https://poce-sur-cisse.fr/wp-content/themes/seosight/framework-cus…/portfolio/static/js/likes.js?ver=1

js poce-sur-cisse.fr collected 2026-10-02 08:19:50 UTC 1,611 bytes, 45 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_crumina_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                    allbuttons.attr('title', response.title);
33                    if (response.status === 'unliked') {
34                        allbuttons.removeClass('liked');
35                    } else {
36                        allbuttons.addClass('liked');
37                    }
38                    loader.empty();
39                }
40            });
41
42        }
43        return false;
44    });
45})(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.