Skip to content

Commit

Permalink
Fix loading bug 🛠️
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasvanleeuwen19 committed Oct 23, 2024
1 parent a86136c commit afea58c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ document.addEventListener('keydown', function(event) {
}
}
});

window.addEventListener('DOMContentLoaded', function() {
const sections = document.querySelectorAll('section');
if (sections.length > 0) {
sections[0].scrollIntoView({ behavior: 'smooth' });
}
});

window.addEventListener('scroll', e => {
var el = document.getElementById('jsScroll');
Expand Down

0 comments on commit afea58c

Please sign in to comment.