From 380ed2a7001b8956a23d509218f5d80c67cb9c76 Mon Sep 17 00:00:00 2001 From: sa6anw Date: Thu, 8 May 2025 20:52:20 +0000 Subject: [PATCH] Felix i Jannes Mast --- docs/meshtastic.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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'; + } + });