PageSourceSearch

http://kcvs.ru/shared/s3/js/cookie.js

js kcvs.ru collected 2026-10-02 10:35:01 UTC 646 bytes, 29 lines download raw bytes

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

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.