Felix i Jannes Mast
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
380ed2a700
commit
2be12a1d9e
|
@ -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%;
|
||||
|
|
Loading…
Reference in New Issue