PageSourceSearch

https://bleskkosmetika.ru/bitrix/components/kraytcosmetics/krayt.image.text.2col/templates/.default/script.js

js bleskkosmetika.ru collected 2026-10-02 02:07:49 UTC 1,169 bytes, 31 lines download raw bytes

1(function (window){
2    if (!!window.BLockVideo)
3        return;
4    window.BLockVideo = function(params) {
5        let id = params['id'];
6        BX.ready(function(){
7            let btnVideoToggle = BX.findChildByClassName(document,'js-video-toggle_'+id);
8            let modalVideo = BX.findChildByClassName(document,'js-video-modal_'+id);
9
10            if(btnVideoToggle && modalVideo){
11                let closeVideo = BX.findChildByClassName(modalVideo,'js-close-modal-video_'+id);
12                BX.bind(btnVideoToggle, 'click', ()=>{
13                    if(BX.hasClass(modalVideo,'open')){
14                        BX.removeClass(modalVideo,'open')
15                    }else {
16                        BX.addClass(modalVideo,'open');
17                        BX.addClass(BX(document.body),'noscroll');
18                    }
19                });
20                if(closeVideo)
21                {
22                    BX.bind(closeVideo, 'click', ()=>{
23                        BX.removeClass(modalVideo,'open');
24                        BX.removeClass(BX(document.body),'noscroll');
25                    });
26                }
27            }
28        });
29    };
30
31})(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.