1$(document).ready(() => { 2 var $btnClose = $('[id^="alert-close-"]'); 3 if ($btnClose.length) { 4 $btnClose.on('click', function (e) { 5 e.preventDefault(); 6 7 var $alert = $(this).closest('.c-alert-bar'); 8 if ($alert) { 9 var cacheKey = $alert.find('#hdn-cachekey').val(); 10 if (cacheKey !== "") { 11 createCookie(cacheKey, true, 1440); 12 } 13 14 $alert.hide(); 15 } 16 }); 17 } 18 19 function createCookie(cookieName, cookieValue, minutesToExpire) { 20 var date = new Date(); 21 date.setTime(date.getTime() + (minutesToExpire * 60 * 1000)); 22 document.cookie = cookieName + "=" + cookieValue + "; expires=" + date.toGMTString() + "; path=/"; 23 } 24});
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.