1// Phone Callback Widget - Cookie Management 2window.phoneCallbackHelper = { 3 setCookie: function (name, value, days) { 4 const date = new Date(); 5 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 6 const expires = "expires=" + date.toUTCString(); 7 document.cookie = name + "=" + value + ";" + expires + ";path=/"; 8 }, 9 10 getCookie: function (name) { 11 const nameEQ = name + "="; 12 const ca = document.cookie.split(';'); 13 for (let i = 0; i < ca.length; i++) { 14 let c = ca[i]; 15 while (c.charAt(0) === ' ') c = c.substring(1, c.length); 16 if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length); 17 } 18 return null; 19 }, 20 21 deleteCookie: function (name) { 22 document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; 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.