PageSourceSearch

https://j-frontiers.com/wp-content/themes/xwrite/assets/js/toc.min.js?ver=4.0.2

js j-frontiers.com collected 2026-10-07 15:59:00 UTC 3,217 bytes, 1 lines download raw bytes

1window.addEventListener("DOMContentLoaded",()=>{var t=document.querySelector(".toc_block");if(null!==t){window.scrollState||(window.scrollState={isScrolling:!1,timeout:null});t=t.querySelectorAll("li:not(.previous):not(.next) a");let l=0;Array.prototype.forEach.call(t,function(e){e.addEventListener("click",function(t){var o=Date.now();if(o-l<150)t.preventDefault();else if(l=o,window.scrollState.isScrolling)t.preventDefault();else{o=e.getAttribute("href");if((e=>{if(e.startsWith("#"))return 1;try{var t=new URL(e,window.location.href),o=new URL(window.location.href);return t.protocol===o.protocol&&t.host===o.host&&t.pathname===o.pathname&&t.search===o.search}catch(e){}})(o)){t.preventDefault();let e=o.includes("#")?o.substring(o.indexOf("#")):o;s(e),setTimeout(()=>{history.pushState?history.pushState(null,null,e):window.location.hash=e},100)}}})});{let l=document.querySelector(".toc__caption"),n=document.querySelector(".toc");if(null!==l&&null!==n){let e="none"!==n.style.display;l.addEventListener("click",()=>{e=!e;var t=l.querySelector(".open"),o=l.querySelector(".close");if(e){t.style.display="none",o.style.display="";let e=getComputedStyle(n).paddingBottom;n.style.height=0,n.style.overflow="hidden",n.style.paddingBottom=0,n.style.display="",setTimeout(function(){n.style.paddingBottom=e,n.style.height=n.scrollHeight+parseInt(e)+"px"},1),setTimeout(function(){n.style.height="",n.style.overflow="",n.style.paddingBottom=""},400)}else t.style.display="",o.style.display="none",n.style.height=n.scrollHeight+"px",n.style.overflow="hidden",setTimeout(function(){n.style.height=0,n.style.paddingBottom=0},1),setTimeout(function(){n.style.display="none",n.style.paddingBottom="",n.style.height="",n.style.overflow=""},400)})}}let e=!1;function s(o){if(!window.scrollState.isScrolling){window.scrollState.isScrolling=!0;let t;if("#"===o||""===o)t=document.querySelector("html");else{var l=decodeURIComponent(o.substring(1));if(!(t=document.getElementById(l)))try{t=document.querySelector(o)}catch(e){return console.warn("Target element not found: "+o),void(window.scrollState.isScrolling=!1)}}if(t.offsetParent||t===document.documentElement){var l=t.getBoundingClientRect(),n=window.scrollY;let e=l.top+n;var i,l=document.querySelector("#wpadminbar"),n=(null!==l&&(e-=l.offsetHeight),document.querySelector(".header-fix"));null!==n?(l=n.offsetHeight,i=document.documentElement.offsetWidth,(n.classList.contains("-for-pc")&&992<i||n.classList.contains("-for-mb")&&i<991)&&(e-=l)):"#container"!==o&&null===document.querySelector(".headerImage")&&null!==(n=document.querySelector(".headerInfo"))&&(e-=n.offsetHeight),e=Math.max(0,e),window.scrollTo({top:e,behavior:"smooth"}),window.scrollState.timeout&&clearTimeout(window.scrollState.timeout),window.scrollState.timeout=setTimeout(()=>{window.scrollState.isScrolling=!1},100)}else window.scrollState.isScrolling=!1,setTimeout(()=>s(o),100)}}!e&&window.location.hash&&(e=!0,t=()=>{var e=window.location.hash,t=decodeURIComponent(e.substring(1));document.getElementById(t)&&s(e)},setTimeout(t,100),setTimeout(t,300),setTimeout(t,600)),window.addEventListener("load",()=>{!e&&window.location.hash&&(e=!0,setTimeout(()=>{s(window.location.hash)},100))})}});

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.