PageSourceSearch

https://onedayxyy.cn/js/simple-sidebar.min.dd18ddc4afc8397dd3830004cef2794c7af81d5381203ddac97860e9fef628ea.js

js onedayxyy.cn collected 2026-09-28 05:57:55 UTC 2,482 bytes, 1 lines download raw bytes

1(function(){"use strict";function t(e,t){if(!t)return;let n=e;if(e.scrollHeight<=e.clientHeight&&(n=e.closest(".VPSidebar")||e.closest(".nav")||e.closest(".mobile-sidebar-drawer__content")),!n)return;const a=t.getBoundingClientRect(),s=n.getBoundingClientRect(),o=a.top-s.top,i=s.height,r=o>i*.1&&o<i*.9;if(r)return;setTimeout(()=>{t.scrollIntoView({block:"center",behavior:"instant"})},50)}function e(e){if(!e)return;if(e.dataset.simpleSidebarInitialized==="true")return;function n(){let s=window.location.pathname;s=s.replace(/\/$/,"");let n=e.querySelector(`[data-path="${s}"]`);if(n||(n=e.querySelector(`[data-path="${s}/"]`)),n){n.classList.add("is-active");let s=n.parentElement;for(;s&&s!==e;){if(s.classList.contains("simple-sidebar__item")){s.classList.add("is-expanded");const e=s.querySelector(":scope > .simple-sidebar__item-inner");e&&e.setAttribute("aria-expanded","true")}s=s.parentElement}t(e,n)}}function s(){e.addEventListener("click",t=>{const n=t.target.closest(".simple-sidebar__item-inner");if(!n||!e.contains(n))return;const s=n.closest(".simple-sidebar__item");if(!s||!e.contains(s))return;if(!s.classList.contains("has-children")){const o=n.querySelector(".simple-sidebar__link");if(!o)return;e.querySelectorAll(".is-active").forEach(e=>{e.classList.remove("is-active")}),s.classList.add("is-active"),t.target.closest(".simple-sidebar__link")||(t.preventDefault(),o.click());return}if(t.target.closest(".simple-sidebar__link"))return;t.preventDefault(),t.stopPropagation();const o=s.classList.toggle("is-expanded");n.setAttribute("aria-expanded",o.toString())})}n(),s(),e.dataset.simpleSidebarInitialized="true"}function n(){document.querySelectorAll(".simple-sidebar").forEach(e)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n):n();function s(){document.querySelectorAll(".simple-sidebar").forEach(n=>{if(n.dataset.simpleSidebarInitialized!=="true"){e(n);return}n.querySelectorAll(".is-active").forEach(e=>{e.classList.remove("is-active")});let o=window.location.pathname.replace(/\/$/,""),s=n.querySelector(`[data-
1path="${o}"]`)||n.querySelector(`[data-path="${o}/"]`);if(s){s.classList.add("is-active");let e=s.parentElement;for(;e&&e!==n;){if(e.classList.contains("simple-sidebar__item")){e.classList.add("is-expanded");const t=e.querySelector(":scope > .simple-sidebar__item-inner");t&&t.setAttribute("aria-expanded","true")}e=e.parentElement}t(n,s)}})}window.simpleSidebarReinit=s,window.initSimpleSidebarInstance=e})()

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.