From 21c5ddd2c92de0f45c4737084fd77f11f2ac4779 Mon Sep 17 00:00:00 2001 From: sa6anw Date: Fri, 9 May 2025 20:22:40 +0000 Subject: [PATCH] Fix --- docs/meshtastic.md | 63 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 51 insertions(+), 12 deletions(-) diff --git a/docs/meshtastic.md b/docs/meshtastic.md index 60ee3e6..3d00186 100644 --- a/docs/meshtastic.md +++ b/docs/meshtastic.md @@ -11,32 +11,72 @@ title: Meshtastic window.scrollTo({ top: y, behavior: 'smooth' }); } - // Göm knappen vid scroll - window.addEventListener('scroll', () => { - const button = document.getElementById('scrollButton'); - if (window.scrollY > 10) { - button.style.display = 'none'; +window.addEventListener('scroll', () => { + const button = document.getElementById('scrollButton'); + if (window.scrollY > 10) { + button.style.opacity = '0'; + button.style.pointerEvents = 'none'; + } else { + button.style.opacity = '1'; + button.style.pointerEvents = 'auto'; + } +}); + + + - + @@ -48,9 +88,8 @@ title: Meshtastic ↓ - -
+