JS und CSS Dateien hinzugefügt, Navbar-Component hinzugefügt, Fonts korrigiert

This commit is contained in:
2025-04-04 20:47:38 +02:00
parent b4dca8e5b0
commit 1b31a84e18
22 changed files with 2172 additions and 6 deletions
+16
View File
@@ -0,0 +1,16 @@
const lazyClass = 'lazy-loading';
const lazyImages = document.querySelectorAll(`.${lazyClass}`);
const lazyObserver = new IntersectionObserver((elements) => {
elements.forEach((element) => {
if (element.isIntersecting) {
const image = element.target;
image.src=image.dataset.src;
lazyObserver.unobserve(image);
}
})
})
lazyImages.forEach(image => {
lazyObserver.observe(image);
})