diff --git a/docs/meshtastic.md b/docs/meshtastic.md index 440cece..9b1287e 100644 --- a/docs/meshtastic.md +++ b/docs/meshtastic.md @@ -6,6 +6,13 @@ title: Meshtastic function scrollToContent() { document.getElementById("main-content").scrollIntoView({ behavior: "smooth" }); } + + window.addEventListener('scroll', () => { + const button = document.getElementById('scrollButton'); + if (window.scrollY > 10) { + button.style.display = 'none'; + } + });