PageSourceSearch

https://www.0532.ua/assets/2851b084/adaptiveFavorites.js?v=1789825604

js 0532.ua collected 2026-10-02 10:23:55 UTC 1,205 bytes, 36 lines download raw bytes

1var favorite = {};
2favorite.icon = null;
3
4favorite.click = function () {
5    $(document).on('click', '.js-btn-favorites', function () {
6        if (isUserAuthorized()) {
7            var $button = $(this);
8            favorite.icon = $button.find('.svg-favourites');
9            var content_id = $button.attr('data-content_id');
10            var section = $button.attr('data-section');
11            if (favorite.icon.hasClass('selected')) {
12                favorite.removeFavorite(content_id, section);
13            } else {
14                favorite.addFavorite(content_id, section);
15            }
16        } else {
17            favorite.showAuthWindow();
18        }
19    });
20}();
21
22favorite.showAuthWindow = function () {
23   showAuthWindow();
24};
25
26favorite.addFavorite = function (content_id, section) {
27    jsonrpcWrapper('/ajax/jsonrpc', 'addFavorite', {'content_id': content_id, 'section': section}, function (data) {
28        favorite.icon.addClass('selected');
29    });
30};
31
32favorite.removeFavorite = function (content_id, section) {
33    jsonrpcWrapper('/ajax/jsonrpc', 'removeFavorite', {'content_id': content_id, 'section': section}, function (data) {
34        favorite.icon.removeClass('selected');
35    });
36};

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.