From 828e45991985cc8e4b25b8c3205327962ee36e12 Mon Sep 17 00:00:00 2001 From: "Glitch (glitch-hello-website)" Date: Mon, 23 Dec 2024 03:37:00 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B7=E2=8F=B3=20Checkpoint=20./scripts/?= =?UTF-8?q?zines.js:69682263/523?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/zines.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/zines.js b/scripts/zines.js index 1656b84..34684ab 100644 --- a/scripts/zines.js +++ b/scripts/zines.js @@ -167,4 +167,12 @@ let p0 = document.createElement("p"); p0.innerHTML = total + " artists."; zineCounter.append(p0); -let formats = zines.map(zine => zine.format); \ No newline at end of file +let physical = zines.filter((zine) => zine.format == "physical" || zine.format == "physical/digital").length; +let p1 = document.createElement("p"); +p1.innerHTML = physical + " physical zines."; +zineCounter.append(p1); + +let digital = zines.filter((zine) => zine.format == "digital" || zine.format == "physical/digital").length; +let p2 = document.createElement("p"); +p2.innerHTML = digital + " digital zines."; +zineCounter.append(p2); \ No newline at end of file