PageSourceSearch

https://www.daiken.jp/daikendamashii/js/base.js

js daiken.jp collected 2026-10-03 20:52:29 UTC 924 bytes, 1 lines download raw bytes

1var Base;!function(e){class t{constructor(){document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelectorAll('a[href^="#"]');for(let s of e)s.addEventListener("click",e=>{e.preventDefault();let o=s.getAttribute("href");t.scrollTo(o),this.saveHashHistory(o)});location.hash&&setTimeout(()=>{window.scrollTo({top:0}),setTimeout(()=>{t.scrollTo(location.hash)},10)},1)})}static scrollTo(e){window.scrollTo({top:t.getScrollPosition(e),behavior:"smooth"})}static getScrollPosition(e){if("#"==e)return 0;let t=document.getElementById(e.replace("#","")),s="";try{s=t.getAttribute("data-deduct-scroll")}catch(o){}let l=s?document.getElementsByClassName(s).item(0).clientHeight:0,r=t.getBoundingClientRect().top,a=window.pageYOffset||document.documentElement.scrollTop;return r+a-l}saveHashHistory(e){this.hashBefore!=e&&history.pushState("","",e),this.hashBefore=e}}e.Base=t}(Base||(Base={})),$base=new Base.Base;

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.