🎄🏥 Checkpoint
./scripts/zines.js:69682263/864 ./zines/index.html:69682263/225
This commit is contained in:
@ -20,7 +20,7 @@ function makeZine({ name, blurb, format, site, title }) {
|
|||||||
let bqP = document.createElement("p");
|
let bqP = document.createElement("p");
|
||||||
bqP.innerHTML = blurb;
|
bqP.innerHTML = blurb;
|
||||||
bq.append(bqP);
|
bq.append(bqP);
|
||||||
zine.append(bq);d
|
zine.append(bq);
|
||||||
|
|
||||||
return zine;
|
return zine;
|
||||||
}
|
}
|
||||||
@ -52,7 +52,10 @@ function makeZinePage(zines) {
|
|||||||
|
|
||||||
let zineContainer = document.getElementById("zine-container");
|
let zineContainer = document.getElementById("zine-container");
|
||||||
|
|
||||||
fetch("/scripts/zines2025.json")
|
let script = document.currentScript;
|
||||||
|
let zinefile = script.dataset.zinefile;
|
||||||
|
|
||||||
|
fetch(zinefile)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error, status = ${response.status}`);
|
throw new Error(`HTTP error, status = ${response.status}`);
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<!-- The website JavaScript file -->
|
<!-- The website JavaScript file -->
|
||||||
<script src="/scripts/footer.js" defer></script>
|
<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>
|
<script src="/scripts/wip.js" defer></script>
|
||||||
|
|
||||||
<!-- Meta -->
|
<!-- Meta -->
|
||||||
|
|||||||
Reference in New Issue
Block a user