PageSourceSearch

https://www.motonline.it/js/cookie.js

js motonline.it collected 2026-10-10 01:02:24 UTC 946 bytes, 33 lines download raw bytes

1window.blazorExtensions = {
2
3    WriteCookie: function (name, value, days) {
4
5        var expires;
6        if (days) {
7            var date = new Date();
8            date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
9            expires = "; expires=" + date.toGMTString();
10        }
11        else {
12            expires = "";
13        }
14        document.cookie = name + "=" + value + expires + "; path=/";
15    },
16
17    ReadCookie: function (cname) {
18        var name = cname + "=";
19        var decodedCookie = decodeURIComponent(document.cookie);
20        var ca = decodedCookie.split(';');
21        for (var i = 0; i < ca.length; i++) {
22            var c = ca[i];
23            while (c.charAt(0) == ' ') {
24                c = c.substring(1);
25            }
26            if (c.indexOf(name) == 0) {
27                return c.substring(name.length, c.length);
28            }
29        }
30        return "";
31
32    }
33}

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.