-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (95 loc) · 2.48 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
<!--
,_ _
|\\_,-~/
/ _ _ | ,--.
( @ @ ) / ,-'
\ _T_/-._( (
/ `. \
| _ \ |
\ \ , / |
|| |-_\__ /
((_/`(____,-'
meow meow meooow meow meee meow
translation : meow
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trust Me</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000;
overflow: hidden;
}
#container {
text-align: center;
}
button {
font-size: 2rem;
padding: 1rem 2rem;
background-color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: transform 0.3s ease;
}
button:hover {
transform: scale(1.1);
}
img {
max-width: 300px;
height: auto;
display: none;
}
</style>
</head>
<body>
<div id="container">
<button id="trustButton">Trust Me</button>
<img id="catGif" src="gifs/catshakira.gif" alt="Cat GIF">
<audio id="bgMusic" loop>
<source src="audio.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
<script>
const trustButton = document.getElementById('trustButton');
const catGif = document.getElementById('catGif');
const bgMusic = document.getElementById('bgMusic');
const catGifs = [
'gifs/holymoly.gif',
'gifs/noidea.gif',
'gifs/catshakira.gif',
'gifs/elgato.gif',
'gifs/sillylittlebot.gif',
'gifs/whatdahel.gif'
];
let currentGifIndex = 0;
trustButton.addEventListener('click', () => {
const colors = ['#ff0000', '#00ff00', '#0000ff', '#ffff00', '#00ffff', '#ff00ff'];
let intervalId;
trustButton.style.display = 'none';
catGif.style.display = 'block';
bgMusic.play();
const colorFlicker = () => {
document.body.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
};
const changeGif = () => {
catGif.src = catGifs[currentGifIndex];
currentGifIndex = (currentGifIndex + 1) % catGifs.length;
};
changeGif();
intervalId = setInterval(colorFlicker, 100);
setInterval(changeGif, 2000);
});
</script>
</body>
</html>