diff --git a/script/gallery.ts b/script/gallery.ts index 9e8cbdc..44f7b58 100644 --- a/script/gallery.ts +++ b/script/gallery.ts @@ -22,7 +22,7 @@ function updateItems() { const anyReq = reqTags.size > 0; for (const [year, items] of itemsByYear) { - let hide = true; + let hideMarker = true; for (const item of items) { const req = tags.get(item)?.some(x => reqTags.has(x)) ?? false; @@ -30,11 +30,11 @@ function updateItems() { const hidden = exc || (anyReq && !req); item.hidden = hidden; - hide &&= hidden; + hideMarker &&= hidden; } const marker = document.getElementById(`marker-${year}`); - if (marker !== null) marker.hidden = hide; + if (marker !== null) marker.hidden = hideMarker; } function disp(pfx: string, tags: Iterable) {