1 2 3var Cookielaw = { 4 ACCEPTED: '1', 5 REJECTED: '0', 6 7 createCookie: function (name, value, days, secure=true) { 8 var date = new Date(), 9 expires = ''; 10 if (days) { 11 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 12 expires = "; expires=" + date.toGMTString(); 13 } else { 14 expires = ""; 15 } 16 17 var secureString = ""; 18 if (window.isSecureContext && secure) { 19 secureString = "; Secure"; 20 } 21 22 document.cookie = name + "=" + value + expires + "; path=/" + secureString; 23 }, 24 25 createCookielawCookie: function (cookieValue, secure=true) { 26 cookieValue = cookieValue || this.ACCEPTED; 27 this.createCookie('cookielaw_accepted', cookieValue, 10 * 365, secure); 28 29 if (typeof (window.jQuery) === 'function') { 30 jQuery('#CookielawBanner').slideUp(); 31 } else { 32 document.getElementById('CookielawBanner').style.display = 'none'; 33 } 34 }, 35 36 accept: function () { 37 this.createCookielawCookie(this.ACCEPTED); 38 }, 39 40 reject: function () { 41 this.createCookielawCookie(this.REJECTED); 42 } 43};
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.