1/* Creare's 'Implied Consent' EU Cookie Law Banner v:2.4 2 Conceived by Robert Kent, James Bavington & Tom Foyster 3 Modified by Simon Freytag for syntax, namespace, jQuery and Bootstrap 4*/ 5C = { 6 cookieDuration: 365, 7 cookieName: "complianceCookie", 8 cookieValue: "on", 9 bannerMessage: "We use cookies to ensure you get the best experience on our website.", 10 bannerButton: "Got it!", 11 bannerLinkURL: "/page/privacy-policy/", 12 bannerLinkText: "More info", 13 fromEU: false, 14 createDiv: function() { 15 var e = $('<div class="cookieinfo"><div class="cookieinner"><button type="button" class="cookiebtn pull-right" onclick="C.createCookie(C.cookieName, C.cookieValue, C.cookieDuration)" aria-label="Close">' + this.bannerButton + '</button><p class="cookiep">' + this.bannerMessage + ' <a href="' + this.bannerLinkURL + '" class="cookielink">' + this.bannerLinkText + '</a></p></div></div>'); 16 $("body").append(e); 17 window.setTimeout(function(){ 18 $('.cookieinfo').addClass('cookieshown'); 19 }, 2500); 20 }, 21 createCookie: function(e, o, i) { 22 var n = ""; 23 if (i) { 24 var t = new Date; 25 t.setTime(t.getTime() + 24 * i * 60 * 60 * 1e3), n = "; expires=" + t.toGMTString() 26 } 27 document.cookie = e + "=" + o + n + "; path=/", $(".cookieinfo").hide() 28 }, 29 checkCookie: function(e) { 30 for (var o = e + "=", i = document.cookie.split(";"), n = 0; n < i.length; n++) { 31 for (var t = i[n]; 32 " " == t.charAt(0);) t = t.substring(1, t.length); 33 if (0 == t.indexOf(o)) return t.substring(o.length, t.length) 34 } 35 return null 36 }, 37 38 init: function() { 39 $.getJSON('http://api.wipmania.com/jsonp?callback=?', function (data) { 40 if (/^(Austria|Belgium|Bulgaria|Croatia|Cyprus|Czech Republic|Denmark|Estonia|Finland|France|Germany|Greece|Hungary|Ireland|Italy|Latvia|Lithuania|Luxembourg|Malta|Netherlands|Poland|Portugal|Romania|Slovakia|Slovenia|Spain|Sweden|UK)$/.exec(data.address.country)) { 41 C.checkCookie(C.cookieName) != C.cookieValue && C.createDiv(), $(window).scroll(function() { 42 $(this).scrollTop() > 1000 && (C.createCookie(C.cookieName, C.cookieValue, C.cookieDuration), $(".cookieinfo").fadeOut()) 43 }) 44 } 45 }); 46 } 47}, $(document).ready(function() { 48 C.init() 49});
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.