This commit is contained in:
@@ -11,6 +11,15 @@ title: Start
|
||||
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>
|
||||
|
||||
<script>
|
||||
window.addEventListener('scroll', () => {
|
||||
const header = document.querySelector('.md-header');
|
||||
@@ -25,15 +34,6 @@ title: Start
|
||||
});
|
||||
</script>
|
||||
|
||||
// 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%;
|
||||
|
||||
Reference in New Issue
Block a user