-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.html
More file actions
252 lines (183 loc) · 8.68 KB
/
notes.html
File metadata and controls
252 lines (183 loc) · 8.68 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://use.typekit.net/uin5qbm.css">
<title>Notes</title>
</head>
<body>
<div class="topnav" id="myTopnav">
<a href="index.html" class="active">Home</a>
<a href="collaborate.html">Collaborate</a>
<a href="chords.html">Chords</a>
<a href="notes.html">Notes</a>
<a href="about.html">About</a>
</div>
<h2 class="notes-index-header">Notes Index</h2>
<div class="search-bar"><input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search by note..." title="Type in a note!"></div>
<table id="myTable">
<tr class="header">
<th style="width:60%;">Note</th>
<th style="width:40%;">Additional Information</th>
</tr>
<tr>
<td>A</td>
<td><details><summary>Click Here</summary></details>
<div><img src="images/A.png" alt="image a"/></div>
<div>Common scales beginning on A:
<div>A major: A B C♯ D E F♯ G♯ A</div>
<div>A natural minor: A B C D E F G A</div>
<div>A harmonic minor: A B C D E F G♯ A</div>
<div>A melodic minor ascending: A B C D E F♯ G♯ A</div>
<div>A melodic minor descending: A G F E D C B A</div>
</div>
</tr>
<tr>
<td>B</td>
<td><details><summary>Click Here</summary>
<div><img src="images/B.png" alt="image b"/></div>
<div><div>Common scales beginning on B</div>
<div>B major: B C♯ D♯ E F♯ G♯ A♯ B</div>
<div>B natural minor: B C♯ D E F♯ G A B</div>
<div>B Harmonic minor: B C♯ D E F♯ G A♯ B</div>
<div>B Melodic minor ascending: B C♯ D E F♯ G♯ A♯ B</div>
<div>B melodic minor descending: B A G F♯ E D C♯ B</div>
</div>
</details></td>
</tr>
<tr>
<td>C</td>
<td><details><summary>Click Here</summary>
<div><img src="images/C.png" alt="image c"/></div>
<div>Common scales beginning on C</div>
<div>C Major: C D E F G A B C</div>
<div>C Natural Minor: C D E♭ F G A♭ B♭ C</div>
<div>C Harmonic Minor: C D E♭ F G A♭ B C</div>
<div>C Melodic Minor Ascending: C D E♭ F G A B C</div>
<div>C Melodic Minor Descending: C B♭ A♭ G F E♭ D C</div>
</details></td>
</tr>
<tr>
<td>D</td>
<td><details><summary>Click Here</summary>
<div><a title="Smhaisale, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via Wikimedia Commons" href="https://commons.wikimedia.org/wiki/File:D_Note.png"><img width="168" alt="D Note" src="https://upload.wikimedia.org/wikipedia/commons/9/9f/D_Note.png"></a></div>
<div>Common scales beginning on D</div>
<div>D Natural Major: D E F♯ G A B C♯ D (conjugate with Phrygian)</div>
<div>D Harmonic Major: D E F♯ G A B♭ C♯ D (conjugate with the keys on G Harmonic minor (start with D))</div>
<div>D Melodic Major Ascending: D E F♯ G A B C♯ D (conjugate with Phrygian)</div>
<div>D Melodic Major Descending: D C B♭ A G F♯ E D (self-conjugate)</div>
<div>D Natural Minor: D E F G A B♭ C D (conjugate with Mixolydian)</div>
<div>D Harmonic Minor: D E F G A B♭ C♯ D (conjugate with the keys on G Harmonic Major (start with D))</div>
<div>D Melodic Minor Ascending: D E F G A B C♯ D (conjugate with Dorian ♭2)</div>
<div>D Melodic Minor Descending: D C B♭ A G F E D (conjugate with Mixolydian)</div>
</details></td>
</tr>
<tr>
<td>E</td>
<td><details><summary>Click Here</summary>
<div><a title="Smhaisale, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via Wikimedia Commons" href="https://commons.wikimedia.org/wiki/File:E_Note.png"><img width="168" alt="E Note" src="https://upload.wikimedia.org/wikipedia/commons/a/a3/E_Note.png"></a></div>
<div>Common scales in the key of E.</div>
<div>E Major: E F♯ G♯ A B C♯ D♯ E</div>
<div>E Natural Minor: E F♯ G A B C D E</div>
<div>E Harmonic Minor: E F♯ G A B C D♯ E</div>
<div>E Melodic Minor Ascending: E F♯ G A B C♯ D♯ E</div>
<div>E Melodic Minor Descending: E D C B A G F♯ E</div>
</details></td>
</tr>
<tr>
<td>F</td>
<td><details><summary>Click Here</summary></details>
<div><a title="Smhaisale, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via Wikimedia Commons" href="https://commons.wikimedia.org/wiki/File:F_Note.png"><img width="168" alt="F Note" src="https://upload.wikimedia.org/wikipedia/commons/a/a5/F_Note.png"></a></div>
<div>F Major: F G A B♭ C D E F</div>
<div>F Natural Minor: F G A♭ B♭ C D♭ E♭ F</div>
<div>F Harmonic Minor: F G A♭ B♭ C D♭ E F</div>
<div>F Melodic Minor Ascending: F G A♭ B♭ C D E F</div>
<div>F Melodic Minor Descending: F E♭ D♭ C B♭ A♭ G F</div>
</tr>
<tr>
<td>G</td>
<td><details><summary>Click Here</summary>
<div><a title="Smhaisale, CC BY-SA 4.0 <https://creativecommons.org/licenses/by-sa/4.0>, via Wikimedia Commons" href="https://commons.wikimedia.org/wiki/File:G_Note.png"><img width="168" alt="G Note" src="https://upload.wikimedia.org/wikipedia/commons/2/2e/G_Note.png"></a></div>
<div>Common scales beginning on G</div>
<div>G Major: G A B C D E F♯ G</div>
<div>G Natural Minor: G A B♭ C D E♭ F G</div>
<div> G Harmonic Minor: G A B♭ C D E♭ F♯ G</div>
<div>G Melodic Minor Ascending: G A B♭ C D E F♯ G</div>
<div>G Melodic Minor Descending: G F E♭ D C B♭ A G</div>
</details></td>
</tr>
</table>
<div id="modal">
<h3 class="discussion-forum-top">Discussion Forum</h3>
<div class="comment-input">
<ul id="unordered" class="unordered-list"></ul>
</div>
</div>
<div id="overlay">
<div id="modal-two">
<h4>Type your comment here:</h4>
<p>Subject:<input type="text" placeholder=" Subject..." id="subject-box"></p>
<p>Message:<input type="text" id="comment-box" placeholder=" Enter text here!" class="message-input-box"></p>
<button id="post">Post</button>
</div>
</div>
<h5>Click here to add to this thread.</h5>
<button id ="open-modal">Create New</button>
<script>
/* Search Bar */
function myFunction() {
/* First, I list my variables, and get the "text value" of those variables */
var input, filter, table, tr, td, i, txtValue;
/* Next, we go to the DOM to pull that info */
input = document.getElementById("myInput");
table = document.getElementById("myTable");
tr = table.getElementsByTagName("tr");
/* Creates a filter that translates value of "input" text to Uppercase text */
filter = input.value.toUpperCase();
/* Now initialize the for loop */
/* Start at "zero", when i is less than the length of table row, increment by 1 */
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[0];
/* IF table data has a text value of True/False */
if (td) {txtValue = td.textContent || td.innerText;
/* & IF the text value is greater than -1, meaning if there is info there, since we start at 0 display the value of table row */
if (txtValue.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
/* Begin Forum */
const currentDate = new Date();
const currentDayOfMonth = currentDate.getDate();
const currentMonth = currentDate.getMonth();
const currentYear = currentDate.getFullYear();
const dateString = "Date: " + (currentMonth + 1) + "/" + currentDayOfMonth + "/" + currentYear;
/* Begin Comment Overlay */
document.getElementById("open-modal").addEventListener("click", function(){
document.getElementById("overlay").style.display = "block"
})
document.getElementById("post").addEventListener("click", function(){
document.getElementById("overlay").style.display = ("none")
var post= document.getElementsById("post");
post.addEventListener('click', function(){
var commentBoxValue= document.getElementById("comment-box").value;
var subjectBoxValue= document.getElementById("subject-box").value;
var li = document.createElement("li");
var subject = document.createTextNode(" Subject: " + subjectBoxValue);
li.appendChild(subject);
var text = document.createTextNode(" Message: " + commentBoxValue + " ");
li.appendChild(text);
var date = document.createTextNode(dateString);
li.appendChild(date);
document.getElementById("unordered").appendChild(li);
document.getElementById("comment-box").value = "";
})
});
</script>
</body>
</html>