PageSourceSearch

https://arts-center.gr.jp/wp-content/plugins/nl-good-button/js/script.js?ver=1.0.2

js arts-center.gr.jp collected 2026-10-04 16:34:35 UTC 1,606 bytes, 49 lines download raw bytes

1(function ($) {
2    $(document).ready(function (e) {
3        var post_ids = $('[data-toggle="nl-good-button"]').map(function () {
4            return $(this).data('post-id');
5        }).toArray();
6        if (post_ids.length == 0) {
7            return false;
8        }
9        $.ajax({
10            type: 'GET',
11            url: nl_good_button_ajax_url,
12            data: {
13                'action': 'nl_good_button_get_counts',
14                'post_ids': post_ids
15            },
16            success: function (response) {
17                for (var i in response) {
18                    $('#nl-good-button-count-' + response[i].id).text(response[i].count);
19                }
20            },
21            error: function () {
22                console.error('[NL Good Button] get counts');
23            }
24        });
25    });
26    $(document).on('click', '[data-toggle="nl-good-button"]', function (e) {
27        var button = $(this);
28        if (button.attr('disabled') == 'disabled') {
29            return false;
30        } else {
31            button.attr('disabled', true);
32        }
33        var post_id = button.data('post-id');
34        $.ajax({
35            type: 'POST',
36            url: nl_good_button_ajax_url,
37            data: {
38                'action': 'nl_good_button_update_count',
39                'post_id': post_id
40            },
41            success: function (response) {
42                $('#nl-good-button-count-' + post_id).text(response.count);
43            },
44            error: function () {
45                console.error('[NL Good Button] update count');
46            }
47        });
48    });
49})(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.