Skip to content

Commit

Permalink
changedScaleText now sets id as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gawainhewitt committed Sep 20, 2022
1 parent 09e796f commit 864b8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ function changeScaleText() {
for (let i = 0; i < 9; i++) {
let element = `#image${i}`;
let note = notes[i];
document.querySelector(element).innerHTML = `<h2>${note.slice(0, -1)}</h2>`;
document.querySelector(element).innerHTML = `<h2 id="i${i}>${note.slice(0, -1)}</h2>`;
}
}

Expand Down

0 comments on commit 864b8b3

Please sign in to comment.