1// cookie params setter and getter 2function storeUrlParamsInCookie() { 3 let old_cookie_str = getCookie('url_params'); 4 if(!old_cookie_str) { 5 let urlParams = new URLSearchParams(window.location.search); // ÐÑÑимÑÑмо паÑамеÑÑи з URL 6 let paramsString = urlParams.toString(); // ÐеÑеÑвоÑÑÑмо на ÑÑÑÐ¾ÐºÑ 7 // ÐапиÑÑÑмо паÑамеÑÑи в кÑÐºÑ Ð½Ð° 7 днÑв 8 document.cookie = "url_params=" + paramsString + ";path=/;max-age=" + (7 * 24 * 60 * 60); 9 } 10} 11 12function getCookie(name) { 13 let nameEq = name + "="; 14 let ca = document.cookie.split(';'); 15 for (let i = 0; i < ca.length; i++) { 16 let c = ca[i].trim(); 17 if (c.indexOf(nameEq) === 0) return c.substring(nameEq.length, c.length); 18 } 19 return ""; 20} 21 22storeUrlParamsInCookie() 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.