PageSourceSearch

https://aeroalbrook.com/wp-content/plugins/dynamicaviation/submodules/dy-core/js/cookies.js?ver=0.1.110

js aeroalbrook.com collected 2026-10-02 22:45:18 UTC 657 bytes, 23 lines download raw bytes

1const cookieExpirationInDays = 90;
2
3const setCookie = (cname, cvalue, exdays) => {
4    const d = new Date();
5    d.setTime(d.getTime() + (exdays*24*60*60*1000));
6    const expires = "expires="+ d.toUTCString();
7    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
8}
9
10const getCookie = (cname) => {
11    const name = cname + '=';
12    const ca = document.cookie.split(';');
13    for(let i = 0; i < ca.length; i++) {
14        let c = ca[i];
15        while (c.charAt(0) == ' ') {
16            c = c.substring(1);
17        }
18        if (c.indexOf(name) == 0) {
19            return c.substring(name.length, c.length);
20        }
21    }
22    return '';
23}

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.