1let privacyPolicyCookie = "privacyPolicyCookieOn"; 2let privacyPolicyModal = document.querySelector(".privacy-policy-modal"); 3let privacyPolicyModalAppruveButton = document.querySelector(".privacy-policy-modal-appruve-button"); 4 5function writeCookie(name, val, expires) { 6 let date = new Date; 7 date.setDate(date.getDate() + expires); 8 document.cookie = name+"="+val+"; expires="+date.toUTCString()+";path=/"; 9} 10 11function readCookie(name) { 12 let matches = document.cookie.match(new RegExp( 13 "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" 14 )); 15 16 return matches ? decodeURIComponent(matches[1]) : false; 17} 18 19privacyPolicyModalAppruveButton.addEventListener('click', () => { 20 writeCookie(privacyPolicyCookie, 'true', 1); 21 privacyPolicyModal.classList.remove("privacy-policy-modal-show"); 22}); 23 24if (!readCookie(privacyPolicyCookie)) { 25 privacyPolicyModal.classList.add("privacy-policy-modal-show"); 26} 27 28console.log(readCookie(privacyPolicyCookie));
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.