Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ohnoitsalobo committed Jul 11, 2024
1 parent 1f1d777 commit febbb82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions noteCircle/new/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@
</table>
</div>
</div>
<div>
<div id="img">
<center>
<table>
<tr>
<td style="min-width:70px;">
<div style="text-align: right; font-family: Georgia; font-size: 0.7em;">
<div style="text-align: right; font-family: Georgia; font-size: 0.6em;">
Treble clef<br />(G clef) <br /><br />
Alto clef<br />(C clef) <br /><br />
Bass clef<br />(F clef) <br /><br />
Mandolin<br />tablature <br /><br />
Mandolin<br />tablature <br /><br /><br />
Guitar<br />tablature <br /><br />
</div>
</td>
Expand Down
4 changes: 3 additions & 1 deletion noteCircle/new/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ key_Select.addEventListener("change", event => {
let _t = key_Select.selectedOptions[0].innerHTML + " | ";

x.innerHTML = _t + allModesList[scale_Select.selectedIndex][mode_Select.selectedIndex];
if(!lockNotes) drawNotes();
drawNotes();
});

scale_Select.addEventListener("wheel", event => {
Expand All @@ -87,6 +87,7 @@ scale_Select.addEventListener("change", event => {
let x = document.getElementById("modeSelectText");
let y = document.getElementById("modeSelect");
let z = document.getElementById("lockNotes").parentElement;
document.getElementById("img").style.display = "";
x.style.display = '';
y.style.display = '';
z.style.display = '';
Expand Down Expand Up @@ -116,6 +117,7 @@ scale_Select.addEventListener("change", event => {
x.style.display = 'none';
y.style.display = 'none';
z.style.display = 'none';
document.getElementById("img").style.display = "none";
y.selectedIndex = 0; y.dispatchEvent(new CustomEvent("change"));
}
drawNotes();
Expand Down

0 comments on commit febbb82

Please sign in to comment.