1 <!-- 2(function () { 3 function readCookie(name) { 4 var nameEQ = name + "="; 5 var ca = document.cookie.split(';'); 6 for (var i=0; i<ca.length; i++) { 7 var c = ca[i]; 8 while (c.charAt(0) === ' ') c = c.substring(1, c.length); 9 if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length); 10 } 11 return null; 12 } 13 14 function setCookie(name, value, days) { 15 var expires = ""; 16 if (days) { 17 var date = new Date(); 18 date.setTime(date.getTime() + (days*24*60*60*1000)); 19 expires = "; expires=" + date.toUTCString(); 20 } 21 document.cookie = name + "=" + value + expires + "; path=/; SameSite=Lax"; 22 } 23 24 document.addEventListener('DOMContentLoaded', function () { 25 var cookieName = 'kt_rt_confirmation_age'; 26 var hasCookie = readCookie(cookieName); 27 28 if (!hasCookie) { 29 document.body.classList.add('show_age'); 30 } 31 32 var btn = document.querySelector('.js-confirmation-age'); 33 if (btn) { 34 btn.addEventListener('click', function (e) { 35 e.preventDefault(); 36 setCookie(cookieName, '1', 3650); // remember for 37 document.body.classList.remove('show_age'); 38 }); 39 } 40 }); 41})(); 42 //-->
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.