PageSourceSearch

https://powderlife.ru/local/components/powderlife/favorites.widget/templates/.default/script.js?1754945178864

js powderlife.ru collected 2026-10-08 17:31:39 UTC 864 bytes, 26 lines download raw bytes

1(function (window) {
2    BX.ready(function () {
3        let obFavoritesCount = BX('pwdl_favorites_counter'), obFavoritesButton = BX('pwdl_favorites_button')
4
5        if (!!obFavoritesButton) {
6            BX.bind(obFavoritesButton, 'click', function () {
7                if (window.userData.id === 0) {
8                    popupOpen('auth')
9                } else {
10                    window.location.href = '/personal/favorites/';
11                }
12            })
13        }
14
15        if (!!obFavoritesCount) {
16            BX.addCustomEvent('onFavoritesChange', items => {
17                BX.adjust(obFavoritesCount, {
18                    text: items.length,
19                    props: {
20                        className: items.length > 0 ? 'icon-counter active' : 'icon-counter'
21                    }
22                })
23            })
24        }
25    })
26})(window)

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.