Skip to content

Commit

Permalink
Merge pull request #5 from SquareScreamYT/main
Browse files Browse the repository at this point in the history
  • Loading branch information
slweeb authored May 2, 2024
2 parents 18c8526 + 9c92b01 commit 6cf00e8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions edit_size.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const controls = document.getElementById("prepControls");

const setSizeButton = document.createElement("button");
setSizeButton.id = "button-imageButton";
setSizeButton.onclick = () => {
const size = prompt("Enter Food Size (default is 3)");
if (isNaN(parseFloat(size))) alert("Size must be a number!");
else foodScale = size;
}
const sizeImage = document.createElement("img");
sizeImage.src = "../shapes/png/arrow_diagonal_forward.png";
sizeImage.className = "pixelart";
setSizeButton.appendChild(sizeImage);

controls.append(setSizeButton)
3 changes: 3 additions & 0 deletions unhide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
for (ingredient in ingredients) {
ingredients[ingredient].hidden = false;
}

0 comments on commit 6cf00e8

Please sign in to comment.