first webbie!!

This commit is contained in:
esefxdz committed 2025-07-11 14:12:52 +03:00
commit 6c07be0bd7
32 files changed
+252

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
document.addEventListener('DOMContentLoaded', () => {
const galleryContainer = document.getElementById('gallery-container');
const totalImages = 50; // number of images you want to load
for (let i = 1; i <= totalImages; i++) {
const img = document.createElement('img');
img.src = `gallery/${i}.jpg`; // assuming .jpg extension, change if needed
img.alt = `Image ${i}`;
img.onerror = () => { img.style.display = 'none'; }; // hide broken images
galleryContainer.appendChild(img);
}
});