-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (58 loc) · 1.05 KB
/
index.html
File metadata and controls
58 lines (58 loc) · 1.05 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
<html>
<head>
<style>
audio {
width: 100%;
height: 50%;
}
h1{
margin: 0;
color: #221f3b;
}
h2{
margin: 0;
}
body{
text-align: center;
margin: 0;
background: #6f4a8e;
}
a:visited, a{
padding-left: 1em;
color: #ebebeb;
text-decoration: none;
display: inline-block;
width: -webkit-fill-available;
vertical-align: middle;
height: 1.2em;
margin-right: 2%;
margin-left: 2%;
}
.split{
width:100%;
height:2px;
background:#050505;
}
</style>
</head>
<body>
<audio controls id="player"></audio>
<script>
ePlayer = document.getElementById("player");
var filename = /\?f=(.+?)$/g.exec(window.location.href)
if (filename==undefined) {
ePlayer.setAttribute("style","display:none;")
for (let i=1;i<=5;i++){
document.write("<h1>SAMPLE TEST "+i+"</h1><h2>");
for (let j=1;j<=5;j++){
document.writeln("<a href='index.htm?f="+i+"."+j+"'>PART "+j+"</a><br>")
}
document.writeln("</h2>");
document.writeln("<div class='split'></div>");
}
} else {
ePlayer.setAttribute("src",filename[1]+".mp3");
}
</script>
</body>
</html>