PageSourceSearch

https://pbu2020.eu/js/whcookies.js

js pbu2020.eu collected 2026-10-02 03:40:03 UTC 1,972 bytes, 40 lines download raw bytes

1/*
2 * Skrypt wyświetlający okienko z informacją o wykorzystaniu ciasteczek (cookies)
3 * 
4 * Więcej informacji: http://webhelp.pl/artykuly/okienko-z-informacja-o-ciasteczkach-cookies/
5 * 
6 */
7
8function WHCreateCookie(name, value, days) {
9    var date = new Date();
10    date.setTime(date.getTime() + (days*24*60*60*1000));
11    var expires = "; expires=" + date.toGMTString();
12	document.cookie = name+"="+value+expires+"; path=/";
13}
14function WHReadCookie(name) {
15	var nameEQ = name + "=";
16	var ca = document.cookie.split(';');
17	for(var i=0; i < ca.length; i++) {
18		var c = ca[i];
19		while (c.charAt(0) == ' ') c = c.substring(1, c.length);
20		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
21	}
22	return null;
23}
24
25window.onload = WHCheckCookies;
26
27function WHCheckCookies() {
28    if(WHReadCookie('cookies_accepted') != 'T') {
29        var message_container = document.createElement('div');
30        message_container.id = 'cookies-message-container';
31        var html_code = '<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: #efefef; width: 100%; z-index: 999;"><a href="/pl/pages/150" target="_blank">Więcej na temat polityki cookies.</a><a href="javascript:WHCloseCookiesWindow();" id="accept-cookies-checkbox" name="accept-cookies" style="background-color: #0c5b86; 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;">Schowaj informację</a></div>';
32        message_container.innerHTML = html_code;
33        document.body.appendChild(message_container);
34    }
35}
36
37function WHCloseCookiesWindow() {
38    WHCreateCookie('cookies_accepted', 'T', 365);
39    document.getElementById('cookies-message-container').removeChild(document.getElementById('cookies-message'));
40}

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.