-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
61 lines (61 loc) · 1.7 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
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<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">
<title>Audio Visualizers</title>
<style>
body {
font-family: sans-serif;
}
h1 {
text-align: center;
}
.redhead {
color: red;
}
ul {
display: grid;
grid-template-columns: auto auto auto;
padding: 10px;
}
li {
background-color: rgb(255, 158, 30);
padding: 20px;
font-size: 22px;
text-align: center;
list-style:none;
}
li:nth-child(even){
background-color: rgb(255, 240, 30);
}
li a {
text-decoration: none;
color: #000;
}
</style>
</head>
<body>
<h1><span class="redhead">A</span>udi<span class="redhead">o</span> Visuali<span class="redhead">z</span>ers</h1>
<ul id="vislist"></ul>
<script>
const base_url = "./examples"
const dirList = [
"linear waveform 1",
"linear waveform 2",
"circular waveform 1",
"circular waveform 2",
"circular waveform 3",
"circular waveform 4",
// "circular waveform 5",
]
const vislist_ul = document.getElementById("vislist")
for(var i = 0; i < dirList.length; i++) {
const newLi = `<li><a href="${base_url}/${dirList[i]}/index.html">${dirList[i]}</a></li>`
vislist_ul.innerHTML += newLi
console.log(newLi)
}
</script>
</body>
</html>