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
66e0cac992
commit
380ed2a700
|
@ -6,6 +6,13 @@ title: Meshtastic
|
||||||
function scrollToContent() {
|
function scrollToContent() {
|
||||||
document.getElementById("main-content").scrollIntoView({ behavior: "smooth" });
|
document.getElementById("main-content").scrollIntoView({ behavior: "smooth" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.addEventListener('scroll', () => {
|
||||||
|
const button = document.getElementById('scrollButton');
|
||||||
|
if (window.scrollY > 10) {
|
||||||
|
button.style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<video autoplay loop muted playsinline
|
<video autoplay loop muted playsinline
|
||||||
|
@ -27,7 +34,7 @@ title: Meshtastic
|
||||||
Din webbläsare stödjer inte video.
|
Din webbläsare stödjer inte video.
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
<button onclick="scrollToContent()"
|
<button id="scrollButton" onclick="scrollToContent()"
|
||||||
style="position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
|
style="position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
|
||||||
padding: 12px 24px; font-size: 1.2rem;
|
padding: 12px 24px; font-size: 1.2rem;
|
||||||
background-color: #ffffffcc; border: none; border-radius: 8px;
|
background-color: #ffffffcc; border: none; border-radius: 8px;
|
||||||
|
@ -35,6 +42,7 @@ title: Meshtastic
|
||||||
↓ Se mer
|
↓ Se mer
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
||||||
<!-- Mellanrum -->
|
<!-- Mellanrum -->
|
||||||
<div style="height: 90vh;"></div>
|
<div style="height: 90vh;"></div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue