PageSourceSearch

https://www.sommerskiskole.no/wp-content/plugins/cookie-law-info/lite/frontend/js/wca.js?ver=3.5.6

js sommerskiskole.no collected 2026-09-28 05:43:21 UTC 1,282 bytes, 35 lines download raw bytes

1const consentType = {
2    gdpr: 'optin',
3    ccpa: 'optout',
4};
5const categoryMap = {
6    functional: 'preferences',
7    analytics: ['statistics','statistics-anonymous'],
8    performance: 'functional',
9    advertisement: 'marketing',
10};
11const gskEnabled = typeof _ckyGsk !== 'undefined' && _ckyGsk ? _ckyGsk : false;
12document.addEventListener("cookieyes_consent_update", function () {
13    const consentData = getCkyConsent();
14    const categories = consentData.categories;
15    if ((consentData.isUserActionCompleted === false) && gskEnabled && !Object.values(categories).slice(1).includes(true)) {
16        return;
17    }
18    window.wp_consent_type = consentData.activeLaw ? consentType[consentData.activeLaw] : 'optin';
19    let event = new CustomEvent('wp_consent_type_defined');
20    document.dispatchEvent( event );
21    Object.entries(categories).forEach(([key, value]) => {
22        if (!(key in categoryMap))
23            return;
24        setConsentStatus(key, value ? 'allow' : 'deny');
25    });
26    function setConsentStatus(key, status) {
27        if (Array.isArray(categoryMap[key])) {
28            categoryMap[key].forEach(el => {
29                wp_set_consent(el, status);
30            });
31        } else {
32            wp_set_consent(categoryMap[key], status);
33        }
34    }
35});

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.