$(document).ready(function() { $("div#cookie" ).css('margin', '0 auto').css('width', '940px').css('height', '90px'); komunikat_cookie(); }); function komunikat_cookie() { setTimeout('wyswietl_cookie()', 2400); } function wyswietl_cookie() { $("div#cookie" ).html("

XNasza strona wykorzystuje niewielkie cookies, żeby korzystanie z niej było wygodniejsze i prostsze. Surfowanie po stronie bez zmiany ustawień Twojej przeglądarki oznacza, że będą one zapisywane w Twoim komputerze/telefonie/tablecie. Szczegóły znajdziesz w Polityce Prywatności.

" ); } function zamknij_komunikat_cookie() { $("div#cookie").hide(200); } var copy_link = { tag: 'źródło:', execute: true, min_length: 150 }; jQuery(document).ready(function ($) { var h = document; var l = h.body; var p = h.documentElement; var my_link = location.href; my_ja_function = function (a) { a = a.getElementsByTagName("script"); for (var b = a.length - 1; b >= 0; b--) { var c = a[b]; c.parentNode.removeChild(c); } }; my_M_function = function (a, b) { for (var c in a) if (a.hasOwnProperty(c)) b[c] = a[c]; }; my_w_function = function (a, b, c) { a = h.createElement(a); my_M_function(b, a); my_M_function(c, a.style); return a; }; getText = function(str){ str = str.replace(/<.*?>/g, ''); return str; } var mouse_down = 1; if (copy_link.execute) { $("body").bind("copy", function (event) { if (event.target.type && (event.target.type === 'text' || event.target.type === 'textarea')) { return; } if (mouse_down) { var f, e; f = my_w_function("div", {}, { overflow: "hidden", color: "#000000", backgroundColor: "transparent", textAlign: "left", textDecoration: "none", border: "none" }); C = false; var msie11 = !(window.ActiveXObject) && "ActiveXObject" in window; if (!h.selection || !h.selection.createRange) { a = getSelection(); if (a.toString() && getText(a.toString()).length > copy_link.min_length) if (typeof a.setBaseAndExtent !== "undefined") { var g = a.getRangeAt(0); b = my_w_function("span", { innerHTML: "" }); b.innerHTML += "

" + copy_link.tag + " " + my_link + ""; f.appendChild(g.cloneContents()) f.appendChild(b); f.style.width = 0.1; f.style.height = 0.1; f.style.position = "absolute"; f.style.top = "-1000px"; f.style.left = "-1001px"; f.appendChild(h.createElement("br")); b = f.innerText.length; l.insertBefore(f, l.firstChild); if (f.innerText.length !== b) f.style.overflow = ""; a.selectAllChildren(f); setTimeout(function () { f.parentNode.removeChild(f); getSelection().setBaseAndExtent( g.startContainer, g.startOffset, g.endContainer, g.endOffset); C = false; }, 0); } else { e = my_w_function("div", {}, { height: 0, position: "absolute", top: "-1000px" }); e.innerHTML = "
"; l.appendChild(e); f.innerHTML = "

" + copy_link.tag + " " + my_link + ""; e.appendChild(f); if(msie11){ f.innerHTML = a.toString() + f.innerHTML; var r = a.getRangeAt(0); a.removeAllRanges(); } b = h.createRange(); b.selectNode(f); a.addRange(b); window.setTimeout(function () { e.parentNode.removeChild(e); if(msie11){ a.removeAllRanges(); a.addRange(r); } C = false; }, 0); } } else { var k = p.scrollLeft || l.scrollLeft, o = p.scrollTop || l.scrollTop; e = my_w_function("div", {}, { overflow: "hidden", position: "absolute", left: k + 20 + "px", top: o + 20 + "px", width: "1px", height: "1px" }); l.insertBefore(e, l.firstChild); var j = h.selection.createRange(); if(getText(j.htmlText).length > copy_link.min_length){ f.innerHTML = j.htmlText + "

" + copy_link.tag + " " + my_link + ""; my_ja_function(f); e.appendChild(h.createElement("br")); e.appendChild(f); b = l.createTextRange(); b.moveToElementText(f); b.select(); setTimeout(function () { l.removeChild(e); if (j.text !== "") { j.select(); p.scrollLeft = k; l.scrollLeft = k; p.scrollTop = o; l.scrollTop = o } C = false; }, 0); } } } }); } } );