{"size": 896, "ext": "js", "max_stars_repo_path": "js/index.min.js", "max_stars_repo_name": "yonjar/pinghsu", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/index.min.js", "max_issues_repo_name": "yonjar/pinghsu", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/index.min.js", "max_forks_repo_name": "yonjar/pinghsu", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 896.0, "max_line_length": 896, "alphanum_fraction": 0.8002232143}
function getElementTop(e){for(var t=e.offsetTop,o=e.offsetParent;null!==o;)t+=o.offsetTop+o.clientTop,o=o.offsetParent;return t}const scrollElement=window.document.scrollingElement||window.document.body||window.document.documentElement,goTopBtn=document.querySelector(".go-top-btn"),goDownBtn=document.querySelector(".go-down-btn");if(goTopBtn.addEventListener("click",()=>{anime({targets:scrollElement,scrollTop:0,duration:500,easing:"easeInOutQuad"})}),goDownBtn.addEventListener("click",()=>{anime({targets:scrollElement,scrollTop:document.body.offsetHeight,duration:500,easing:"easeInOutQuad"})}),location.href.indexOf("archives")>0){const e=document.querySelector("#directory ul");e.addEventListener("click",e=>{e.preventDefault();let t=e.target,o=document.querySelector(t.getAttribute("href"));anime({targets:scrollElement,scrollTop:getElementTop(o),duration:500,easing:"easeInOutQuad"})})}