PageSourceSearch

https://cdn-img.daxuesoutijiang.com/dx-college/_nuxt/BOzrglfT.js

js daxuesoutijiang.com collected 2026-10-01 13:08:21 UTC 1,499 bytes, 2 lines download raw bytes

1import{d as p}from"./XZ3bDr21.js";import{r as s}from"./DC3gTA0r.js";const i=s([]),g=s(!1),m=s(""),H=".editor-content",l=".el-scrollbar__wrap",I=()=>{const b=p(()=>{const c=document.querySelector(l),o=document.querySelector(H),t=o==null?void 0:o.querySelectorAll("h1, h2, h3"),n=[],e=[0,0,0],d=(c==null?void 0:c.scrollTop)||0;t==null||t.forEach((r,v)=>{const w=`${Date.now()}${v}`,u=r.getBoundingClientRect(),h=Number(r.tagName.slice(1));switch(h){case 1:e[0]+=1,e[1]=0,e[2]=0;break;case 2:e[0]===0&&(e[0]=1),e[1]+=1,e[2]=0;break;case 3:e[0]===0&&(e[0]=1),e[0]===0&&(e[0]=1),e[2]+=1;break}n.push({id:w,text:r.innerText,level:h,rectTop:u.top+d,rectHeight:u.height,index:e.filter(T=>T).join(".")})}),i.value=n,a(d)},1e3),f=c=>{g.value=!c},S=c=>{const o=document.querySelector(l);o==null||o.scrollTo({top:c-56-5,behavior:"smooth"})},a=c=>{const o=i.value.reduceRight((t,n)=>t!=null&&t.id?t:c>n.rectTop-n.rectHeight-40?n:t,null);if(o){m.value=o.id;const t=document.body.querySelector('.sidebar a[data-id="'+o.id+'"]');if(t){const n=t.getBoundingClientRect();!(n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth))&&t.scrollIntoView({behavior:"smooth",block:"center"})}}};return{scrollElTag:l,nav:i,isFold:g,currentId:m,handleGetSidebar:b,handleToggleSidebar:f,handleScrollTo:S,handleCalculateHighlight:a}};export{I as default,l as scrollElTag,I as useSidebar};
2//# sourceMappingURL=BOzrglfT.js.map

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.