about: added scroll animation and cleaned old links

This commit is contained in:
2023-02-21 22:20:17 +11:00
parent b768b47f53
commit 293f2f4f5c
5 changed files with 65 additions and 13 deletions

30
assets/js/about.js Normal file
View File

@@ -0,0 +1,30 @@
function slideout() {
bodydiv = document.querySelector("body");
bodydiv.style.top = "-100%";
setTimeout(function() {
window.location.href = "/"
bodydiv.style.top = "0px";
}, 1000)
}
// jQuery(document).ready(function(){
// function resizeForm(){
// var width = (window.innerWidth > 0) ? window.innerWidth : document.documentElement.clientWidth;
// if(width > 1024){
// } else {
// }
// }
// window.onresize = resizeForm;
// resizeForm();
// });
document.addEventListener("scroll", scroll);
function scroll() {
var width = (window.innerWidth > 0) ? window.innerWidth : document.documentElement.clientWidth;
if(width > 1024){
slideout();
}
}