PageSourceSearch

https://kiedywywoz.pl/whcookies.js

js kiedywywoz.pl collected 2026-10-02 15:45:27 UTC 1,984 bytes, 39 lines download raw bytes

1/*
2 */
3
4function WHCreateCookie(name, value, days) {
5    var date = new Date();
6    date.setTime(date.getTime() + (days*24*60*60*1000));
7    var expires = "; expires=" + date.toGMTString();
8	document.cookie = name+"="+value+expires+"; path=/";
9}
10
11
12function WHReadCookie(name) {
13	var nameEQ = name + "=";
14	var ca = document.cookie.split(';');
15	for(var i=0; i < ca.length; i++) {
16		var c = ca[i];
17		while (c.charAt(0) == ' ') c = c.substring(1, c.length);
18		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
19	}
20return null;
21
22}
23
24window.onload = WHCheckCookies;
25
26function WHCheckCookies() {
27    if(WHReadCookie('cookies_accepted') != 'T') {
28        var message_container = document.createElement('div');
29        message_container.id = 'cookies-message-container';
30        var html_code = (typeof cookie_info != 'undefined' ? cookie_info : '<div id="cookies-message" style="padding: 10px 0px; font-size: 14px; line-height: 22px; border-bottom: 1px solid rgb(211, 208, 208); text-align: center; position: fixed; bottom: 0px; background-color: #474948; width: 100%; z-index: 999; color: #fff;">Ta strona używa ciasteczek (cookies), dzięki którym nasz serwis może działać lepiej. <a href="http://wszystkoociasteczkach.pl" target="_blank" style="color: #fff; text-decoration: underline;">Dowiedz się więcej</a><a href="javascript:WHCloseCookiesWindow();" id="accept-cookies-checkbox" name="accept-cookies" style="background-color: #1CC58C; padding: 5px 10px; color: #FFF; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; display: inline-block; margin-left: 10px; text-decoration: none; cursor: pointer;">Rozumiem</a></div>');
31        message_container.innerHTML = html_code;
32        document.body.appendChild(message_container);
33    }
34}
35
36function WHCloseCookiesWindow() {
37    WHCreateCookie('cookies_accepted', 'T', 365);
38    document.getElementById('cookies-message-container').removeChild(document.getElementById('cookies-message'));
39}

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.