1$(document).ready(function() { 2 const cookiesConsent = $(".cookies-consent"); 3 const cookiesBox = $(".cookies-box"); 4 const younescloseBtn = $(".younesclose-btn"); 5 6 setTimeout(function() { 7 cookiesConsent.addClass("active"); 8 }, 500); 9 10 younescloseBtn.click(function() { 11 cookiesConsent.removeClass("active"); 12 document.cookie = "WebsiteName=testWebsite; max-age=" + 8760 * 60 * 60; 13 }); 14 15 const WebsiteCookie = document.cookie.indexOf("WebsiteName="); 16 17 if(WebsiteCookie != -1){ 18 cookiesConsent.hide(); //Hide the popup screen if the cookie is not expired. 19 } else{ 20 cookiesConsent.show(); //Show the popup screen if the cookie is expired. 21 } 22});
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.