-
Notifications
You must be signed in to change notification settings - Fork 1
/
slop.html
35 lines (34 loc) · 1.12 KB
/
slop.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
<!DOCTYPE html>
<html>
<head>
<title>slop city</title>
</head>
<body>
<audio controls autoplay loop>
<source src="assets/audio/ohhhhyeaahhh.wav" type="audio/wav">
no ding for you :/
</audio>
<br>
<img src="assets/gifs/hey-buddy-you-have-to-be-quiet.gif" alt="Computer man" style="width:60vh; height:60vh; margin-left: calc((100vw - 70vh) / 2)">
<h1 id="sloptitle">WELCOME TO SLOPOPOLIS!</h1>
<script>
// Make the audio play immediately
var audio = new Audio();
audio.src = "assets/audio/ohhhhyeaahhh.wav";
audio.preload = "auto";
audio.play();
// Make sloptitle flash colors
var sloptitle = document.getElementById("sloptitle");
var colors = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"];
var i = 0;
setInterval(function() {
sloptitle.style.color = colors[i];
i = (i + 1) % colors.length;
if (i != 0) {
sloptitle.style.fontSize = Math.floor(Math.random() * 50 + 40) + "px";
}
}, 30);
</script>
<img src="assets/gifs/bear-jumpscare.gif" alt="Computer man" style="width:40vw; height:50vw; margin-left:15vw">
</body>
</html>