/* 🍔 Custom Burger Styles */ #jokeBurger { position: fixed; top: 20px; right: 20px; width: 40px; height: 32px; display: none; flex-direction: column; justify-content: space-between; cursor: pointer; z-index: 9999; } #jokeBurger .bar { height: 5px; width: 100%; background: black; border-radius: 2px; } /* 📋 Dropdown Menu */ #jokeDropdown { display: none; position: fixed; top: 65px; right: 20px; background: white; border: 2px solid black; padding: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 9998; } body.jokeMenuOpen #jokeDropdown { display: block; } .jokester-menu { list-style: none
JokesterBay Logo

Submit A Joke

let lastScroll = 0; const burger = document.getElementById('jokeBurger'); window.addEventListener('scroll', () => { const currentScroll = window.pageYOffset; const nearBottom = window.innerHeight + window.scrollY >= document.body.offsetHeight - 10; if (currentScroll > 100 && (currentScroll < lastScroll || nearBottom)) { document.body.classList.add('scroll-active'); } else { document.body.classList.remove('scroll-active'); document.body.classList.remove('jokeMenuOpen'); } lastScroll = currentScroll; });