Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
345 lines (312 loc) · 19.7 KB
/
Copy pathindex.html
File metadata and controls
345 lines (312 loc) · 19.7 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>AVOKE Demo Examples</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/5/w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-black.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
html,body,h1,h2,h3,h4,h5,h6 {font-family: "Roboto", sans-serif;}
.w3-sidebar {
z-index: 3;
width: 250px;
top: 43px;
bottom: 0;
height: inherit;
}
.avoke-link {
display: inline;
margin: 10px 0;
font-size: 18px;
}
.avoke-section-title {
margin-top: 40px;
margin-bottom: 10px;
font-weight: bold;
letter-spacing: 1px;
font-size: 2rem; /* Increase section title size */
}
.avoke-about {
font-size: 18px;
line-height: 1.6;
margin-right: 5vw;
}
.w3-xxxlarge {
font-size: 3.5rem !important; /* Increase main title size */
}
.w3-top .w3-bar {
background-color: #7b023e !important;
}
.w3-bar-item.w3-button.w3-theme-l1 {
background-color: #4d565d !important;
color: #fff !important;
}
.w3-container.w3-theme-l1 {
background-color: #7b023e !important;
color: #fff !important;
}
.w3-container.w3-theme-l2 {
background-color: #4d565d !important;
color: #fff !important;
}
.w3-button.w3-green {
background-color: #0E5B3D !important;
color: #fff !important;
}
.w3-button.w3-blue {
background-color: #0D5D78 !important;
color: #fff !important;
}
</style>
</head>
<body>
<!-- Navbar -->
<div class="w3-top">
<div class="w3-bar w3-theme w3-top w3-left-align w3-large">
<a class="w3-bar-item w3-button w3-theme-l1" href="#">AVOKE</a>
<span class="w3-bar-item w3-hide-small">an open-source web-based experimentation toolbox for evoking audiovisual responses</span>
</div>
</div>
<!-- Sidebar -->
<nav class="w3-sidebar w3-bar-block w3-collapse w3-large w3-theme-l5 w3-animate-left" id="mySidebar">
<a href="javascript:void(0)" onclick="w3_close()" class="w3-right w3-xlarge w3-padding-large w3-hover-black w3-hide-large" title="Close Menu">
<i class="fa fa-remove"></i>
</a>
<a class="w3-bar-item w3-button w3-hover-black" href="#about">About</a>
<a class="w3-bar-item w3-button w3-hover-black" href="#plugin-demos">AVOKE components</a>
<a class="w3-bar-item w3-button w3-hover-black" href="#example-experiments">Example Experiments</a>
</nav>
<!-- Overlay effect when opening sidebar on small screens -->
<div class="w3-overlay w3-hide-large" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
<!-- Main content -->
<div class="w3-main" style="margin-left:calc(250px + 50px); margin-right:50px;">
<div class="w3-container w3-padding-32">
<header class="w3-center w3-padding-32">
<h1 class="w3-xxxlarge" style="color:#2e8b57;">
<img src="assets/AVOKE.png" alt="AVOKE Logo" style="max-width: 100%; height: 160px;">
</h1>
</header>
<div id="about">
<div class="avoke-section-title">About</div>
<p class="avoke-about">
AVOKE is a free and open-source toolbox for creating web-based behavioural experiments. Built on top of the popular
jsPsych library, AVOKE makes it easy to design experiments that use audiovisual stimuli—including videos, animations,
and even YouTube clips—with precise timing and reliable data collection.
Whether you’re a student, researcher, or hobbyist, AVOKE helps you build experiments quickly without needing advanced
coding skills. It includes clear documentation, ready-to-use components, demo examples, and tools for collecting
responses such as keypresses or webcam recordings. All features have been developed following community standards for
code reusability and comprehensive documentation, and have been validated through numerous tests developed using simulate functions.
We invite you to explore, use, and contribute to AVOKE to help make web experiments more creative, accessible, and reproducible!.
</p>
</div>
<div class="avoke-about" style="margin-bottom:20px;">
For more information and documentation, please visit
<a href="https://github.com/beatlab-mcmaster/AVOKE" target="_blank">https://github.com/beatlab-mcmaster/AVOKE</a>.
</div>
<!-- Plugin Demos Section -->
<div id="plugin-demos">
<!-- Audio-visual-response Demo -->
<div class="w3-row-padding" style="display: flex; align-items: center; margin-bottom:40px;" id = "audio-visual-response">
<div style="flex:1 1 0; min-width:200px; display:flex; flex-direction:column; justify-content:flex-start;">
<h2 class="avoke-section-title" style="margin-top:40px; margin-bottom:20px;">
Audio-visual-response
</h2>
<p class="avoke-about" style="margin-left:10px; margin-top:0; margin-bottom:20px;">
This plugin allows for displaying an image and playing an audio file simultaneously, and records responses generated with a button click. The included parameters allow for adjustment of trial duration, visual stimuli size, time delay before the button can be interacted with and more. The trial can be set to end when a button response is received or after the audio stimulus is finished playing.
</p>
<div style="display: flex; align-items: center; gap: 16px; margin-left:10px; margin-top:0;">
<a href="plugin-audio-visual-response/examples/index_run.html" target="_blank" class="w3-button w3-green w3-large" style="min-width:100px;">Demo</a>
<a href="plugin-audio-visual-response/examples/index_simulate.html" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Test</a>
<a href="https://github.com/beatlab-mcmaster/AVOKE/tree/main/plugin-audio-visual-response" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Github</a>
</div>
</div>
<div style="flex:0 0 320px; max-width:320px; min-width:0; display:flex; align-items:center; justify-content:center; padding-left:48px;">
<img src="assets/audiovisualFigureALT.svg" alt="Audio-visual-response Demo" style="width:100%; max-width:320px; height:auto;">
</div>
</div>
<!-- Stimulus-matrix-display Demo -->
<div class="w3-row-padding" style="display: flex; align-items: center; margin-bottom:40px;" id = "stimulus-matrix-display">
<div style="flex:1 1 0; min-width:200px; display:flex; flex-direction:column; justify-content:flex-start;">
<h2 class="avoke-section-title" style="margin-top:40px; margin-bottom:20px;">
Stimulus-matrix-display
</h2>
<p class="avoke-about" style="margin-left:10px; margin-top:0; margin-bottom:20px;">
This plugin implements a stimulus matrix display trial used for eyetracking experiments and other research studies. A target ('E' by default) appears in random locations on a customizable grid layout. The target can optionally be rotated using user-defined angles, or displayed without rotation. Participants respond with arrow keys (for rotated targets) or by clicking on targets when clickable mode is enabled. The plugin supports flexible grid sizes, both text and image targets, and uses standardized research stimuli (CFD, IAPS databases).
</p>
<div style="display: flex; align-items: center; gap: 16px; margin-left:10px; margin-top:0;">
<a href="plugin-stimulus-matrix-display/examples/index_run.html" target="_blank" class="w3-button w3-green w3-large" style="min-width:100px;">Demo</a>
<a href="plugin-stimulus-matrix-display/examples/index_simulate.html" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Test</a>
<a href="https://github.com/beatlab-mcmaster/AVOKE/tree/main/plugin-stimulus-matrix-display" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Github</a>
</div>
</div>
<div style="flex:0 0 427px; max-width:427px; min-width:0; display:flex; align-items:center; justify-content:center; padding-left:48px;">
<img src="assets/fixedFigureALT.svg" alt="Stimulus-matrix-display Demo" style="width:175%; max-width:clamp(0px, 90vw, 427px); height:auto;">
</div>
</div>
<!-- Path-animation-display Demo -->
<div class="w3-row-padding" style="display: flex; align-items: center; margin-bottom:40px;">
<div style="flex:1 1 0; min-width:200px; display:flex; flex-direction:column; justify-content:flex-start;">
<h2 class="avoke-section-title" style="margin-top:40px; margin-bottom:20px;">
Path-animation-display
</h2>
<p class="avoke-about" style="margin-left:10px; margin-top:0; margin-bottom:20px;">
This plugin presents an image target that moves along a path with a shape and pace determined by the experimenter. The target will begin moving after a keypress and the trial will end when the target finishes travelling along the path.
</p>
<div style="display: flex; align-items: center; gap: 16px; margin-left:10px; margin-top:0;">
<a href="plugin-path-animation-display/examples/index_run.html" target="_blank" class="w3-button w3-green w3-large" style="min-width:100px;">Demo</a>
<a href="plugin-path-animation-display/examples/index_simulate.html" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Test</a>
<a href="https://github.com/beatlab-mcmaster/AVOKE/tree/main/plugin-path-animation-display" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Github</a>
</div>
</div>
<div style="flex:0 0 427px; max-width:427px; min-width:0; display:flex; align-items:center; justify-content:center; padding-left:48px;">
<img src="assets/smoothFigure.svg" alt="Path animation display Demo" style="width:175%; max-width:clamp(0px, 90vw, 427px); height:auto;">
</div>
</div>
<!-- Youtube-response Demo -->
<div class="w3-row-padding" style="display: flex; align-items: center; margin-bottom:40px;">
<div style="flex:1 1 0; min-width:200px; display:flex; flex-direction:column; justify-content:flex-start;">
<h2 class="avoke-section-title" style="margin-top:40px; margin-bottom:20px;">
Youtube-response
</h2>
<p class="avoke-about" style="margin-left:10px; margin-top:0; margin-bottom:20px;">
This plugin is for displaying a YouTube stream or video and records responses generated with a button click.
</p>
<div style="display: flex; align-items: center; gap: 16px; margin-left:10px; margin-top:0;">
<a href="plugin-youtube-response/examples/index_run.html" target="_blank" class="w3-button w3-green w3-large" style="min-width:100px;">Demo</a>
<a href="plugin-youtube-response/examples/index_simulate.html" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Test</a>
<a href="https://github.com/beatlab-mcmaster/AVOKE/tree/main/plugin-youtube-response" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Github</a>
</div>
</div>
<div style="flex:0 0 427px; max-width:427px; min-width:0; display:flex; align-items:center; justify-content:center; padding-left:48px;">
<img src="assets/youtubeFigure.svg" alt="Youtube-response Demo" style="width:175%; max-width:clamp(0px, 90vw, 427px); height:auto;">
</div>
</div>
<!-- Video-capture-extension Demo -->
<div class="w3-row-padding" style="display: flex; align-items: center; margin-bottom:40px;" id = "video-capture-extension">
<div style="flex:1 1 0; min-width:200px; display:flex; flex-direction:column; justify-content:flex-start;">
<h2 class="avoke-section-title" style="margin-top:40px; margin-bottom:20px;" >
Video-capture-extension/Video-capture-setup
</h2>
<p class="avoke-about" style="margin-left:10px; margin-top:0; margin-bottom:20px;">
This extension allows for video recording in jsPsych experiments, particularly designed for webcam eye-tracking. Video files are output in .mp4 format.
</p>
<div style="display: flex; align-items: center; gap: 16px; margin-left:10px; margin-top:0;">
<a href="extension-video-capture/examples/index.html" target="_blank" class="w3-button w3-green w3-large" style="min-width:100px;">Demo</a>
<a href="plugin-video-capture-setup/examples (see jspsych-video-capture-extension examples instead)/index_simulate.html" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Test</a>
<a href="https://github.com/beatlab-mcmaster/AVOKE/tree/main/extension-video-capture" target="_blank" class="w3-button w3-blue w3-large" style="min-width:100px;">Github</a>
</div>
</div>
<div style="flex:0 0 320px; max-width:320px; min-width:0; display:flex; align-items:center; justify-content:center; padding-left:48px;">
<img src="assets/webcamFigure.svg" alt="Video-capture-extension Demo" style="width:100%; max-width:320px; height:auto;">
</div>
</div>
</div>
<!-- Example Experiments Section -->
<hr style="border: none; height: 2px; background: linear-gradient(to right, #ccc, #888, #ccc); width: 70%; margin: 80px auto;">
<div id="example-experiments" style="margin-top:80px;">
<div class="avoke-section-title" style="font-size: 2.5em; font-weight: bold;">Example Experiments</div>
<p class = "avoke-about">
Below are some classic experimental paradigms replicated using AVOKE components. These examples provide open materials to demonstrate the toolbox in action and help you get started building your own experiments from scratch.
</p>
<div class="w3-row-padding" style="display: flex; align-items: center; margin-bottom:40px;">
<div style="flex:1 1 0; min-width:200px; display:flex; flex-direction:column; justify-content:flex-start;">
<h2 class="avoke-section-title" style="margin-top:40px; margin-bottom:20px;">
McGurk Effect
</h2>
<p class="avoke-about" style="margin-left:10px; margin-top:0; margin-bottom:20px;">
The McGurk effect is a perceptual illusion that highlights how auditory and visual information are integrated during
speech perception. In this experiment, participants are presented with randomly paired audio and visual stimuli and
asked to identify the perceived syllable. This implementation is built with AVOKE's <a href="#audio-visual-response">audio-visual-response</a> plugin.</br></br>
<span style="font-size:0.95em; color:#555;">
McGurk effect study: McGurk & MacDonald (1976).
<a href="https://doi.org/10.1038/264746a0" target="_blank" style="font-size:0.95em;">
https://doi.org/10.1038/264746a0
</a>
</span><br>
<span style="font-size:0.95em; color:#555;">
Experiment stimuli sourced from: Magnotti et al. (2020).
<a href="https://doi.org/10.1016/j.cortex.2020.10.002" target="_blank" style="font-size:0.95em;">
https://doi.org/10.1016/j.cortex.2020.10.002
</a>
</span>
</p>
<div style="display: flex; align-items: center; gap: 16px; margin-left:10px; margin-top:0;">
<a href="example-experiments/mcgurk/index_run.html" target="_blank" class="w3-button w3-green w3-large"
style="min-width:100px;">Run experiment</a>
<a href="https://github.com/beatlab-mcmaster/AVOKE/blob/main/example-experiments/mcgurk/index_run.html" target="_blank" class="w3-button w3-blue w3-large"
style="min-width:100px;">Source</a>
</div>
</div>
</div>
<div class="w3-row-padding" style="display: flex; align-items: center; margin-bottom:40px;">
<div style="flex:1 1 0; min-width:200px; display:flex; flex-direction:column; justify-content:flex-start;">
<h2 class="avoke-section-title" style="margin-top:40px; margin-bottom:20px;">
Posner Cueing Task
</h2>
<p class="avoke-about" style="margin-left:10px; margin-top:0; margin-bottom:20px;">
The Posner cueing task is a classic paradigm in attention research that investigates the spatial
orienting of attention. In this experiment, participants are presented with a cue indicating the
likely location of a target stimulus, allowing researchers to measure the effects of spatial
attention on reaction times and accuracy. This implementation is built with AVOKE's <a href="#stimulus-matrix-display">stimulus-matrix-display</a> plugin.
</p>
<div style="display: flex; align-items: center; gap: 16px; margin-left:10px; margin-top:0;">
<a href="example-experiments/posner/index_run.html" target="_blank" class="w3-button w3-green w3-large"
style="min-width:100px;">Run experiment</a>
<a href="https://github.com/beatlab-mcmaster/AVOKE/blob/main/example-experiments/posner/index_run.html" target="_blank" class="w3-button w3-blue w3-large"
style="min-width:100px;">Source</a>
</div>
</div>
</div>
<div class="w3-row-padding" style="display: flex; align-items: center; margin-bottom:40px;">
<div style="flex:1 1 0; min-width:200px; display:flex; flex-direction:column; justify-content:flex-start;">
<h2 class="avoke-section-title" style="margin-top:40px; margin-bottom:20px;">
Posner Cueing Task with Webcam Video Capture
</h2>
<p class="avoke-about" style="margin-left:10px; margin-top:0; margin-bottom:20px;">
Same as the standard Posner cueing task, but with webcam video capture enabled to record videos during the fixation trial. This implementation is built with AVOKE's <a href="#stimulus-matrix-display">stimulus-matrix-display</a> plugin along with the <a href="#video-capture-plugin">video-capture extension and setup plugin</a>.
</p>
<div style="display: flex; align-items: center; gap: 16px; margin-left:10px; margin-top:0;">
<a href="example-experiments/posner/index_run_w_extension.html" target="_blank" class="w3-button w3-green w3-large"
style="min-width:100px;">Run experiment</a>
<a href="https://github.com/beatlab-mcmaster/AVOKE/blob/main/example-experiments/posner/index_run_w_extension.html" target="_blank" class="w3-button w3-blue w3-large"
style="min-width:100px;">Source</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Add this style to your <footer> to prevent it from being covered by the sidebar -->
<footer id="myFooter" style="margin-left:250px;">
<div class="w3-container w3-theme-l2 w3-padding-32">
<h4>AVOKE</h4>
</div>
<div class="w3-container w3-theme-l1">
<p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a></p>
</div>
</footer>
</div>
<script>
// Sidebar logic
var mySidebar = document.getElementById("mySidebar");
var overlayBg = document.getElementById("myOverlay");
function w3_open() {
if (mySidebar.style.display === 'block') {
mySidebar.style.display = 'none';
overlayBg.style.display = "none";
} else {
mySidebar.style.display = 'block';
overlayBg.style.display = "block";
}
}
function w3_close() {
mySidebar.style.display = "none";
overlayBg.style.display = "none";
}
</script>
</body>
</html>