made expanded view scroll like mobile with sticky less button reset scroll on collapse
This commit is contained in:
1 parent
964b15ad4f
commit
23e51e8093
2 files changed
+20
-20
No files matched your search
@@ -22,4 +22,8 @@ var now = new Date();
|
||||
document.getElementById("age").textContent = now.getFullYear() - 2003 - (now.getMonth() < 8 ? 1 : 0);
|
||||
document.getElementById("linux-years").textContent = now.getFullYear() - 2017;
|
||||
|
||||
window.addEventListener("hashchange", () => {
|
||||
if(location.hash !== "#details") document.querySelector(".card .back").scrollTop = 0;
|
||||
});
|
||||
|
||||
requestAnimationFrame(() => requestAnimationFrame(() => document.documentElement.classList.remove("preload")));
|
||||
Reference in new issue
Block a user