Random responsive improvements

This commit is contained in:
2024-07-21 19:29:04 +02:00
parent 4fe78c0fa4
commit 63553c9955
15 changed files with 373 additions and 50 deletions

View File

@@ -16,6 +16,12 @@ document.addEventListener('DOMContentLoaded', () => {
if (navbar || punch || homeTitle) {
let lastScrollY = window.scrollY;
window.addEventListener('mousemove', (event) => {
if (navbar && event.clientY < 100) {
navbar.style.top = '0';
}
});
window.addEventListener('scroll', () => {
let currentScrollY = window.scrollY;