This commit is contained in:
@@ -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%;
|
||||
|
||||
Reference in New Issue
Block a user