PageSourceSearch

https://4phones.eu/cdn/shop/t/126/assets/main-article.js?v=27237764169007273001789623339

js 4phones.eu collected 2026-10-07 11:36:20 UTC 2,583 bytes, 2 lines download raw bytes

1(function(){"use strict";var root=document.querySelector("[data-article-page]");if(!root)return;var contentEl=root.querySelector("[data-article-content]"),tocBoxEl=root.querySelector("[data-article-toc]"),tocListEl=root.querySelector("[data-article-toc-list]"),DIACRITIC_MARKS=new RegExp("[\u0300-\u036F]","g");function slugify(text){return String(text||"").toLowerCase().normalize("NFKD").replace(DIACRITIC_MARKS,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"section"}var sections=[];if(contentEl&&tocBoxEl&&tocListEl){var headingNodes=Array.prototype.slice.call(contentEl.querySelectorAll("h2, h3, h4, .article-toc-heading, p:has(> strong:only-child), p:has(> b:only-child)"));headingNodes=headingNodes.filter(function(el,_i,arr){return!arr.some(function(other){return other!==el&&other.contains(el)})});var usedIds={},lastLabel="";if(headingNodes.forEach(function(heading){var text=heading.textContent.replace(/\s+/g," ").trim();if(text){var labelKey=text.toLowerCase();if(labelKey!==lastLabel){lastLabel=labelKey;for(var baseId=slugify(text),id=baseId,n=1;usedIds[id];)id=baseId+"-"+n++;usedIds[id]=!0,heading.id||(heading.id=id),heading.style.scrollMarginTop="130px",sections.push({id:heading.id,label:text,el:heading})}}}),sections.length){var setActive=function(id){tocLinks.forEach(function(link){link.classList.toggle("is--active",link.getAttribute("data-article-toc-link")===id)})},onScroll=function(){ticking||(ticking=!0,requestAnimationFrame(function(){var active=sections[0].id;sections.forEach(function(s){s.el.getBoundingClientRect().top<=160&&(active=s.id)}),setActive(active),ticking=!1}))};tocListEl.innerHTML=sections.map(function(s){return'<a href="#'+s.id+'" class="article-toc_link" data-article-toc-link="'+s.id+'">'+s.label.replace(/[&<>"']/g,function(c){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[c]})+"</a>"}).join(""),tocBoxEl.hidden=!1;var tocLinks=tocListEl.querySelectorAll("[data-article-toc-link]");setActive(sections[0].id),tocListEl.addEventListener("click",function(event){var link=event.target.closest("[data-article-toc-link]");if(link){var target=document.getElementById(link.getAttribute("data-article-toc-link"));target&&(event.preventDefault(),target.scrollIntoView({behavior:"smooth",block:"start"}),setActive(link.getAttribute("data-article-toc-link")),window.history.pushState&&window.history.pushState(null,"","#"+target.id))}});var ticking=!1;window.addEventListener("scroll",onScroll,{passive:!0})}}})();
2//# sourceMappingURL=/cdn/shop/t/126/assets/main-article.js.map?v=27237764169007273001789623339

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.