-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
184 lines (165 loc) · 5.83 KB
/
index.html
File metadata and controls
184 lines (165 loc) · 5.83 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html>
<head>
<title>MaxNiftyNine</title>
<style>
/* Body Styles */
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
background-color: #000000;
margin: 0;
padding: 40px;
overflow: hidden; /* Prevent scrollbars */
}
/* Header Styles */
header {
text-align: center;
margin-bottom: 40px;
background: linear-gradient(to bottom, #333333, #000000);
padding: 20px;
}
/* Contact Information Styles */
.container {
position: relative;
width: fit-content;
margin: 0 auto;
transform-style: preserve-3d;
}
.contact-info {
font-family: 'Helvetica Neue', Arial, sans-serif;
font-size: 60px;
font-weight: bold;
text-align: center;
color: #ffffff;
margin-bottom: 20px;
position: relative;
transform-origin: 50% 50%;
transform-style: preserve-3d;
}
/* Random Text Styles */
#random-text {
position: absolute;
top: calc(50% - 50px);
left: calc(50% - 200px);
transform-origin: center;
font-size: 24px;
color: #00ff00;
animation: rotateText 5s linear infinite, changeColor 5s linear infinite;
}
#random-text:hover {
animation-play-state: paused;
}
#random-text:active {
animation: changeColor 5s linear infinite;
}
/* DVD Styles */
#dvd {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
color: #000000;
background-color: #ff8800;
padding: 10px;
z-index: 9999;
}
</style>
</head>
<body>
<header>
<img src="banner.PNG" alt="Banner Image" width="1000" height="200">
</header>
<div class="container">
<h1 class="contact-info" id="title">MaxNiftyNine</h1>
</div>
<div id="dvd">
very good website yes indeed
<div id="live-reaction-gif">
<img id="live-reaction-img" src="Image.GIF" alt="Live Reaction GIF" style="width: 50%;">
</div>
</div>
<script>
const container = document.querySelector('.container');
const liveReactionImg = document.getElementById('live-reaction-img');
const dvd = document.getElementById('dvd');
function showGif() {
liveReactionImg.style.display = 'block';
}
function hideGif() {
liveReactionImg.style.display = 'none';
}
container.addEventListener('mousemove', rotateText);
dvd.addEventListener('mouseenter', showGif);
dvd.addEventListener('mouseleave', hideGif);
// Set the GIF to be hidden by default
liveReactionImg.style.display = 'none';
// DVD Animation
let x = 0,
y = 0,
dirX = 1,
dirY = 1;
const speed = 2;
const pallete = ["#ff8800", "#e124ff", "#6a19ff", "#ff2188"];
dvd.style.backgroundColor = pallete[0];
let prevColorChoiceIndex = 0;
const dvdWidth = dvd.clientWidth;
const dvdHeight = dvd.clientHeight;
function getNewRandomColor() {
const currentPallete = [...pallete];
currentPallete.splice(prevColorChoiceIndex, 1);
const colorChoiceIndex = Math.floor(Math.random() * currentPallete.length);
prevColorChoiceIndex = colorChoiceIndex < prevColorChoiceIndex ? colorChoiceIndex : colorChoiceIndex + 1;
const colorChoice = currentPallete[colorChoiceIndex];
return colorChoice;
}
function animate() {
const screenHeight = window.innerHeight;
const screenWidth = window.innerWidth;
if (y + dvdHeight >= screenHeight || y < 0) {
dirY *= -1.05;
dvd.style.backgroundColor = getNewRandomColor();
}
if (x + dvdWidth >= screenWidth || x < 0) {
dirX *= -1.05;
dvd.style.backgroundColor = getNewRandomColor();
}
x += dirX * speed;
y += dirY * speed;
dvd.style.left = x + "px";
dvd.style.top = y + "px";
window.requestAnimationFrame(animate);
}
dvd.addEventListener("click", function () {
dirX = Math.round(Math.random()) * 2 - 1;
dirY = Math.round(Math.random()) * 2 - 1;
});
function rotateText(event) {
const x = (event.clientX / window.innerWidth - 0.5) * 40;
const y = (event.clientY / window.innerHeight - 0.5) * 60;
contactInfo.forEach((info) => {
info.style.transform = `perspective(1000px) rotateX(${-y}deg) rotateY(${x}deg)`;
});
}
window.requestAnimationFrame(animate);
</script>
<br>
<center>
<a href="MusicMaker/" id="element2" class="myButton" onClick="javascript:changeText(1)">Music Maker</a>
</center>
<center>
<a href="ReactionGame/" id="element2" class="myButton" onClick="javascript:changeText(1)">Reaction Game</a>
</center>
<center>
<a href="/FlipIt.html" id="element2" class="myButton" onClick="javascript:changeText(1)">Flip It!</a>
</center>
<center>
<a href="TypeABC/" id="element2" class="myButton" onClick="javascript:changeText(1)">Type ABC (new)</a>
</center>
<script language="javascript">
function changeText(idElement) {
document.getElementById('element1').innerHTML = 'Loading.. <i class="fa fa-refresh fa-spin fa-fw"></i>';
}
</script>
</body>
</html>