-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (74 loc) · 3.12 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="./dist/main.css" />
<meta property="og:title" content="Visualize" />
<meta property="og:image" content="visuals.gif" />
<meta
property="og:description"
content="Sound Visualizer utilizing canvas, three.js, and the Web Audio API"
/>
<meta
property="og:url"
content="https://aafghahi.github.io/Visualize/"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://d3js.org/d3.v6.min.js"></script>
<link rel="icon"
type="image/png"
href="./src/images/favicon.ico">
<title>Visualize</title>
</head>
<body>
<header>
<button id= 'button' class='button'>About Me</button>
<button id= 'info-button' class='info-button'> Instructions</button>
</header>
<div id="content">
<label for="thefile" class='file'>Pick a Song!
<input type="file" id="thefile" accept="audio/*" />
</label>
<button id='secondfile' class='demo'>Demo Song</button>
<!-- <canvas id="canvas"></canvas> -->
<audio id="audio" controls preload='none' controlsList='nodownload' >
</audio>
<div id="out"></div>
</div>
<div id= 'myModal' class='modal'>
<div class= 'modal-content'>
<span class= 'close'>×</span>
<div class='modal-words'>
<h3 class='modal-title'>Visualize by Arash Afghahi</h3>
<div class='modal-text'>
Thank you for checking out Visualize, this was created using Javascript in addition to- three.js, Canvas, and Web Audio APIs. If you'd like to know more about me, feel free to check out my:
</div>
<p>
<a class= 'modal-links' href="https://github.com/AAfghahi/Visualize"><img class='github_logo' src='src/images/github.png'/> Github </a>
</p>
<p>
<a class= 'modal-links' href="https://www.linkedin.com/in/arash-afghahi-4aa05193/"><img class='linked_logo' src='src/images/linkedin.png'/> LinkedIn</a>
</p>
</div>
</div>
</div>
<div id= 'infoModal' class='modal'>
<div class= 'modal-content'>
<div class='modal-words'>
<h3 class='modal-title'>Instructions</h3>
<div class='modal-text'>
A couple of commands to customize your experience:
<ul class= 'modal-list'>
<li>If you have a mp3 handy, upload it onto the player! Otherwise, feel free to use the demo song.</li>
<li>You can toggle the changings colors by pressing 'a'.</li>
<li>When color is toggled off, you can manually change colors by pressing 'c'.</li>
<li>You can zoom in and out using your mouse wheel, and you can rotate the entire screen by clicking and dragging!</li>
</ul>
Enjoy!
</div>
</div>
</div>
<script src="./dist/main.js"></script>
</body>
</html>