-
Notifications
You must be signed in to change notification settings - Fork 0
/
display.js
52 lines (42 loc) · 1.52 KB
/
display.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Menu Setup Part 1
const NS1Button = document.getElementById('preloadedNS')
const NS2Button = document.getElementById('customNS')
const NSOptions = document.getElementById('preloadedOptions')
const pianoContainer = document.getElementById('pianoContainer')
NS1Button.onclick = () => {
console.log("show options");
pianoContainer.setAttribute("hidden", "");
NSOptions.removeAttribute("hidden");
}
NS2Button.onclick = () => {
console.log("show piano");
NSOptions.setAttribute("hidden", "");
pianoContainer.removeAttribute("hidden");
}
//Menu Setup Part 2
const inputChordsButton = document.getElementById('inputChords')
const noChordsButton = document.getElementById('noChords')
const chordSelector = document.getElementById('chordSelector')
const noChordSelector = document.getElementById('noChordsSelector')
noChordsButton.onclick = () => {
console.log("hide chords");
chordSelector.setAttribute("hidden", "");
noChordSelector.removeAttribute("hidden");
shouldUseChords = false
}
inputChordsButton.onclick = () => {
console.log("show chords");
chordSelector.removeAttribute("hidden");
noChordSelector.setAttribute("hidden", "");
}
//navigation
const continueButton1 = document.getElementById('continue1')
const section2 = document.getElementById('settings')
continueButton1.onclick = () => {
section2.scrollIntoView();
}
// const continueButton2 = document.getElementById('finishedPlaying')
const section3 = document.getElementById('create')
// continueButton2.onclick = () => {
// section3.scrollIntoView();
// }