PageSourceSearch

https://top10ict.com/wp-content/plugins/wp-helper-lite/assets/frontend/js/cookie.js?ver=1791456453

js top10ict.com collected 2026-10-08 10:47:46 UTC 792 bytes, 22 lines download raw bytes

1function whpSetCookie(cookieName, cookieValue, expirationDays) {
2    var d = new Date();
3    d.setTime(d.getTime() + (expirationDays * 24 * 60 * 60 * 1000));
4    var expires = "expires=" + d.toUTCString();
5    document.cookie = cookieName + "=" + cookieValue + ";" + expires + ";path=/";
6}
7
8function whpGetCookie(cookieName) {
9    var name = cookieName + "=";
10    var decodedCookie = decodeURIComponent(document.cookie);
11    var cookieArray = decodedCookie.split(';');
12    for (var i = 0; i < cookieArray.length; i++) {
13        var cookie = cookieArray[i];
14        while (cookie.charAt(0) === ' ') {
15            cookie = cookie.substring(1);
16        }
17        if (cookie.indexOf(name) === 0) {
18            return cookie.substring(name.length, cookie.length);
19        }
20    }
21    return "";
22}

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.