-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoundtrack.html
50 lines (49 loc) · 1.62 KB
/
Soundtrack.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
50
<!DOCTYPE html>
<html>
<head>
<title>The Soundtrack</title>
<script>
var DirectoryAmt = 1;
</script>
<script src = "../Nav.js" id="s1"></script>
<script src="../code.js" id="s2"></script>
<script src="howler.js"></script>
<script>StartNav();</script>
<style>
iframe{
background-color: #0e0b16
max-width: 20%;
align-content: left;
text-align: left;
}
.g-background-default
{
}
</style>
</head>
<body>
<div id="NavBarThing" class=""></div>
<link href="../style.css" rel="stylesheet" type="text/css">
<h1 id="title" class="title">The Soundtrack</h1>
<div class="AudioPlayer" style='width: 100%;'>
<table class='tableMain' id='MusicTable'>
<tr>
<th>Title</th>
<th>Composer</th>
<th></th>
</tr>
</table>
</div>
<script>
function song(name, album, path)
{
document.getElementById("MusicTable").innerHTML += "<tr><th>"+name+"</th><th>"+album+"</th><th>" + '<audio controls preload="metadata" style="width:300px;display: inline;height:25px;"><source src="'+path+'" type="audio/mpeg"></audio></th>'
}
song("Welcome to Space", "Trevor Bagels", "WelcomeToSpace.wav")
song("ACX-48", "Trevor Bagels", "ACX48.wav")
song("The Ordinance", "Trevor Bagels", "TheOrdinance.wav")
song("Drifting Off a Planet", "Trevor Bagels", "DriftingOffAPlanet.wav")
song("Docking", "Trevor Bagels", "Docking.wav")
</script>
</body>
</html>