PageSourceSearch

https://volgatermy.ru/bitrix/js/bquadro/cookienoties/src/script.js?17367703892087

js volgatermy.ru collected 2026-09-30 13:21:58 UTC 2,087 bytes, 53 lines download raw bytes

1BX.ready(function () {
2    BX.namespace("Bquadro.CookieNotification");
3    BX.Bquadro.CookieNotification.App = {
4        init: function () {
5            this.container = document.getElementById('bquadro_cookie_panel')
6            this.panel = this.container.querySelector('.cookie-panel')
7            this.listiner()
8            this.checkCookies();
9        },
10        listiner: function () {
11            let btnEl = this.container.querySelector('.cookie-panel__btn');
12            btnEl.addEventListener('click', (e) => this.btnClick(btnEl))
13        },
14
15        btnClick: function (el) {
16            let cookieName = 'cookies_policy';
17            let flag = 'true';
18            let days = '365';
19            this.setCookie(cookieName, flag, days);
20            this.panel.classList.toggle("cookie-panel--close");
21            $(this.panel).slideUp(500);
22        },
23        setCookie: function (name, value, days) {
24            let expires = "";
25            if (days) {
26                let date = new Date();
27                date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
28                expires = "; expires=" + date.toUTCString();
29            }
30            document.cookie = name + "=" + (value || "") + expires + "; path=/";
31        },
32
33        getCookie: function (name) {
34            let matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"));
35            return matches ? decodeURIComponent(matches[1]) : undefined;
36        },
37
38        checkCookies: function () {
39            let getCookies = this.getCookie('cookies_policy');
40            console.log(getCookies, 'checkCookies');
41            if (getCookies === undefined) {
42                this.panel.classList.toggle("cookie-panel--close");
43                $(this.panel).slideDown(500);
44            } else {
45                this.panel.classList.toggle("cookie-panel--close");
46            }
47        },
48    }
49
50    BX.ready(function () {
51        BX.Bquadro.CookieNotification.App.init();
52    });
53});

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.