This commit is contained in:
root
2026-03-04 00:23:03 +08:00
commit 6136d791f2
611 changed files with 65539 additions and 0 deletions

View File

@@ -0,0 +1 @@
$(document).ready(function(){var t=$('[id^="cl-"]'),e=$(".atoc-list a");setActiveCatalogItem=(()=>{var a=$(window).scrollTop()+100;t.each(function(){var t=$(this),o=t.attr("id"),c=$('a[data-target="'+o+'"]');t.offset().top<=a&&(e.removeClass("active"),c.addClass("active"))})}),setActiveCatalogItem(),$(window).scroll(()=>{setActiveCatalogItem()});const a=new IntersectionObserver(t=>{t.forEach(t=>{const e=$(".widget-toc-main");t.isIntersecting?e.show():e.hide()})}),o=document.querySelector("#post");o&&a.observe(o)});