1window.addEventListener("pjax:success", () => { 2 _$$("script[data-pjax]").forEach((element) => { 3 const { textContent, parentNode, id, className, type, src, dataset, onload, integrity, crossOrigin } = 4 element; 5 const code = textContent || ""; 6 const script = document.createElement("script"); 7 8 id && (script.id = id); 9 className && (script.className = className); 10 type && (script.type = type); 11 dataset.pjax !== undefined && (script.dataset.pjax = ""); 12 onload && (script.onload = onload); 13 integrity && (script.integrity = integrity); 14 crossOrigin && (script.crossOrigin = crossOrigin); 15 16 if (src) { 17 script.src = src; 18 script.async = false; // Force synchronous loading of peripheral JS 19 } else if (code) { 20 script.textContent = code; 21 } 22 parentNode.replaceChild(script, element); 23 }); 24}); 25window.addEventListener("pjax:complete", () => { 26 _$("#header-nav")?.classList.remove("header-nav-hidden"); 27 const mode = window.localStorage.getItem("dark_mode"); 28 if (mode == "true") { 29 document.body.dispatchEvent(new CustomEvent("dark-theme-set")); 30 } else if (mode == "false") { 31 document.body.dispatchEvent(new CustomEvent("light-theme-set")); 32 } 33 // destroy waline 34 if(window.walineInstance) { 35 window.walineInstance.destroy(); 36 window.walineInstance = null; 37 } 38}); 39window.addEventListener("pjax:send", () => { 40 window.lightboxStatus = "loading"; 41}); 42if (window.startLoading) window.addEventListener("pjax:send", startLoading); 43if (window.endLoading) window.addEventListener("pjax:complete", endLoading); 44if (window.aosInit) window.addEventListener("pjax:success", aosInit);
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.