PageSourceSearch

https://content.kumospace.com/hubfs/hub_generated/template_assets/…/1788187151924/template_blog-article.min.js

js kumospace.com collected 2026-09-24 17:33:48 UTC 2,536 bytes, 2 lines download raw bytes

1function ready(fn){"complete"===document.readyState||"interactive"===document.readyState?(setTimeout(fn,1),document.removeEventListener("DOMContentLoaded",fn)):document.addEventListener("DOMContentLoaded",fn)}ready(function(){const asideNavWrap=document.getElementById("blog-article-aside");if(document.body.contains(asideNavWrap)){const headings=document.getElementById("blog-article-content")?.querySelectorAll("h2"),asideNav=document.getElementById("blog-article-outline"),getObjList=nodeList=>{let objList=[],usedIDs=[];return nodeList.forEach(node=>{node.id=(str=>{let thisID=str.toLowerCase().trim().replace(/[^\w\s]/g,"").replace(/\s+/g,"-");for(let i=0;i<=usedIDs.length;i++)thisID===usedIDs[i]&&(thisID=`${thisID.replace(/-+\d+/g,"")}-${i}`);return usedIDs.push(thisID),`section-${thisID}`})(node.textContent),objList.push({id:node.id,text:node.textContent})}),objList},buildOutline=arr=>{const outlineList=document.createElement("ol");return outlineList.classList.add("blog-article__aside-outline"),arr.forEach(obj=>{const outlineItem=document.createElement("li"),outlineLink=document.createElement("a");outlineLink.setAttribute("href",`#${obj.id}`),outlineLink.textContent=`${obj.text}`,outlineItem.appendChild(outlineLink),outlineList.appendChild(outlineItem)}),outlineList};0===asideNav?.children.length&&asideNav.appendChild(buildOutline(getObjList(headings)));const headingsList=[...headings];function updateCurrentSection(){const prevHeadings=headingsList.filter(heading=>heading.getBoundingClientRect().top<=88);let currentSection;currentSection=0===prevHeadings.length?headings[0].id:prevHeadings[prevHeadings.length-1].id,asideNav?.querySelectorAll("a").forEach(anchor=>{anchor.removeAttribute("aria-current"),delete anchor.parentElement.dataset.current,anchor.getAttribute("href")===`#${currentSection}`&&(anchor.setAttribute("aria-current","true"),anchor.parentElement.dataset.current="true")})}let windowMatch=window.matchMedia("screen and (min-width: 75em)");function watchMediaLg0(){windowMatch.matches?(updateCurrentSection(),document.addEventListener("scroll",updateCurrentSection)):(asideNav?.querySelectorAll("a").forEach(anchor=>{anchor.removeAttribute("aria-current"),delete anchor.parentElement.dataset.current}),document.removeEventListener("scroll",updateCurrentSection))}watchMediaLg0(),windowMatch.addEventListener("change",watchMediaLg0)}});
2//# sourceURL=https://9035810.fs1.hubspotusercontent-na1.net/hubfs/9035810/hub_generated/template_assets/1/105853088144/1788187151924/template_blog-article.js

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.