-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
381 lines (369 loc) · 11.9 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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
/>
<meta
name="description"
content="Experimenter-facing web-app, used to generate the necessary files for an online experiment from a Threshold script, all from within the browser."
/>
<meta
name="keywords"
content="measure, calibration, psychology, psychophysics"
/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-B8LSH945MT"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-B8LSH945MT");
function onCompatibilityClick() {
Swal.fire({
title: "Compatibility",
html: `
<table
style="
width: 100%;
text-align: "center;"
>
<thead>
<tr>
<th rowSpan="2"></th>
<th colSpan="2">
Chrome
</th>
<th colSpan="2">
Safari
</th>
<th colSpan="2">
Firefox
</th>
<th colSpan="2">
Edge
</th>
<th colSpan="2">
Opera
</th>
</tr>
<tr>
<th>
<i class="bi bi-display"></i>
</th>
<th>
<i class="bi bi-phone"></i>
</th>
<th>
<i class="bi bi-display"></i>
</th>
<th>
<i class="bi bi-phone"></i>
</th>
<th>
<i class="bi bi-display"></i>
</th>
<th>
<i class="bi bi-phone"></i>
</th>
<th>
<i class="bi bi-display"></i>
</th>
<th>
<i class="bi bi-phone"></i>
</th>
<th>
<i class="bi bi-display"></i>
</th>
<th>
<i class="bi bi-phone"></i>
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left-td">Compiler page</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
</tr>
<tr>
<td class="left-td">Participant page</td>
<td>✅</td>
<td>❌</td>
<td>✅</td>
<td>❌</td>
<td>✅</td>
<td>❌</td>
<td>✅</td>
<td>❌</td>
<td>✅</td>
<td>❌</td>
</tr>
</tbody>
</table>
<p
style="
font-size: 1rem;"
>
Please report any exception to denis.pelli AT nyu.edu.
</p>`,
confirmButtonColor: "#019267",
customClass: {
htmlContainer: "popup-text-container smaller-text",
},
});
}
function onIntroClick() {
Swal.fire({
title: "Welcome to EasyEyes!",
html: `<p>
All you need to run your experiment is a few accounts (<a
href="https://pavlovia.org/"
rel="noopener noreferrer"
target="_blank"
>Pavlovia</a
>
and probably
<a
href="https://prolific.com/"
rel="noopener noreferrer"
target="_blank"
>Prolific</a
>) and a table that you create in any spreadsheet app, e.g., Excel. The
<a
href="https://docs.google.com/document/u/1/d/e/2PACX-1vTTrqaSyva2afVupLchBjfTHc_YW5jAbEexGbudXMJ9xMKPBDA3nxQmHXa4wjnAoSVabeEA8T9CGIMa/pub"
rel="noopener noreferrer"
target="_blank"
>Manual</a
>
and
<a
href="https://docs.google.com/spreadsheets/d/e/2PACX-1vQ8QswX_5h_oNS2Ly6VgoONGIxJHqDFjdZqWY_HUxH2Nr_LNkGDBL8FXz74l9BxVNR2AIXGhHir9GAd/pubhtml?gid=1287694458&single=true"
rel="noopener noreferrer"
target="_blank"
>Parameter Glossary</a
>
explain how to create your experiment table, compile it into a
participant web app, and run it. You can download
<a href="./resources/EasyEyes_demo.zip" download>our demo</a>
with all the files you need (table, fonts, forms, and a README of
instructions) to run an experiment.
</p>
<p>
You can online test yourself, and people you personally recruit, with
just a Pavlovia account. To recruit and test participants online, you'll also need an account with
an online recruitment service, such as Prolific or Amazon MTurk.
Any such service can publish your EasyEyes study online.
EasyEyes provides nearly seamless integration with Prolific.
</p>`,
confirmButtonColor: "#019267",
customClass: {
htmlContainer: "popup-text-container smaller-text",
},
});
}
</script>
<!-- External -->
<!-- <script
src="https://code.jquery.com/jquery-3.6.0.slim.min.js"
integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI="
crossorigin="anonymous"
></script> -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.6.1/font/bootstrap-icons.css"
/>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"
></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Internal -->
<link rel="stylesheet" href="../uni.css" />
<style>
table {
border-collapse: collapse;
border-spacing: 0;
width: auto;
margin: 1rem 0;
}
td,
th {
border-color: #f0f0f0;
border-width: 1px;
width: 4rem;
border-radius: 0.5rem;
font-size: 0.85rem;
overflow: hidden;
padding: 0.1rem 0.2rem;
text-align: center;
word-break: normal;
}
.left-td {
text-align: left !important;
width: 30rem;
}
.swal2-popup {
padding-bottom: 2.25rem !important;
border-radius: 0.7rem;
}
.swal2-html-container {
line-height: 150%;
}
.popup-text-container {
text-align: left !important;
line-height: 150%;
&.smaller-text {
font-size: 1rem;
}
}
</style>
<meta
name="author"
content="Denis Pelli, Peiling Jiang, Augustin Burchell"
/>
<link rel="apple-touch-icon" href="../media/apple-touch-icon-default.png" />
<link
rel="shortcut icon"
href="../media/favicon-default.ico"
type="image/x-icon"
/>
<title>EasyEyes Compiler</title>
</head>
<body>
<nav class="navbar navbar-expand navbar-light bg-white">
<a class="navbar-brand" href="../home.html"
><img
class="easyeyes-logo"
src="../media/easyeyes-default.svg"
alt="EasyEyes"
width="80px"
height="80px"
/></a>
<!-- <button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button> -->
<div id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link active" href="../experiment/">Compiler</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../diff-or-join/">Diff or Join</a>
</li>
<li class="nav-item">
<a
class="nav-link"
href="https://easyeyes.shinyapps.io/easyeyes_app/"
target="_blank"
>Analyze</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="../hiring.html">Hiring</a>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdownMenuLink"
data-bs-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
Docs
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" onclick="onIntroClick()">Intro</a>
<a
class="dropdown-item"
href="https://docs.google.com/spreadsheets/d/e/2PACX-1vQ8QswX_5h_oNS2Ly6VgoONGIxJHqDFjdZqWY_HUxH2Nr_LNkGDBL8FXz74l9BxVNR2AIXGhHir9GAd/pubhtml?gid=1287694458&single=true"
target="_blank"
>Parameter Glossary</a
>
<a
class="dropdown-item"
href="https://docs.google.com/document/u/1/d/e/2PACX-1vTTrqaSyva2afVupLchBjfTHc_YW5jAbEexGbudXMJ9xMKPBDA3nxQmHXa4wjnAoSVabeEA8T9CGIMa/pub"
target="_blank"
>Manual</a
>
<a class="dropdown-item" onclick="onCompatibilityClick()"
>Compatibility</a
>
<a class="dropdown-item" href="../acknowledgements.html"
>Thanks</a
>
<a class="dropdown-item" href="../privacy.html">Privacy</a>
<a class="dropdown-item" href="../references.html">References</a>
<a
class="dropdown-item"
href="https://github.com/EasyEyes"
target="_blank"
>GitHub</a
>
</div>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdownMenuLink"
data-bs-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
Demos
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="nav-link" href="../remote-calibrator/">Calibrator</a>
<a class="nav-link" href="../virtual-keypad/">Keypad</a>
<a class="nav-link" href="../hdr/">HDR</a>
<a class="nav-link" href="../hd/">HDR</a>
</div>
</li>
</ul>
</div>
</nav>
<main>
<!-- APP -->
<div id="root"></div>
</main>
<!-- ----------------------------------------------------------------------- -->
<!-- Hello Typescript! -->
<!-- ----------------------------------------------------------------------- -->
<!-- !----- This should be the very only script tag in the index.html ------ -->
<!-- ----- (Except JQuery and Bootstrap that are used by other pages) ------ -->
<script src="dist/main.js"></script>
</body>
</html>