1/* global NexT, CONFIG */ 2NexT.boot={},NexT.boot.registerEvents=function(){try{NexT.utils.registerScrollPercent(),NexT.utils.registerCanIUseTag(),NexT.utils.updateFooterPosition(), 3// Mobile top menu bar. 4document.querySelector(".site-nav-toggle .toggle").addEventListener("click",e=>{e.currentTarget.classList.toggle("toggle-close");const t=document.querySelector(".site-nav");t&&(t.style.setProperty("--scroll-height",t.scrollHeight+"px"),document.body.classList.toggle("site-nav-on"))}),document.querySelectorAll(".sidebar-nav li").forEach((e,t)=>{e.addEventListener("click",()=>{NexT.utils.activateSidebarPanel(t)})}),window.addEventListener("hashchange",()=>{const e=location.hash;if(""!==e&&!e.match(/%\S{2}/)){const t=document.querySelector(`.tabs ul.nav-tabs li a[href="${e}"]`);t?.click()}}),window.addEventListener("tabs:click",e=>{NexT.utils.registerCodeblock(e.target)})}catch(e){console.warn("Something went wrong while NexT registering events",e)}},NexT.boot.refresh=function(){try{ 5// Register JS handlers by condition option. 6// Need to add config option in Front-End at 'scripts/helpers/next-config.js' file. 7CONFIG.prism&&window.Prism.highlightAll(),CONFIG.mediumzoom&&window.mediumZoom(".post-body :not(a) > img, .post-body > img",{background:"var(--content-bg-color)"}),CONFIG.lazyload&&window.lozad(".post-body img").observe(),CONFIG.pangu&&( 8// Polyfill for requestIdleCallback if not supported 9window.requestIdleCallback||(window.requestIdleCallback=function(e){e({didTimeout:!1,timeRemaining:()=>100})}),[...document.getElementsByTagName("main")].forEach(e=>window.pangu.spacingNode(e))),CONFIG.exturl&&NexT.utils.registerExtURL(),NexT.utils.wrapTableWithBox(),NexT.utils.registerCodeblock(),NexT.utils.registerTabsTag(),NexT.utils.registerActiveMenuItem(),NexT.utils.registerLangSelect(),NexT.utils.registerSidebarTOC(),NexT.utils.registerPostReward(),NexT.utils.registerVideoIframe()}catch(e){console.warn("Something went wrong during NexT refresh",e)}},NexT.boot.motion=function(){ 10// Define Motion Sequence & Bootstrap Motion. 11if(CONFIG.motion.enable)try{NexT.motion.integrator.add(NexT.motion.middleWares.header).add(NexT.motion.middleWares.sidebar).add(NexT.motion.middleWares.postList).add(NexT.motion.middleWares.footer).bootstrap()}catch(e){console.warn("NexT Motion Error, fallback to static mode",e),document.body.classList.remove("use-motion"),CONFIG.motion.enable=!1}NexT.utils.updateSidebarPosition()},document.addEventListener("DOMContentLoaded",()=>{NexT.boot.registerEvents(),NexT.boot.refresh(),NexT.boot.motion()});
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.