🍴🍇 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);
|
||||
|
||||
if (title) {
|
||||
let p1 = document.createElement("p");
|
||||
p1.innerHTML = " made a " + format + " zine called ";
|
||||
zine.append(p1);
|
||||
if (typeof title == "string") {
|
||||
let p = document.createElement("p");
|
||||
p.innerHTML = " made a " + format + " zine called ";
|
||||
zine.append(p);
|
||||
|
||||
let h3 = document.createElement("h3");
|
||||
if
|
||||
h3.innerHTML = title;
|
||||
zine.append(h3);
|
||||
} else {
|
||||
let p = document.createElement("p");
|
||||
p.innerHTML = " made " + format + " zines called ";
|
||||
zine.append(p);
|
||||
|
||||
let p2 = document.createElement("p");
|
||||
p2.innerHTML = "the original blurb was:";
|
||||
zine.append(p2);
|
||||
for (let i = 0; i < title.length; i++) {
|
||||
let h3 = document.createElement("h3");
|
||||
h3.innerHTML = title[i];
|
||||
zine.append(h3);
|
||||
}
|
||||
}
|
||||
|
||||
let p = document.createElement("p");
|
||||
p.innerHTML = "and the original blurb was";
|
||||
zine.append(p);
|
||||
} else {
|
||||
let p = document.createElement("p");
|
||||
p.innerHTML = " is making a " + format + " zine:";
|
||||
|
||||
Reference in New Issue
Block a user