Files
fedizinefest-deprecated/scripts/zines.js
T

56 lines
1.5 KiB
JavaScript
Raw Normal View History

2024-12-13 01:03:15 +00:00
let zines = [
2024-12-20 05:19:19 +00:00
/* {
"name": "",
"site": "",
"format": "",
"blurb": ""
},
*/
{
"name": "Evel",
"site": "https://evel.life",
"format": "digital",
"blurb": "About severe disability with a bit extra on being a caregiver"
},
{
"name": "gup",
"site": "https://cyberpunk.gay/@glyph",
"format": "physical/digital",
"blurb": "fortune teller/ cootie catcher foldable. prefolded for physical, print and fold yourself for digital. decorated with hand carved stamps. black and white. i need to buy nice paper."
},
2024-12-13 01:03:15 +00:00
{
2024-12-20 04:30:38 +00:00
"name": "Handmade Ghost",
"site": "https://handmadeghost.neocities.org/",
"blurb": "This will be either a birds-n-poetry zine, a zine on rural Oregon, or a zine on disability and birding (or, very likely, all three).",
"format": "physical"
2024-12-13 01:03:15 +00:00
}
2024-12-13 01:14:39 +00:00
]
function makeZine({name, blurb, format, site, fedi}) {
2024-12-13 23:04:38 +00:00
let zine = document.createElement("li");
2024-12-13 01:14:39 +00:00
2024-12-13 02:01:49 +00:00
let h2 = document.createElement("h2");
2024-12-13 23:04:38 +00:00
let a = document.createElement("a");
a.innerHTML = name;
a.href = site;
h2.append(a);
2024-12-13 02:01:49 +00:00
zine.append(h2);
2024-12-13 01:14:39 +00:00
let p = document.createElement("p");
2024-12-20 04:30:38 +00:00
p.innerHTML = " is making a " + format + " zine:";
2024-12-13 01:14:39 +00:00
zine.append(p);
2024-12-13 01:26:43 +00:00
let bq = document.createElement("blockquote");
let bqP = document.createElement("p");
bqP.innerHTML = blurb;
bq.append(bqP);
zine.append(bq);
2024-12-13 01:14:39 +00:00
return zine;
}
let zineContainer = document.getElementById("zine-container");
for (let i = 0; i < zines.length; i++) {
2024-12-13 02:01:49 +00:00
zineContainer.append(makeZine(zines[i]));
2024-12-13 01:14:39 +00:00
}