more code

This commit is contained in:
Smigz 2025-01-17 22:45:33 -05:00
parent 17d664eaeb
commit 6fb88b315a
10 changed files with 130 additions and 14 deletions

View file

@ -0,0 +1,14 @@
function addForm() {
let buttonClicked = true;
const addForm = document.querySelector(".add-form");
const button = document.querySelector(".add-btn");
button.addEventListener("click", () => {
buttonClicked
? (addForm.style.display = " block")
: (addForm.style.display = "none");
buttonClicked = !buttonClicked;
});
}
export { addForm };