Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrglm committed Sep 15, 2024
1 parent 5e1047f commit 731c14f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ document.addEventListener("DOMContentLoaded", function () {

if (chordCurrent.innerHTML != chord.innerHTML) {
chordCurrent.innerHTML = chord.innerHTML;
chordDiagramCurrent.src = `./diagrams/${instrument}/${simplifyChord(chord.innerHTML)}.png`;
chordDiagramCurrent.src = `./engine/diagrams/${instrument}/${simplifyChord(chord.innerHTML)}.png`;
}

if (chordNext.innerHTML != chord.nextElementSibling.innerHTML) {
chordNext.innerHTML = chord.nextElementSibling.innerHTML;
chordDiagramNext.src = `./diagrams/${instrument}/${simplifyChord(chord.nextElementSibling.innerHTML)}.png`;
chordDiagramNext.src = `./engine/diagrams/${instrument}/${simplifyChord(chord.nextElementSibling.innerHTML)}.png`;
}
}
});
Expand Down

0 comments on commit 731c14f

Please sign in to comment.