From 5c98e03d6024fca29b2f3790dde53fb8b9338807 Mon Sep 17 00:00:00 2001 From: "Glitch (fedizinefest)" Date: Fri, 23 May 2025 16:47:52 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=84=F0=9F=8F=A5=20Checkpoint=20./scrip?= =?UTF-8?q?ts/zines.js:69682263/864=20./zines/index.html:69682263/225?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/zines.js | 7 +++++-- zines/index.html | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/zines.js b/scripts/zines.js index e50d2be..be714f8 100644 --- a/scripts/zines.js +++ b/scripts/zines.js @@ -20,7 +20,7 @@ function makeZine({ name, blurb, format, site, title }) { let bqP = document.createElement("p"); bqP.innerHTML = blurb; bq.append(bqP); - zine.append(bq);d + zine.append(bq); return zine; } @@ -52,7 +52,10 @@ function makeZinePage(zines) { let zineContainer = document.getElementById("zine-container"); -fetch("/scripts/zines2025.json") +let script = document.currentScript; +let zinefile = script.dataset.zinefile; + +fetch(zinefile) .then((response) => { if (!response.ok) { throw new Error(`HTTP error, status = ${response.status}`); diff --git a/zines/index.html b/zines/index.html index 7df21b7..7415fc6 100644 --- a/zines/index.html +++ b/zines/index.html @@ -16,7 +16,7 @@ - +