1 2function getCookie(cname) { 3 var name = cname + "="; 4 var decodedCookie = decodeURIComponent(document.cookie); 5 var ca = decodedCookie.split(';'); 6 for (var i = 0; i < ca.length; i++) { 7 var c = ca[i]; 8 while (c.charAt(0) == ' ') { 9 c = c.substring(1); 10 } 11 if (c.indexOf(name) == 0) { 12 return c.substring(name.length, c.length); 13 } 14 } 15 return ""; 16} 17 18function setCookie(cname, cvalue, exdays = null) { 19 var expires = ''; 20 if (exdays) { 21 var d = new Date(); 22 d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); 23 expires = "expires=" + d.toUTCString() + ";"; 24 } 25 document.cookie = cname + "=" + cvalue + ";" + expires + "path=/"; 26} 27 28function kCopy(couponId, copyBtn) { 29 navigator.clipboard.writeText(document.getElementById("code-" + couponId).innerText); 30 if (copyBtn !== null) { 31 copyBtn.innerHTML = '<i class="fa fa-check"></i>'; 32 copyBtn.style.color = '#45b145'; 33 setTimeout(function () { 34 copyBtn.innerHTML = '<i class="fa fa-copy"></i>'; 35 copyBtn.style.color = '#808080'; 36 }, 1250); 37 } 38}
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.