1;(function($, window, document, undefined) { 2 var $win = $(window); 3 var $doc = $(document); 4 5 $doc.ready(function() { 6 7 $('.CookieConsentWrapper .button-close').on('click', function(){ 8 document.cookie="CookiePolicy=True"; 9 $('.CookieConsentWrapper').addClass('hidden'); 10 }); 11 12 function getCookie(cname) { 13 var name = cname + "="; 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); 18 if (c.indexOf(name) == 0) return c.substring(name.length, c.length); 19 } 20 return ""; 21 } 22 23 function checkCookie() { 24 var cookiePolicyValue = getCookie("CookiePolicy"); 25 if (cookiePolicyValue === "True") { 26 $('.CookieConsentWrapper').addClass('hidden'); 27 } 28 else { 29 $('.CookieConsentWrapper').removeClass('hidden'); 30 } 31 } 32 33 checkCookie(); 34 35 }); 36 37})(jQuery, window, document);
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.