This commit is contained in:
DelLevin-Home
2026-05-18 22:13:57 +08:00
parent 4f52069560
commit e271cf342b
2 changed files with 29 additions and 4 deletions

View File

@@ -101,7 +101,8 @@
const globalIndex = startIndex + index;
html += `
<div class="photo-album-item" onclick="window.openPhotoLightbox(${globalIndex})">
<img src="${photo.src}" alt="照片 ${photo.id}" loading="lazy" onload="this.style.opacity=1">
<div class="photo-loading-spinner"></div>
<img src="${photo.src}" alt="照片 ${photo.id}" loading="lazy" onload="this.style.opacity=1; this.previousElementSibling.style.display='none'">
</div>
`;
});