PageSourceSearch

https://gdekomfort.ru/templates/komfort/resource/js/rscomponent/cookiepolicy.js

js gdekomfort.ru collected 2026-10-05 02:26:21 UTC 762 bytes, 18 lines download raw bytes

1/**
2 * Компонент обеспечивает закрытие "всплывающего блока оповещения о политике использования cookie" на страницах
3 * Зависит от плагина cookie.js
4 */
5new class CookiePolicy extends RsJsCore.classes.component
6{
7    onDocumentReady() {
8        const cookiesPolicy = document.querySelector('.cookies-policy-outer');
9        const cookiesPolicyBtn = cookiesPolicy && cookiesPolicy.querySelector('.btn');
10
11        if (cookiesPolicy) {
12            cookiesPolicyBtn.addEventListener('click',  () => {
13                cookiesPolicy.classList.remove('active');
14                this.plugins.cookie.setCookie('cookiesPolicy', '1');
15            });
16        }
17    }
18};

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.