-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
233 lines (189 loc) · 4.56 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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<style>
:root {
--bg-color: #347174;
--inset-color: #519686;
--button: #83ba9d;
--large-text-color: #35042a;
--small-text-color:
}
mark{
color: var(--large-text-color);
background:#b44f3f;
}
body{
background-color: var(--bg-color);
}
div{
margin-bottom: 10px;
background-color: var(--inset-color);
text-align: center;
padding: 30px;
}
h1, h2, a, .clickme{
font-family: Helvetica, sans-serif;
color: #2f0611;
}
h1{
animation: spin 1.98s linear infinite;
word-spacing: 0.1vmax;
margin: 0%;
font-size:10vmax;
text-align: center;
}
.clickme{
font-size: 4vmax;
display: block;
background-color: var(--button);
}
.clickme:hover{
background-color: #347174;
color: #343142;
}
a{
color: var(--large-text-color);
font-size: 5vmax;
padding: 10px;
display: inline-block;
background-color: var(--button);
word-break: break-all;
text-decoration: none;
transition:
animation 1s;
}
a:hover {
animation: hover 0.5s ease-in forwards;
}
a:active {
animation: hover 0.5s ease-in forwards;
}
@keyframes test {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes hover {
0% {
transform: scale(1);
box-shadow: 0px 0px 0px 0px #452c2caf;
}
30% {
transform: scale(1.1);
box-shadow: 0px 3px 4px 4px #452c2caf;
}
100% {
transform: scale(1.075);
box-shadow: 0px 3px 2px 3px #452c2caf;
}
0%{
text-emphasis-color: #18103e;
}
50%{
background-color: #99905b;
}
100%{
background-color: #b44f3f;
}
}
@keyframes spin{
0% {
transform: rotate3d(1, 1, 1, 0deg);
word-spacing: 0.1vmax;
}
50% {
word-spacing: 0.1vmax;
transform: rotate3d(0, 1, 0, 85deg);
}
}
@keyframes fading {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
50% {
padding: 30;
margin-bottom: 10;
font-size: 4vw;
}
100% {
margin: 0;
padding: 0;
font-size: 0vw
}
}
</style>
<head>
<audio src="bg.mp3" id="bg music"></audio>
</head>
<html>
<body>
<div style="padding: 0%;">
<h1>
<mark>hello i am kido</mark>
</h1>
<br>
</div>
<div class="clickme" id="clickme">
<p1>
click me
</p1>
</div>
<div>
<h2>
I like to make things which come to my mind, whether fun or useful.
<br>
</h2>
<h2>
Here are some things I've made at varying times:
</h2>
<a href="fox/index.html">
fox
</a>
<h2>
Fox is the first ever HTML website I made. <br>The music syncs with the animation and reacts to distrubances
</h2>
<br>
<a href="the-game/index.html">
gamering
</a>
<h2>
This was made in a short span for the Grade 8 openhouse at our highschool.
<br> The goal was to make an explainationless game to show off the club to visitors!
</h2>
<br>
<a href="study/index.html">
studying
</a>
<h2>
This was made as a sort of screensaver while I worked on school assignments.
<br> The messages and theme change every so often to cycle through all of the motivational phrases.
</h2>
<br>
<a href ="scam/scam.html">
</a>
</div>
</body>
</html>
<script>
const clickMe = document.getElementById("clickme");
const music = document.querySelector('audio');
function handleInitialClick(){
//be happy or upset depending on if they clicked on the box
if (clickMe.contains(event.target))
clickMe.innerHTML = ":D";
else
clickMe.innerHTML = ":(";
//Regardless, play the fading away animation
clickMe.style.animation = 'fading 2s forwards';
//And play the music in the background
music.currentTime = 0.3;
music.play();
//Remove the event listener, too.
document.body.removeEventListener("click", handleInitialClick);
}
document.body.addEventListener('click', handleInitialClick);
</script>