bilden
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-05-09 14:00:14 +00:00
parent 9bd6c0931f
commit dc75d25da1
1 changed files with 4 additions and 2 deletions

View File

@ -5,11 +5,13 @@ title: Start
<script> <script>
function scrollToContent() { function scrollToContent() {
const element = document.getElementById("main-content"); const element = document.getElementById("main-content");
const yOffset = -60; const yOffset = -60; // scrolla 20px ovanför elementet
const y = element.getBoundingClientRect().top + window.pageYOffset + yOffset; const y = element.getBoundingClientRect().top + window.pageYOffset + yOffset;
window.scrollTo({ top: y, behavior: 'smooth' }); window.scrollTo({ top: y, behavior: 'smooth' });
} }
// Göm knappen vid scroll
window.addEventListener('scroll', () => { window.addEventListener('scroll', () => {
const button = document.getElementById('scrollButton'); const button = document.getElementById('scrollButton');
if (window.scrollY > 10) { if (window.scrollY > 10) {
@ -62,7 +64,7 @@ title: Start
<!-- Mellanrum --> <!-- Mellanrum -->
<div style="height: 90vh;"></div> <div style="height: 90vh;"></div>
<div id="main-content class="ascii-wrapper"> <div id="main-content" class="ascii-wrapper">
<pre><code><div align="center"> <pre><code><div align="center">
______ __ ______ ______ __ __ ______ __ ______ ______ __ __
/\ ____\ |\_\ /\ ____\ /\ ____\ |\_\ |\_\ /\ ____\ |\_\ /\ ____\ /\ ____\ |\_\ |\_\