Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpninja authored Apr 8, 2024
1 parent 4f60c9f commit 7cad490
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,25 @@
<dir style='height: 5%; display: flex;'>
<button type='button' onclick='showMajor()'>Major</button>
<button type='button' onclick='showChromatic()'>Chromatic</button>
<button type='button' onclick='showPentatonic()'>Pentatonic</button>
</dir>
<script type='text/javascript'>
function showMajor() {
document.getElementById('major').style='display: block;';
document.getElementById('chromatic').style='display: none;';
document.getElementById('pentatonic').style='display: none;';
}

function showChromatic() {
document.getElementById('major').style='display: none;';
document.getElementById('chromatic').style='display: block;';
document.getElementById('pentatonic').style='display: none;';
}

function showPentatonic() {
document.getElementById('major').style='display: none;';
document.getElementById('chromatic').style='display: none;';
document.getElementById('pentatonic').style='display: block;';
}
</script>
<div id="major">
Expand All @@ -28,6 +37,14 @@
<div class="pitch major major-d">D 2</div>
<div class="pitch major major-c">C 1</div>
</div>
<div id="pentatonic" style='display:none'>
<div class="pitch major major-c">C 8</div>
<div class="pitch major major-a">A 6</div>
<div class="pitch major major-g">G 5</div>
<div class="pitch major major-e">E 3</div>
<div class="pitch major major-d">D 2</div>
<div class="pitch major major-c">C 1</div>
</div>
<div id="chromatic" style='display: none;'>
<div class="pitch chromatic chromatic-b">B 7</div>
<div class="pitch chromatic chromatic-as">A# Bb</div>
Expand All @@ -40,7 +57,7 @@
<div class="pitch chromatic chromatic-ds">D# Eb</div>
<div class="pitch chromatic chromatic-d">D 2</div>
<div class="pitch chromatic chromatic-cs">C# Db</div>
<div class="pitch chromatic-c">C 1</div>
<div class="pitch chromatic chromatic-c">C 1</div>
</div>
</body>
</html>

0 comments on commit 7cad490

Please sign in to comment.