From 762300dcafca15acf33636425297fe21f0e4d292 Mon Sep 17 00:00:00 2001 From: rhiannon morris Date: Sun, 7 Jul 2024 20:45:02 +0200 Subject: [PATCH] rename a variable --- script/gallery.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {