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