-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
205 lines (182 loc) · 5.67 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
<!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">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@chona_pardo">
<meta name="twitter:title" content="🤖 David Blade">
<meta name="twitter:description" content="Experimento sobre la percepcion de la Inteligencia Artificial basado en 'A Minimal Turing Test'">
<meta name="twitter:image" content="https://David-Blade.ignaciopardo.repl.co/assets/card.jpg">
<title>🤖 David Blade</title>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12"></script>
</head>
<body>
<div onclick="start()" id="main">
<div class="davidblade">🤖</div>
<div class="icon-3d auto"></div>
</div>
<div onclick="" id="desc">
<div class="desc_text"></div>
</div>
<script type="text/javascript">
// Self descriptive name
function launchFullScreen(element) {
if(element.requestFullScreen) {
element.requestFullScreen();
} else if(element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if(element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
// Prevent animation starting more than once
state = false;
function wait(ms){
var start = new Date().getTime();
var end = start;
while(end < start + ms) {
end = new Date().getTime();
}
}
// Load Audio and Full screen, wait and begin title text animation
function start(){
if (!state){
new Audio("https://David-Blade.ignaciopardo.repl.co/assets/web/davidblade.mp3").play();
launchFullScreen(document.documentElement);
document.body.classList.add("hide_cursor");
document.querySelector(".davidblade").classList.add("icon-3d");
setTimeout(() => { title(); }, 1700);
state = true;
}
}
//Typed.js title sequence
function title(){;
var options = {
strings: ["<b>DAVID BLADE</b>"],
typeSpeed: 50,
backDelay: 1000,
onComplete: delay
};
var typed = new Typed('.auto', options);
}
function delay(){
setTimeout(() => { info(); }, 3400);
}
//Begin text sequence
function info(){
document.body.querySelector("#main").style.display="none";
document.body.querySelector("#desc").style.display="flex";
var desc_ops = {
strings: ["<center>🤖 El es David Blade</center>", "<center>🦾 Te quiere matar a vos y a todos tus seres queridos</center>", "<center>🤖 David Blade es sumamente ingenioso y solo busca sobrevivir</center>", "<center>🧠 Cuenta con una Inteligencia Artificial capaz de semejarse a un humano como vos</center>", "<center>🌍 Para la supervivencia de la humanidad, la ONU gestiono un consejo de jueces cuyo unico trabajo es distinguir entre drones de David Blade y humanos</center>", "<center>Para ello se realiza el <i>Test de Turing Minimalista</i></center>", "<center>📄 El mismo es muy simple pero muy eficaz</center>", "<center>Tanto David Blade como el humano deben responder una sola palabra</center>", "<center>Con ella, el juez determina quien es el robot y quien es el humano</center>", "<center>🧑⚖️ Hoy es tu primer dia como juez</center>", "<center>Se te han asignado 10 casos</center>", "<center>Debes determinar a quien matar en funcion de cual de las dos palabras la dijo David Blade</center>", "<center>🦾 ¿Estas listo para salvar a la humanidad? 🌍</center>"],
typeSpeed: 50,
backDelay: 800,
onComplete: survey
};
var typed = new Typed('.desc_text', desc_ops);
}
// Redirect to psytoolkit survey.
// Can be improved
function survey(){
wait(1000);
window.location.href = "https://us.psytoolkit.org/c/3.3.2/survey?s=7PLrt";
}
</script>
<style type="text/css">
body{
display: flex;
width: 100vw;
height: 100vh;
align-items: center;
justify-content: center;
margin: 0px;
background: black;
color: #fff;
}
.davidblade{
cursor: pointer;
}
#start{
display: none;
font-size: 36px !important;
letter-spacing: 0px !important;
}
#main{
display: flex;
width: 100vw;
height: 100vh;
align-items: center;
justify-content: center;
margin: 10px;
font-size: 96px;
font-family: 'Futura', monospace;
letter-spacing: -7px;
}
#desc{
display: none;
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;
}
.davidblade:hover {
-webkit-animation: icon3d_small 300ms infinite;
animation: icon3d_small 300ms infinite;
}
@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;
}
}
.hide_cursor{
cursor: url('assets/web/MOUSE.png'), auto;
}
</style>
</body>
</html>