PageSourceSearch

https://toymafia.ru/bitrix/js/dbogdanoff.cookie/script.min.js?17696900382264

js toymafia.ru collected 2026-10-05 23:06:51 UTC 2,264 bytes, 1 lines download raw bytes

1(function(){if(document.cookie.split("; ").find(row=>row.startsWith("legacy_cookie="))){return}fetch("/bitrix/tools/dbogdanoff_cookie_options.php",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},credentials:"same-origin",body:new URLSearchParams({SITE_ID:typeof BX!=="undefined"&&typeof BX.message==="function"?BX.message("SITE_ID"):"s1"})}).then(response=>response.json()).then(options=>{handleContentLoaded(options)}).catch(error=>{console.error("Ошибка при запросе опций модуля dbogdanoff.cookie",error)});function handleContentLoaded(options){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",function(){insertCookieDiv(options.data)})}else{insertCookieDiv(options.data)}}function insertCookieDiv(options){let cookieDiv=document.createElement("div");cookieDiv.style.zIndex=options.zIndex;cookieDiv.id="legacy-cookie-wrap";cookieDiv.className="legacy-cookie";if(options.disableMob==="Y"){cookieDiv.classList.add("legacy-cookie--d-mob-none")}let innerDiv=document.createElement("div");let cookieText=document.createElement("div");cookieText.className="legacy-cookie__text";cookieText.innerHTML=options.text;if(options.color){let anchor=cookieText.querySelector("a");if(anchor){anchor.style.color=options.color}}let closeElement;if(options.textButton&&options.textButton.trim()!==""){closeElement=document.createElement("span");closeElement.classList.add("button");closeElement.textContent=options.textButton}else{closeElement=document.createElement("img");closeElement.src="/bitrix/images/dbogdanoff.cookie/close.svg"}closeElement.onclick=sendCookieRequestAndRemoveElement;innerDiv.appendChild(cookieText);innerDiv.appendChild(closeElement);cookieDiv.appendChild(innerDiv);document.body.appendChild(cookieDiv)}function sendCookieRequestAndRemoveElement(){fetch("/bitrix/tools/dbogdanoff_cookie_save.php",{method:"GET",credentials:"same-origin"}).then(response=>{if(!response.ok){throw new Error("Network response was not ok")}return response.text()}).then(data=>{console.log("Cookie saved successfully")}).catch(error=>{console.error("Error saving cookie:",error)}).finally(()=>{const element=document.getElementById("legacy-cookie-wrap");if(element){element.remove()}})}})();

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.