diff --git a/app.js b/app.js index c5b71d7..f0f92bc 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,4 @@ -//DOM selectors + showNotes(); let addbtn = document.getElementById("addBtn"); let done = document.getElementById("editBtn"); @@ -7,12 +7,10 @@ let searchTxt = document.getElementById("searchTxt"); let heading = document.getElementById("heading"); let volumeButton = document.getElementById('mute-button'); done.style.visibility="hidden"; -//Event listeners + addbtn.addEventListener("click", addaNote); searchTxt.addEventListener("input", searchtext); -//Functions -// let notesArray=[] function showNotes() { let notes = localStorage.getItem("notes"); if (notes == null) { @@ -165,4 +163,4 @@ function toggleMute() { volumeButton.classList.remove('fa-volume-up'); volumeButton.classList.add('fa-volume-mute'); } -} \ No newline at end of file +} diff --git a/index.html b/index.html index 7672c27..22d2374 100644 --- a/index.html +++ b/index.html @@ -2,77 +2,58 @@
- - - - -
- Note Created Successfully!
-