PageSourceSearch

https://support.lit.pl/public/js/whcookies.js

js lit.pl collected 2026-10-08 07:56:16 UTC 1,817 bytes, 38 lines download raw bytes

1function WHCreateCookie(name, value, days) 
2{
3    var date = new Date();
4    date.setTime(date.getTime() + (days*24*60*60*1000));
5    var expires = "; expires=" + date.toGMTString();
6	document.cookie = name+"="+value+expires+"; path=/";
7}
8function WHReadCookie(name) 
9{
10	var nameEQ = name + "=";
11	var ca = document.cookie.split(';');
12	for(var i=0; i < ca.length; i++) {
13		var c = ca[i];
14		while (c.charAt(0) == ' ') c = c.substring(1, c.length);
15		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
16	}
17	return null;
18}
19
20window.onload = WHCheckCookies;
21
22function WHCheckCookies() 
23{
24    if(WHReadCookie('cookies_accepted') != 'T') 
25    {
26        var message_container = document.createElement('div');
27        message_container.id = 'cookies-message-container';
28        var html_code = '<div id="cookies-message" style="font-family:Arial; padding: 20px; position:fixed; opacity:0.9; filter:alpha(opacity=90); right:0; font-size: 10pt; line-height: 22px; border: 1px solid rgb(211, 208, 208); text-align: left; float:right; bottom:100px; background-color: #efefef; width: 200px; z-index: 99999;">Ta strona wykorzystuje pliki cookies. Korzystanie z niej oznacza zgodę na ich zapis lub odczyt zgodnie z ustawieniami przeglądarki. <br /><br /><a href="javascript:WHCloseCookiesWindow();" id="accept-cookies-checkbox" name="accept-cookies" style="background-color: #000; padding: 5px 10px; color: #FFF; display: inline-block; text-decoration: none; cursor: pointer;">Rozumiem</a></div>';
29        message_container.innerHTML = html_code;
30        document.body.appendChild(message_container);
31    }
32}
33
34function WHCloseCookiesWindow() 
35{
36    WHCreateCookie('cookies_accepted', 'T', 365);
37    document.getElementById('cookies-message-container').removeChild(document.getElementById('cookies-message'));
38}

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.