PageSourceSearch

http://artemdementyev.com/js/popup.js

js artemdementyev.com collected 2026-09-28 11:11:13 UTC 1,002 bytes, 31 lines download raw bytes

1$(function () {
2    var consent = 'li-consent';
3    var consentDate = 'li-consent-date';
4    var consentUpdate1 = 'li-consent-update1';
5    var consentCookieValue = Cookies.get(consent);
6    var consentCookieUpdate1 = Cookies.get(consentUpdate1);
7
8    // value is 1 so loose compare to true
9    if (consentCookieValue == true) {
10        if (consentCookieUpdate1 === undefined) {
11            Cookies.remove(consentDate);
12            Cookies.remove(consent);
13            addConsentCookies();
14        }
15        $('#consent-popup').remove();
16    } else {
17        $('#consent-popup').removeClass('li-popup_hide');
18    }
19
20    $('#consent-ack').on('click', function () {
21        addConsentCookies();
22        $('#consent-popup').remove();
23    });
24
25    function addConsentCookies() {
26        Cookies.set(consent, 1, { expires: 180 });
27        Cookies.set(consentDate, new Date(), { expires: 180 });
28        Cookies.set(consentUpdate1, new Date(), { expires: 180 });
29    }
30
31});

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.