bilden
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9bd6c0931f
commit
dc75d25da1
|
@ -5,11 +5,13 @@ title: Start
|
|||
<script>
|
||||
function scrollToContent() {
|
||||
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;
|
||||
|
||||
window.scrollTo({ top: y, behavior: 'smooth' });
|
||||
}
|
||||
|
||||
// Göm knappen vid scroll
|
||||
window.addEventListener('scroll', () => {
|
||||
const button = document.getElementById('scrollButton');
|
||||
if (window.scrollY > 10) {
|
||||
|
@ -62,7 +64,7 @@ title: Start
|
|||
<!-- Mellanrum -->
|
||||
<div style="height: 90vh;"></div>
|
||||
|
||||
<div id="main-content class="ascii-wrapper">
|
||||
<div id="main-content" class="ascii-wrapper">
|
||||
<pre><code><div align="center">
|
||||
______ __ ______ ______ __ __
|
||||
/\ ____\ |\_\ /\ ____\ /\ ____\ |\_\ |\_\
|
||||
|
|
Loading…
Reference in New Issue