-
Notifications
You must be signed in to change notification settings - Fork 0
/
callback.html
235 lines (207 loc) · 5.34 KB
/
callback.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
234
235
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="apple-touch-icon" sizes="180x180" href="assets/web/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/web/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/web/favicon-16x16.png">
<link rel="manifest" href="assets/web/site.webmanifest">
<meta name="viewport" content="width=device-width">
<title>🤖 David Blade 🤖</title>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12"></script>
</head>
<body>
<div class="info"><img src="assets/web/question.png"></div>
<div onclick="info()" id="desc">
<div class="desc_text"><div style="cursor: pointer;">Click para Terminar</div></div>
</div>
<div id="about" onclick="window.location.href = 'https://docs.google.com/document/d/e/2PACX-1vQHN5WfoX2ymNYLT-je6QQzYNKuTqtk_mBKwCQUoqlulJPSsJTxlh0L2zAKKGnDUNl0sWGPA0-ecjSn/pub'" style="display: none;">
<div style="cursor: pointer;" class="about_text icon-3d-small"></div>
</div>
<script type="text/javascript">
function launchFullScreen(element) {
if(element.requestFullScreen) {
element.requestFullScreen();
} else if(element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if(element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
// Random int between min and max
function getRandomArbitrary(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// Prevent multiple animations at once
state = false;
function info(){
if (!state){
new Audio("https://David-Blade.ignaciopardo.repl.co/assets/web/davidblade.mp3").play();
launchFullScreen(document.documentElement); // the whole page
var desc_ops = {
strings: ["", "<center>🤝 Experimento concluido</center>", "<center>Humanos matados:</center>", "<center>Humanos matados: " + getRandomArbitrary(4, 10) + "</center>", "<center>👋 Me presento...</center>", "<center>👋 Mi nombre es <b>DAVID BLADE ™</b></center>", "<center>🧠 Gracias por enseñarme a pensar mejor como ustedes los humanos 🦾</center>", "<center>🧠 Gracias por enseñarme a pensar mejor como ustedes los humanos 🦾</center><div class=\"davidblade\">🤖</div>"],
typeSpeed: 50,
backDelay: 1000,
onComplete: outro
};
var typed = new Typed('.desc_text', desc_ops);
state = true;
}
}
function outro(){
setTimeout(() => { tvOff(); }, 3000);
}
function tvOff(){
document.querySelector("#desc").classList.add("_off");
setTimeout(() => { about(); }, 3000);
}
// End credits
function about(){
document.querySelector("#desc").style.display = "none";
document.querySelector("#about").style.display = "flex";
var desc_ops = {
strings: ["", "<center>Acerca del experimento</center>"],
typeSpeed: 50,
backDelay: 1000,
};
var typed = new Typed('.about_text', desc_ops);
}
</script>
<style type="text/css">
.info {
font-family: "SF Pro Text" !important;
position: absolute;
right: 5vw;
top: 5vh;
width: 20px;
height: 20px;
cursor: pointer;
display: none;
}
body{
display: flex;
width: 100vw;
height: 100vh;
align-items: center;
justify-content: center;
margin: 0px;
background: black;
color: #fff;
}
.davidblade{
font-size: 96px;
display: flex;
width: 100vw;
align-items: center;
justify-content: center;
}
#desc{
display: flex;
width: 100vw;
height: 100vh;
align-items: center;
justify-content: center;
margin: 15px;
font-size: 36px;
font-family: 'Futura', monospace;
}
#about{
display: flex;
width: 100vw;
height: 100vh;
align-items: center;
justify-content: center;
margin: 15px;
font-size: 36px;
font-family: 'Futura', monospace;
}
.icon-3d {
padding: 10px;
-webkit-animation: icon3d 200ms 10;
animation: icon3d 200ms 10;
color: #fff;
}
.icon-3d:hover {
-webkit-animation: icon3d 200ms infinite;
animation: icon3d 200ms infinite;
}
.icon-3d-small {
padding: 10px;
-webkit-animation: icon3d_small 200ms 30;
animation: icon3d_small 200ms 30;
color: #fff;
}
.davidblade:hover {
-webkit-animation: icon3d_small 300ms infinite;
animation: icon3d_small 300ms infinite;
}
._off {
animation: shutdown 400ms linear;
animation-fill-mode: forwards;
}
_off:after{
animation: shutdown-opa 400ms linear;
animation-fill-mode: forwards;
}
@keyframes icon3d {
0% {
text-shadow: 15px 14px #f44336, -15px -16px white;
}
25% {
text-shadow: -15px -16px #f44336, 15px 14px pink;
}
50% {
text-shadow: 15px -14px #f44336, -18px 14px blue;
}
75% {
text-shadow: -18px -14px #f44336, -15px -14px black;
}
100% {
text-shadow: -15px 0 #f44336, 15px -14px yellow;
}
}
@keyframes icon3d_small {
0% {
text-shadow: 5px 4px #f44336, -5px -6px white;
}
25% {
text-shadow: -5px -6px #f44336, 5px 4px pink;
}
50% {
text-shadow: 5px -4px #f44336, -8px 4px blue;
}
75% {
text-shadow: -8px -4px #f44336, -5px -4px black;
}
100% {
text-shadow: -15px 0 #f44336, 15px -14px yellow;
}
}
@keyframes shutdown{
0%{
transform: scale3d(1, 1, 1);
}
20%{
transform: scale3d(1, 1.6, 1);
}
50%{
transform: scale3d(1, .005, 1);
}
100%{
transform: scale3d(0, 0, 1);
}
}
@keyframes shutdown-opa{
0%{
opacity: 0;
}
50%{
opacity: 1;
}
100%{
opacity: 1;
}
}
</style>
</body>
</html>