🍴🍇 Checkpoint
./scripts/zines.js:69682263/14325
This commit is contained in:
@ -13,18 +13,29 @@ function makeZine({ name, blurb, format, site, title }) {
|
|||||||
zine.append(h2);
|
zine.append(h2);
|
||||||
|
|
||||||
if (title) {
|
if (title) {
|
||||||
let p1 = document.createElement("p");
|
if (typeof title == "string") {
|
||||||
p1.innerHTML = " made a " + format + " zine called ";
|
let p = document.createElement("p");
|
||||||
zine.append(p1);
|
p.innerHTML = " made a " + format + " zine called ";
|
||||||
|
zine.append(p);
|
||||||
|
|
||||||
let h3 = document.createElement("h3");
|
let h3 = document.createElement("h3");
|
||||||
if
|
|
||||||
h3.innerHTML = title;
|
h3.innerHTML = title;
|
||||||
zine.append(h3);
|
zine.append(h3);
|
||||||
|
} else {
|
||||||
|
let p = document.createElement("p");
|
||||||
|
p.innerHTML = " made " + format + " zines called ";
|
||||||
|
zine.append(p);
|
||||||
|
|
||||||
let p2 = document.createElement("p");
|
for (let i = 0; i < title.length; i++) {
|
||||||
p2.innerHTML = "the original blurb was:";
|
let h3 = document.createElement("h3");
|
||||||
zine.append(p2);
|
h3.innerHTML = title[i];
|
||||||
|
zine.append(h3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let p = document.createElement("p");
|
||||||
|
p.innerHTML = "and the original blurb was";
|
||||||
|
zine.append(p);
|
||||||
} else {
|
} else {
|
||||||
let p = document.createElement("p");
|
let p = document.createElement("p");
|
||||||
p.innerHTML = " is making a " + format + " zine:";
|
p.innerHTML = " is making a " + format + " zine:";
|
||||||
|
|||||||
Reference in New Issue
Block a user