1function createCookie(name, value, days) { 2 var expires = ""; 3 if (days) { 4 var date = new Date(); 5 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 6 expires = "; expires=" + date.toUTCString(); 7 } 8 var secure = window.isSecureContext ? "; Secure" : ""; 9 document.cookie = name + "=" + value + expires + "; path=/" + secure; 10} 11 12function readCookie(name) { 13 var nameEQ = name + "="; 14 var ca = document.cookie.split(';'); 15 for (var i = 0; i < ca.length; i++) { 16 var c = ca[i].trim(); 17 if (c.indexOf(nameEQ) === 0) { 18 return c.substring(nameEQ.length); 19 } 20 } 21 return null; 22} 23 24function eraseCookie(name) { 25 var secure = window.isSecureContext ? "; Secure" : ""; 26 document.cookie = name + "=; Max-Age=0; path=/" + secure; 27}
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.