about: added scroll animation and cleaned old links
This commit is contained in:
30
assets/js/about.js
Normal file
30
assets/js/about.js
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user