🎄🏥 Checkpoint

./scripts/zines.js:69682263/864
./zines/index.html:69682263/225
This commit is contained in:
Glitch (fedizinefest)
2025-05-23 16:47:52 +00:00
parent 82057eea0f
commit 5c98e03d60
2 changed files with 6 additions and 3 deletions

View File

@ -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}`);

View File

@ -16,7 +16,7 @@
<!-- The website JavaScript file -->
<script src="/scripts/footer.js" defer></script>
<script src="/scripts/zines.js" defer></script>
<script src="/scripts/zines.js" data-zinefile="/zines/2025.json" defer></script>
<script src="/scripts/wip.js" defer></script>
<!-- Meta -->