Nathanwoodburn.github.io/templates/assets/js/about.min.js

1 line
325 B
JavaScript
Raw Permalink Normal View History

2023-11-02 20:26:15 +11:00
function slideout(){bodydiv=document.querySelector("body"),bodydiv.style.top="-100%",setTimeout((function(){window.location.href="/#about",bodydiv.style.top="0px"}),1e3)}function scroll(){(window.innerWidth>0?window.innerWidth:document.documentElement.clientWidth)>1024&&slideout()}document.addEventListener("scroll",scroll);