1 2$(document).ready(function(){ 3 $('.gallery a').colorbox({rel:'gal'}); 4}); 5 6 function WHCreateCookie(name, value, days) { 7 var date = new Date(); 8 date.setTime(date.getTime() + (days*24*60*60*1000)); 9 var expires = "; expires=" + date.toGMTString(); 10 document.cookie = name+"="+value+expires+"; path=/"; 11 } 12 function 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 } 20 return null; 21 } 22 23 window.onload = WHCheckCookies; 24 25 function WHCheckCookies() { 26 if(WHReadCookie('e-hegemon') != 'T') { 27 var message_container = document.createElement('div'); 28 message_container.id = 'cookies-message-container'; 29 var html_code = '<div id="cookies-message" style="padding: 10px 0px; font-size: 14px; line-height: 22px; border-bottom: 1px solid #D3D0D0; text-align: center; position: fixed; bottom: 0px; background-color: #EFEFEF; width: 100%; z-index: 999;">Ta strona używa ciasteczek (cookies), dziÄki którym nasz serwis może dziaÅaÄ lepiej. <a href="http://wszystkoociasteczkach.pl" target="_blank">Dowiedz siÄ wiÄcej</a><a href="javascript:WHCloseCookiesWindow();" id="accept-cookies-checkbox" name="accept-cookies" style="background-color: #a0c81a; 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>'; 30 message_container.innerHTML = html_code; 31 document.body.appendChild(message_container); 32 } 33 } 34 35 function WHCloseCookiesWindow() { 36 WHCreateCookie('e-hegemon', '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.