This commit is contained in:
@@ -5,7 +5,7 @@ title: Meshtastic
|
|||||||
<script>
|
<script>
|
||||||
function scrollToContent() {
|
function scrollToContent() {
|
||||||
const element = document.getElementById("main-content");
|
const element = document.getElementById("main-content");
|
||||||
const yOffset = -20; // scrolla 20px ovanför elementet
|
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' });
|
||||||
|
|||||||
Reference in New Issue
Block a user