What is Nostr?
Targoyle / たーごいる
npub1tar…hjvn
2024-11-05 06:23:59

Targoyle on Nostr: ``` function loadImagesForDate(separatorElement, date) { const imageObjsForDate = ...

```
function loadImagesForDate(separatorElement, date) {
const imageObjsForDate = images.filter(imageObj => imageObj.date.slice(0, 7) === date);
imageObjsForDate.reverse();

imageObjsForDate.forEach(function (imageObj, index) {
var imageContainer = document.createElement("div");
imageContainer.className = "imageContainer";

var imgElement = document.createElement("img");
imgElement.src = baseImageUrl + imageObj.name;
imgElement.title = imageObj.date;
imgElement.loading = "lazy";
imgElement.onclick = openModal;

imageContainer.appendChild(imgElement);
imageGrid.insertBefore(imageContainer, separatorElement.nextSibling);
});

separatorElement.classList.add('loaded');
separatorElement.style.color = '#515151';
}
```
Author Public Key
npub1targ0yle577hpqnumt2u2em78eve07jn6zfq42kyuvp2cr2garnseahjvn