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