-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (39 loc) · 1.89 KB
/
index.html
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
<!DOCTYPE hml>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/Site.css">
<script src="js/main.js"></script>
<script src="js/howler.js"></script>
<title>ContriBallad - Musical Contributions</title>
</head>
<body>
<form onsubmit="GetUserContributions($('#UserIDInput').val()); return false;">
Enter a Github username: <input type="text" id="UserIDInput" />
<input type="submit" value="Submit">
<span id="errorBox"></span>
</form>
<input type="button" value="Play" onclick="ResumeSong()" id="songToggle">
<div id="graph"></div>
ContriBallad generates a song based on Github contribution history.<br>
The key/scale is determined by the first letter of the username (a = c minor, b = c major, c = c# minor etc.)<br>
The color of each square determines the note/percussion played. <br>
The day of the week determines the instrument:<br>
<ul>
<li>Sunday: Piano, upper half of scale</li>
<li>Monday: Piano, lower half of scale</li>
<li>Tuesday: Percussion, Snare drum</li>
<li>Wednesday: Percussion, Cymbals</li>
<li>Thursday: Bass, 4 notes throughout the scale</li>
<li>Friday: Guitar, lower half of scale</li>
<li>Saturday: Guitar, upper half of scale</li>
</ul>
You can hyperlink a user like so: <a href="https://knar33.github.io/ContriBallad/index.html?u=knar33">https://knar33.github.io/ContriBallad/index.html?u=knar33</a>
<br><br>
<a href="https://github.com/Knar33/ContriBallad"><img src="images/GitHub.png" style="height: 100px;"></a>
<div id="hiddenGraph"></div>
</body>
</html>