Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
momentollogy committed Apr 13, 2023
1 parent a44f371 commit 4ede59a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -644,11 +644,16 @@ <h1>Arduino Piano Buzzer Song Creator V1 <br> <small>by momentollogy</small><br>
}


document.getElementById('postSongButton').addEventListener('click', saveSong);
document.getElementById('postSongButton').addEventListener('click', () => {
console.log('Post Song button clicked'); // Add this line
saveSong();
});
document.getElementById('loadSongButton').addEventListener('click', loadSong);


function saveSong() {
console.log('saveSong function called'); // Add this line

try {
const songTitle = document.getElementById("song-title").value || "Untitled_Song";
const songLength = recordedNotes.length;
Expand Down

0 comments on commit 4ede59a

Please sign in to comment.