Public
Edited
Mar 7, 2023
Insert cell
Insert cell
front = {
const frontDiv = document.createElement("div");

mintables.forEach((gen) => {
const mintableDiv = document.createElement("div");
const display = gen.entireCollection[
rint(gen.entireCollection.length)
].displayUri.replace("ipfs:/", "https://gateway.fxhash2.xyz/ipfs");
const img = new Image();
img.height = 200;
img.src = display;
mintableDiv.append(img);
frontDiv.append(mintableDiv);
});

return frontDiv;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
rint = (n) => Math.floor(Math.random() * n)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more