Fix
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
59db29a027
commit
a698b7cc43
|
@ -2,6 +2,24 @@
|
|||
title: Start
|
||||
---
|
||||
|
||||
<script>
|
||||
function scrollToContent() {
|
||||
const element = document.getElementById("main-content");
|
||||
const yOffset = -60; // 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) {
|
||||
button.style.display = 'none';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<video autoplay loop muted playsinline
|
||||
style="position: absolute; left: 0;
|
||||
height: 77vh; width: 100%;
|
||||
|
@ -22,15 +40,18 @@ title: Start
|
|||
Din webbläsare stödjer inte video.
|
||||
</video>
|
||||
|
||||
|
||||
<button id="scrollButton" onclick="scrollToContent()"
|
||||
style="position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%);
|
||||
padding: 12px 24px; font-size: 1.2rem;
|
||||
background-color: #ffffffcc; border: none; border-radius: 8px;
|
||||
cursor: pointer; z-index: 10;">
|
||||
↓
|
||||
</button>
|
||||
|
||||
<!-- Mellanrum -->
|
||||
<div style="height: 90vh;"></div>
|
||||
|
||||
---
|
||||
# SA6ANW
|
||||
|
||||
<div class="ascii-wrapper">
|
||||
<div id="main-content" class="ascii-wrapper">
|
||||
<pre><code><div align="center">
|
||||
______ ______ ______ ______ __ __ __ __
|
||||
/\ ____\ /\ ____\ /\ ____\ /\ ____\ |\_\ |\_\ |\_\ _ |\_\
|
||||
|
|
Loading…
Reference in New Issue