PageSourceSearch

https://www.xn--j1adddg.xn--p1ai/bitrix/components/navigator/notificblock/ccookie.js?16130370701431

js xn--j1adddg.xn--p1ai collected 2026-10-02 20:16:52 UTC 1,431 bytes, 59 lines download raw bytes

1var CCookie =
2{ 
3   set: function(name, value, days) 
4   {
5      var domain, domainParts, date, expires, host;
6
7      if (days)
8      {
9         date = new Date();
10         date.setTime(date.getTime()+(days*24*60*60*1000));
11         expires = "; expires="+date.toGMTString();
12      }
13      else
14      {
15         expires = "";
16      }
17
18      host = location.host;
19      if (host.split('.').length === 1)
20      {
21
22         document.cookie = name+"="+value+expires+"; path=/";
23      }
24      else
25      {
26         domainParts = host.split('.');
27         domainParts.shift();
28         domain = '.'+domainParts.join('.');
29         document.cookie = name+"="+value+expires+"; path=/; domain="+domain;
30         if (CCookie.get(name) == null || CCookie.get(name) != value)
31         {
32            domain = '.'+host;
33            document.cookie = name+"="+value+expires+"; path=/; domain="+domain;
34         }
35      }
36   },
37
38   get: function(name)
39   {
40      var nameEQ = name + "=";
41      var ca = document.cookie.split(';');
42      for (var i=0; i < ca.length; i++)
43      {
44         var c = ca[i];
45         while (c.charAt(0)==' ')
46         {
47            c = c.substring(1,c.length);
48         }
49
50         if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
51      }
52      return null;
53   },
54
55   remove: function(name)
56   {
57        CCookie.set(name, '', -1);
58   }
59};

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.