PageSourceSearch

https://akavita.com/sites/all/modules/custom/galaxy/galaxy.js?D

js akavita.com collected 2026-09-25 23:33:47 UTC 1,260 bytes, 50 lines download raw bytes

1function galaxyGetCookie(name)
2{
3    var arg  = name + "=";
4    var alen = arg.length;
5    var clen = document.cookie.length;
6    var i    = 0;
7
8    while (i < clen)
9    {
10        var j = i + alen;
11        if (document.cookie.substring(i, j) == arg)
12          return galaxyGetCookieVal (j);
13        i = document.cookie.indexOf(" ", i) + 1;
14        if (i == 0) break;
15    }
16    return null;
17}
18
19function galaxySetCookie(name, value, timeInDays) {
20	cookie = '';
21	cookie += name + "=" + escape(value);
22	cookie += "; path=/";
23	if(timeInDays==null){
24		cookie += "";
25	}else{
26		var exp = new Date();     //set new date object
27		exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * timeInDays));     //set 	
28		cookie += "; expires=" + expires.toGMTString();
29	}
30	document.cookie = cookie;
31} 
32
33
34function galaxyGetCookieVal( offset )
35{
36    var endstr = document.cookie.indexOf (";", offset);
37
38    if (endstr == -1)
39        endstr = document.cookie.length;
40    return unescape(document.cookie.substring(offset, endstr));
41}
42
43
44function galaxyDeleteCookie(name){
45    var exp  = new Date();
46    var cval = galaxyGetCookie(name);
47
48    exp.setTime (exp.getTime() - 1);  // This cookie is history
49    document.cookie = name + "=" + cval + "; path=/; expires=" + exp.toGMTString();
50}

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.