-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
127 lines (114 loc) · 3.68 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>dilk</title>
<link rel="shortcut icon" type="image/png" href="img/favicon.png">
<meta name="description" content="dilk">
<meta name="author" content="dilk">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body, html {
height: 100%;
margin: 0;
overflow: hidden;
}
.bg {
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.egg {
position: fixed;
cursor: pointer;
user-select: none;
z-index: 10001;
}
.logo {
margin-left: auto;
margin-right: auto;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 10002;
}
.centered-button {
position: fixed;
bottom: 175px;
left: 50%;
transform: translateX(-50%);
z-index: 10001;
}
.centered-button button {
padding: 10px 20px;
font-size: 16px;
transition: transform 0.3s;
}
.centered-button button:hover {
transform: scale(1.1);
}
</style>
</head>
<body>
<div class="bg" id="backgroundDiv">
<img src="img/logo.png" alt="Logo" class="logo" style="width: 50%;">
<div class="centered-button">
<button id="randomButton" onclick="window.location.href='https://discord.gg/7xfARtcPNR';" onmouseover="playAudio()">Join Discord</button>
</div>
<audio id="audio" src="do_it.mp3"></audio>
</div>
<script type="text/javascript">
document.addEventListener('contextmenu', event => event.preventDefault());
const numberOfEggs = 9;
const eggs = [];
function createEggs() {
for (let i = 0; i < numberOfEggs; i++) {
const egg = document.createElement('img');
egg.src = `img/head${i + 1}.png`;
egg.alt = 'Egg';
egg.className = 'egg';
egg.style.width = '3%';
document.body.appendChild(egg);
eggs.push({
element: egg,
x: Math.random() * (window.innerWidth - egg.clientWidth),
y: Math.random() * (window.innerHeight - egg.clientHeight),
xSpeed: 6,
ySpeed: 6
});
}
}
function updateEggPosition() {
eggs.forEach(egg => {
egg.x += egg.xSpeed;
egg.y += egg.ySpeed;
if (egg.x < 0 || egg.x > window.innerWidth - egg.element.clientWidth) {
egg.xSpeed = -egg.xSpeed;
}
if (egg.y < 0 || egg.y > window.innerHeight - egg.element.clientHeight) {
egg.ySpeed = -egg.ySpeed;
}
egg.element.style.left = egg.x + 'px';
egg.element.style.top = egg.y + 'px';
});
}
createEggs();
setInterval(updateEggPosition, 5);
function getRandomButtonText() {
const buttonTexts = ["drink the dilk", "dive into the dilk", "gargle the dilk", "become one with the dilk", "follow the dilk", "snort some dilk", "bathe in the dilk"];
return buttonTexts[Math.floor(Math.random() * buttonTexts.length)];
}
document.getElementById('randomButton').innerText = getRandomButtonText();
const backgroundDiv = document.getElementById('backgroundDiv');
const backgroundImages = ["img/bg1.jpeg", "img/bg2.jpeg", "img/bg3.jpeg"];
const randomBackground = backgroundImages[Math.floor(Math.random() * backgroundImages.length)];
backgroundDiv.style.backgroundImage = `url('${randomBackground}')`;
function playAudio() {
const audio = document.getElementById('audio');
audio.play();
}
</script>
</body>
</html>