Felix i Jannes Mast
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-05-08 20:55:59 +00:00
parent 380ed2a700
commit 2be12a1d9e
1 changed files with 7 additions and 1 deletions

View File

@ -4,9 +4,14 @@ title: Meshtastic
<script>
function scrollToContent() {
document.getElementById("main-content").scrollIntoView({ behavior: "smooth" });
const element = document.getElementById("main-content");
const yOffset = -20; // scrolla 20px ovanför elementet
const y = element.getBoundingClientRect().top + window.pageYOffset + yOffset;
window.scrollTo({ top: y, behavior: 'smooth' });
}
// Göm knappen vid scroll
window.addEventListener('scroll', () => {
const button = document.getElementById('scrollButton');
if (window.scrollY > 10) {
@ -15,6 +20,7 @@ title: Meshtastic
});
</script>
<video autoplay loop muted playsinline
style="position: absolute; left: 0;
height: 77vh; width: 100%;