const showNotesButton = document.getElementById("showNotesButton"); const notesContainer = document.getElementById("notesContainer"); showNotesButton.addEventListener("click", () => { if (notesContainer.style.display === "none" || notesContainer.style.display === "") { notesContainer.style.display = "flex"; showNotesButton.textContent = "Hide Notes"; // Change the button text } else { notesContainer.style.display = "none"; showNotesButton.textContent = "Show Notes"; // Change the button text } });