-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (62 loc) · 3.69 KB
/
index.html
File metadata and controls
77 lines (62 loc) · 3.69 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Monstercat Visualizer</title>
<script src="https://unpkg.com/audiomotion-analyzer/dist"></script>
<link rel="stylesheet" href="./style.css">
<script src="./settings.js"></script>
<script defer src="./particles.js"></script>
<script defer src="./visualizer.js"></script>
<script defer src="./audioExtern.js"></script>
</head>
<body style="overflow: hidden; background: #222; color: #ccc; margin: 0 auto;">
<div id="resize"
style="position: absolute;top: 0px;left: 0px;width: 1920px;height: 1080px;z-index: -1;scale: 0.8;transform-origin: 0 0;transition: all 0.2s ease;">
<img id="bg" src="./bg/1.png" style="position: absolute; top: 0px; left: 0px; width: 1920px; height: 1080px;" />
<div id="bgBlack" style="position:absolute; top:0px;left:0px;width: 1920px; height: 1080px; background:#0C0C0C; opacity: 0;">
</div>
<canvas id="particleCanvas"></canvas>
<div id="visualizer"
style="position: absolute;width: 100%;height: 100%;top: 543px;left: 168px;transform: rotate(270deg);transform-origin: left top; z-index: 10;">
</div>
<div id="flex"
style="position:absolute; top: 590px; left: 404px; width: 1341px; height: 191px; display:flex; flex-direction: column; justify-content: center; align-items: flex-start; z-index: 10;">
<div id="artist" class="bold"
style="font-size: 111px; white-space: nowrap; text-shadow: 2px 2px 10px black; text-align: left; margin: 0; padding: 0; line-height: 1; z-index: 10;">
</div>
<div id="title" class="regular"
style="text-shadow: 2px 2px 10px black;text-align: left;margin: 0;padding: 0;line-height: 1;margin-top: 0px; z-index: 10;">
</div>
<div id="additional" class="regular"
style="white-space: nowrap; text-shadow: 2px 2px 10px black; text-align: left; margin: 0; padding: 0; line-height: 1; z-index: 10;">
</div>
</div>
<div id="artistTest" class="bold"
style="position: absolute;top: 587px;left: 398px;font-size: 111px;white-space: nowrap; text-shadow: 2px 2px 10px black; opacity:0;">
</div>
<audio style="position: absolute; width: 100%; left:0px; top: 1090px;transition: all 0.2s ease;" id="audio"
src="" controls autoplay crossorigin="anonymous"></audio>
<img id="cover" src="./cover/mcat.png"
style="position: absolute;top: 593px;left: 176px;width: 191px;height: 191px; box-shadow: 2px 2px 10px black;transition:scale 0.2s cubic-bezier(.43,.19,.76,.62), transform 0.3s cubic-bezier(.43,.19,.76,.62); z-index: 10;" />
<img id="coverNew" src=""
style="position: absolute;top: 593px;left: 176px;width: 191px;height: 191px; box-shadow: 2px 2px 10px black; transition: scale 0.2s cubic-bezier(.24,.45,.63,.9), transform 0.3s cubic-bezier(.24,.45,.63,.9); transform: rotateY(270deg); opacity:0; z-index: 10;" />
</div>
<script>
// set the background image
if (settings.background.active)
document.getElementById("bg").src = settings.background.image;
else
document.getElementById("bgBlack").style.opacity = "1";
// rezize the background image
const resize = document.getElementById("resize");
const audio = document.getElementById("audio");
setInterval(() => {
const width = window.innerWidth;
audio.style.width = width + "px";
resize.style.scale = (width / 1920);
}, 100);
</script>
</body>
</html>