-
Notifications
You must be signed in to change notification settings - Fork 0
/
inverted_upright_nomask.html
1289 lines (1263 loc) · 49.4 KB
/
inverted_upright_nomask.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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<head>
<script type="text/javascript" src="lib/vendors/jspsych-6.0.0/jspsych.js"></script>
<link rel="stylesheet" type="text/css" href="lib/vendors/jspsych-6.0.0/css/jspsych.css"/>
<script type="text/javascript" src="lib/vendors/jquery-2.2.0.min.js"></script>
<script type="text/javascript" src="lib/jspsych-pavlovia-3.0.6.js"></script>
<script src="jspsych-html-keyboard-response.js"></script>
<script src="jspsych-image-keyboard-response.js"></script>
<script src="jspsych-survey-html-form.js"></script>
<script src="jspsych-external-html.js"></script>
</head>
<body style="background: rgb(128, 128, 128); font-size: 20px;">
<script>
timeline = [];
/* init connection with pavlovia.org */
var pavlovia_init = {
type: "pavlovia",
command: "init"
};
timeline.push(pavlovia_init)
const welcome = {
type: 'html-keyboard-response',
type_of_trial: 'Welcome',
stimulus: 'Welcome to the experiment. Press any key to begin.',
choices: jsPsych.ALL_KEYS,
correct_key: ''
}
var ask_consent = function(elem) {
if(document.getElementById('consent_checkbox').checked) {
return true;
}
else {
alert("Please consent before continuing.");
return false;
}
return false;
};
var consent = {
type: 'external-html',
url: 'consent.html',
cont_btn: "start",
check_fn: ask_consent
}
let ppn_string = "<div style='text-align: left; vertical-align: top; display: inline-block; float: left; width: 100%'>"+
"<p><u>Please enter your participant ID here:</u> <input style='font-size: 18px; line-height: 1.6em;' input type='text' id='start' name='ppn'></p>"+
"</div>"
var ppn = {
type: 'survey-html-form',
html: ppn_string
}
const survey = {
type: "survey-html-form",
html: "<div style='text-align: left; vertical-align: top; display: inline-block; float: left; width: 100%'>"+
"<p><u>Age:</u> <input style='font-size: 18px; line-height: 1.6em;' input type='text' id='start' name='age'></p>"+
"<p><u>Handedness:</u> </strong><input type='radio' id='left' name='handedness' value='left'>"+
"<label for='left'>Left-handed</label>"+
"<input type='radio' id='right' name='handedness' value='right' checked>"+
"<label for='right'>Right-handed</label>"+
"<input type='radio' id='ambi' name='handedness' value='ambi'>"+
"<label for='ambi'>Ambidextrous</label></p>"+
"<p><u>Sex:</u> <input type='radio' id='female' name='sex' value='female' checked>"+
"<label for='female'>Female</label>"+
"<input type='radio' id='male' name='sex' value='male'>"+
"<label for='male'>Male</label>"+
"<input type='radio' name='sex' value='other'><label for='other'>Other, please specify: </label>"+
"<input type='text' name='other_sex' id='other_sex' value=''></p>"+
"<p>Highest level of education achieved:<br><select id='education' name='education' style='font-size: 1em' required=''>"+
"<option value=''>Please select</option><option value='less than high school'>less than High school</option>"+
"<option value='high school or equivalent'>High school or equivalent</option><option value='college or technical school'>College or technical school</option>"+
"<option value='Bachelor degree'>Bachelor degree</option><option value='Master/Doctorate'>Master/Doctorate</option>"+
"</select></p>"+
"</div>",
preamble: "<strong>Please provide some personal information: </strong>",
button_label: "continue",
}
var instructions ={
type: 'html-keyboard-response',
type_of_trial: 'instructions',
stimulus: '<p><strong>PRACTICE</strong></p><p>Memorize the face in the next three images.</p><p>A test will follow.</p><p>Press any key on your keyboard to begin.</p>',
choices: jsPsych.ALL_KEYS,
correct_key: ''
}
timeline.push(welcome, consent, ppn, survey, instructions)
const stim1_w = 186
const stim1_h = 193
var learn = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Practice</p>',
trial_duration: 3000,
stimulus_width: stim1_w,
stimulus_height: stim1_h,
correct_key: '',
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/bart_left.jpg'},
]
}
const stim6_w = 171
const stim6_h = 193
var learn2 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Practice</p>',
trial_duration: 3000,
stimulus_width: stim6_w,
stimulus_height: stim6_h,
correct_key: '',
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/bart_straight.jpg'}
]
}
const stim7_w = 184
const stim7_h = 193
var learn3 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Practice</p>',
trial_duration: 3000,
stimulus_height: stim7_h,
correct_key: '',
stimulus_width: stim7_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/bart_right.jpg'}
]
}
const stim2_w = 507
const stim2_h = 251
var practice = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
stimulus_width: stim2_w,
stimulus_height: stim2_h,
prompt: '<p>Which face did you just view? There is only one correct answer. Press 1, 2 or 3.</p>',
type_of_trial: 'practice',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/pract_left.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/pract_right.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/pract_straight.jpg', correct_key: '2'}
]
}
timeline.push(learn, learn2, learn3, practice)
var instructions_2 = {
type: 'html-keyboard-response',
stimulus: '<p>These were the practice trials.</p><p>Great! Lets go on and do the actual test.</p><p>In this test, you will learn to recognize six people.</p><p>To begin memorizing the first face, press any key on your keyboard.</p>',
choices: jsPsych.ALL_KEYS,
type_of_trial: 'instructions',
correct_key: ''
}
const stim3_h = 194
const stim3_w = 135
var brs = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
trial_duration: 3000,
stimulus_height: stim3_h,
stimulus_width: stim3_w,
correct_key: '',
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Bob_left_study.jpg'}
]
}
const stim8_h = 194
const stim8_w = 127
var brs_2 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
trial_duration: 3000,
stimulus_height: stim8_h,
correct_key: '',
stimulus_width: stim8_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Bob_frontal_study.jpg'}
]
}
timeline.push(instructions_2, brs, brs_2)
const stim9_h = 194
const stim9_w = 139
var brs_3 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
trial_duration: 3000,
stimulus_height: stim9_h,
correct_key: '',
stimulus_width: stim9_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Bob_right_study.jpg'}
]
}
var b_iden = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'easy',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/B1_Identical_Left.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/B2_Identical_Frontal.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/B3_Identical_Right.jpg', correct_key: '3'}
]
}
var instructions_3 = {
type: 'html-keyboard-response',
choices: jsPsych.ALL_KEYS,
stimulus: '<p>Memorize the following face.</p><p>To begin press any key on your keyboard.</p>',
type_of_trial: 'instructions',
correct_key: ''
}
timeline.push(brs_3, b_iden, instructions_3)
const stim10_h = 194
const stim10_w = 150
var dan = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim10_h,
correct_key: '',
trial_duration: 3000,
stimulus_width: stim10_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Dan_Left_Study.jpg'}
]
}
const stim11_h = 194
const stim11_w = 176
var dan_2 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim11_h,
correct_key: '',
trial_duration: 3000,
stimulus_width: stim11_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Dan_frontal_study.jpg'}
]
}
const stim12_h = 194
const stim12_w = 170
var dan_3 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
correct_key: '',
stimulus_height: stim12_h,
trial_duration: 3000,
stimulus_width: stim12_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Dan_Right_Frontal.jpg'}
]
}
timeline.push(dan, dan_2, dan_3)
var d_iden = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'easy',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/D1_Identical_Left.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/D2_Identical_Frontal.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/D3_Identical_Right.jpg', correct_key: '3'}
]
}
var instructions_4 = {
type: 'html-keyboard-response',
choices: jsPsych.ALL_KEYS,
stimulus: 'Press any key on your keyboard.',
type_of_trial: 'instructions',
correct_key: ''
}
const stim13_h = 194
const stim13_w = 171
var jim = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim13_h,
stimulus_width: stim13_w,
correct_key: '',
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Jim_left.jpg'}
]
}
timeline.push(d_iden, instructions_4, jim)
const stim14_h = 194
const stim14_w = 172
var jim_2 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim14_h,
correct_key: '',
stimulus_width: stim14_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Jim_front.jpg'}
]
}
const stim15_h = 194
const stim15_w = 188
var jim_3 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim15_h,
correct_key: '',
stimulus_width: stim15_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Jim_right.jpg'}
]
}
var j_1_iden = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'easy',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/J_1_Iden_L.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/J_2_Iden_Front.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/J_3_Iden_R.jpg', correct_key: '1'}
]
}
timeline.push(jim_2, jim_3, j_1_iden)
var instructions_5 = {
type: 'html-keyboard-response',
type_of_trial: 'instructions',
correct_key: '',
choices: jsPsych.ALL_KEYS,
stimulus: 'Memorize the following face. Press any key on your keyboard.'
}
const stim16_h = 194
const stim16_w = 172
var matt = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim16_h,
correct_key: '',
stimulus_width: stim16_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Matt_left_cropped.jpg'}
]
}
const stim17_h = 194
const stim17_w = 196
var matt_2 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim17_h,
stimulus_width: stim17_w,
correct_key: '',
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Matt_front.jpg'}
]
}
timeline.push(instructions_5, matt, matt_2)
const stim18_h = 194
const stim18_w = 192
var matt_3 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim13_h,
correct_key: '',
stimulus_width: stim13_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Matt_right_cropped.jpg'}
]
}
var m_1_iden = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'easy',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/M_1_Iden_L.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/M_2_Iden_Front.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/M_3_Iden_R.jpg', correct_key: '1'}
]
}
var instructions_6 = {
type: 'html-keyboard-response',
stimulus: 'Memorize the following face. Press any key on your keyboard.',
type_of_trial: 'instructions',
choices: jsPsych.ALL_KEYS,
correct_key: ''
}
timeline.push(matt_3, m_1_iden, instructions_6)
const stim19_h = 194
const stim19_w = 176
var nate = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim19_h,
stimulus_width: stim19_w,
correct_key: '',
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Nate_left_cropped.jpg'}
]
}
const stim20_h = 194
const stim20_w = 172
var nate_2 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim20_h,
correct_key: '',
stimulus_width: stim20_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Nate_front_cropped.jpg'}
]
}
const stim21_h = 194
const stim21_w = 166
var nate_3 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim21_h,
correct_key: '',
stimulus_width: stim21_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Nate_right_cropped.jpg'}
]
}
timeline.push(nate, nate_2, nate_3)
var n_1_iden = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'easy',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/N_1_Iden_L.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/N_2_Iden_Front.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/N_3_Iden_R.jpg', correct_key: '3'}
]
}
var instructions_7 = {
type: 'html-keyboard-response',
stimulus: 'Memorize the following face. Press any key on your keyboard.',
choices: jsPsych.ALL_KEYS,
type_of_trial: 'instructions',
correct_key: ''
}
const stim22_h = 194
const stim22_w = 160
var zack = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim22_h,
stimulus_width: stim22_w,
type_of_trial: 'learn',
correct_key: '',
trial_duration: 3000,
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Zack_Left_cropped.jpg'}
]
}
timeline.push(n_1_iden, instructions_7, zack)
const stim23_h = 194
const stim23_w =183
var zack_2 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim23_h,
stimulus_width: stim23_w,
correct_key: '',
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Zack_Front_cropped.jpg'}
]
}
const stim24_h = 194
const stim24_w = 172
var zack_3 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim24_h,
correct_key: '',
stimulus_width: stim24_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Zack_Right_Cropped.jpg'}
]
}
var z_1_iden = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'easy',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Z_1_Iden_L.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/Z_2_Iden_Front.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/Z_3_Iden_R.jpg', correct_key: '1'}
]
}
timeline.push(zack_2, zack_3, z_1_iden)
var instructions_8 = {
type: 'html-keyboard-response',
stimulus: 'Next you will review the same six people for 20 seconds. Press any key on your keyboard.',
type_of_trial: 'instructions',
choices: jsPsych.ALL_KEYS,
correct_key: ''
}
const stim4_h = 616
const stim4_w = 616
var review_1 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
stimulus_height: stim4_h,
stimulus_width: stim4_w,
correct_key: '',
prompt: '<p>Review the faces (20 seconds)</p>',
trial_duration: 20000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/AA_Review_image.jpg'}
]
}
var instructions_9 = {
type: 'html-keyboard-response',
choices: jsPsych.ALL_KEYS,
stimulus: '<p>Now your memory of these faces will be tested. In the remaining trials, the correct answer can be any of the six faces.</p><p>The incorrect faces are sometimes very similar to the target faces, so be sure to look at each face prior to answering.</p><p>Press any key to begin.</p>',
type_of_trial: 'instructions',
correct_key: ''
}
timeline.push(instructions_8, review_1, instructions_9)
var m_5 = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face is one of the six target faces?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'medium',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/M_5_Front_Halflit.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/N_8_13_R_Pro_dark.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/Z_6_23_Pro_L.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/D5_Halflit_Frontal.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/B7_Bottomlit_Frontal.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/J_6_23_L_Pro.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/D7_Bottomlit_Frontal.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/Z_5_Front_Half.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/M_6_23_L_Pro.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/J_7_Bottom_Lit.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/N_4_23_R_Pro.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/M_8_13_R_Pro_dark.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/J_5_Front_Halflit.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/N_7_Front_Bot.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/Z_4_23_Pro_R.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/D8_13_Profile_R.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/M_7_Front_Bot.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/B4_23_pro_ri.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/D6_23_Profile_L.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/N_5_Front_Half.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/B6_23_pro_L.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/Z_8_13_Pro_R_dark.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/J_4_23_R_Pro.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/B8_13_pro_R_HS.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/M_4_23_R_Pro.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/J_8_13_r_pro_dark.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/Z_7_Front_Bot.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/D4_23_profile_R.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/N_6_23_L_Pro.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/B5_halflit_frontal.jpg', correct_key: '3'}
]
}
timeline.push(m_5)
var review_2 = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
stimulus_height: stim4_h,
stimulus_width: stim4_w,
prompt: '<p>Review the faces (20 seconds)</p>',
trial_duration: 20000,
correct_key: '',
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/AA_Review_image.jpg'}
]
}
timeline.push(review_2)
var z_12 = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face is one of the six target faces?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'hard',
timeline: [
{stimulus: '256245_stimuli_20200513_0036/Z_12_Front_Noisy.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/M_11_23_N_R_Pro.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/D10_Noisy_13_Profile_L.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/J_12_Frontal_HS.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/J_11_23_pro_R.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/N_9_Front_LS.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/B12_Noisy_frontal_HS.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/M_12_Front_N_HS.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/D12_Noisy_Frontal_HS.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/Z_11_23_Pro_R.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/N_10_13_L_Pro_dark.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/B9_Noisy_frontal_LS.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/M_9_Front_N_LS.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/J_9_N_Frontal_50.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/N_12_Front_Noisy.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/B10_Noisy_13_pro_L.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/N_11_23_R_Pro.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/J_10_13_pro_l.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/Z_9_Front_Noisy.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/D9_Noisy_Frontal_LS.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/M_10_N_13_L_Pro_D.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/Z_10_13_Pro_L.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/B11_Noise_23_pro_R.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/D11_Noisy_23_profile_R.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/N_IF.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/Z_OE.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/D_OE.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/M_P.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/J_S.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/D_HU.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/B_S.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/D_P.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/Z_IF.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/J_IF.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/M_OE.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/B_P.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/M_HU.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/Z_HU.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/N_S.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/D_IF.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/B_OE.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/M_IF.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/N_HU.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/J_P.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/M_S.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/N_OE.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/B_IF.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/Z_S.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/J_HU.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/Z_P.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036/N_P.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036/J_OE.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/B_HU.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036/D_S.jpg', correct_key: '1'}
]
}
timeline.push(z_12)
var instructions_inverted ={
type: 'html-keyboard-response',
type_of_trial: 'instructions',
stimulus: '<p>Well done! Now you will proceed to the second part of the experiment.</p><p>As before, the next round is a practice round. Memorize the face in the next three images.</p><p>A test will follow.</p><p>Press any key on your keyboard to begin.</p>',
choices: jsPsych.ALL_KEYS
}
var learn_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Practice</p>',
trial_duration: 3000,
stimulus_width: stim1_w,
stimulus_height: stim1_h,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/bart_left.jpg'},
]
}
var learn2_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Practice</p>',
trial_duration: 3000,
stimulus_width: stim6_w,
stimulus_height: stim6_h,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/bart_straight.jpg'}
]
}
timeline.push(instructions_inverted, learn_inverted, learn2_inverted)
var learn3_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Practice</p>',
trial_duration: 3000,
stimulus_height: stim7_h,
stimulus_width: stim7_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/bart_right.jpg'}
]
}
var practice_inverted = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
stimulus_width: stim2_w,
stimulus_height: stim2_h,
prompt: '<p>Which face did you just view? There is only one correct answer. Press 1, 2 or 3.</p>',
type_of_trial: 'practice',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/pract_left.jpg', correct_key: '1'},
{stimulus: '256245_stimuli_20200513_0036_inverted/pract_right.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036_inverted/pract_straight.jpg', correct_key: '2'}
]
}
var instructions_10 = {
type: 'html-keyboard-response',
stimulus: '<p>These were the practice trials.</p><p>Great! Lets go on and do the actual test.</p><p>In this test, you will learn to recognize six people.</p><p>To begin memorizing the first face, press any key on your keyboard.</p>',
choices: jsPsych.ALL_KEYS,
type_of_trial: 'instructions',
correct_key: ''
}
var brs_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
trial_duration: 3000,
stimulus_height: stim3_h,
stimulus_width: stim3_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Bob_left_study.jpg'}
]
}
var brs_2_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
trial_duration: 3000,
stimulus_height: stim8_h,
stimulus_width: stim8_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Bob_frontal_study.jpg'}
]
}
timeline.push(learn3_inverted, practice_inverted, instructions_10, brs_inverted, brs_2_inverted)
var brs_3_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
trial_duration: 3000,
stimulus_height: stim9_h,
stimulus_width: stim9_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Bob_right_study.jpg'}
]
}
var b_iden_inverted = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'easy',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/B1_Identical_Left.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036_inverted/B2_Identical_Frontal.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036_inverted/B3_Identical_Right.jpg', correct_key: '3'}
]
}
var instructions_3_inverted = {
type: 'html-keyboard-response',
choices: jsPsych.ALL_KEYS,
stimulus: '<p>Memorize the following face.</p><p>To begin press any key on your keyboard.</p>',
type_of_trial: 'instructions'
}
timeline.push(brs_3_inverted, b_iden_inverted, instructions_3_inverted)
var dan_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim10_h,
trial_duration: 3000,
stimulus_width: stim10_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Dan_Left_Study.jpg'}
]
}
var dan_2_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim11_h,
trial_duration: 3000,
stimulus_width: stim11_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Dan_frontal_study.jpg'}
]
}
var dan_3_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim12_h,
trial_duration: 3000,
stimulus_width: stim12_w,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Dan_Right_Frontal.jpg'}
]
}
timeline.push(dan_inverted, dan_2_inverted, dan_3_inverted)
var d_iden_inverted = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'easy',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/D1_Identical_Left.jpg', correct_key: '2'},
{stimulus: '256245_stimuli_20200513_0036_inverted/D2_Identical_Frontal.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036_inverted/D3_Identical_Right.jpg', correct_key: '3'}
]
}
var instructions_4_inverted = {
type: 'html-keyboard-response',
choices: jsPsych.ALL_KEYS,
stimulus: 'Press any key on your keyboard.',
type_of_trial: 'instructions'
}
var jim_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim13_h,
stimulus_width: stim13_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Jim_left.jpg'}
]
}
timeline.push(d_iden_inverted, instructions_4_inverted, jim_inverted)
var jim_2_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim14_h,
stimulus_width: stim14_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Jim_front.jpg'}
]
}
var jim_3_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim15_h,
stimulus_width: stim15_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Jim_right.jpg'}
]
}
var j_1_iden_inverted = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,
type_of_trial: 'test',
difficulty: 'easy',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/J_1_Iden_L.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036_inverted/J_2_Iden_Front.jpg', correct_key: '3'},
{stimulus: '256245_stimuli_20200513_0036_inverted/J_3_Iden_R.jpg', correct_key: '1'}
]
}
timeline.push(jim_2_inverted, jim_3_inverted, j_1_iden_inverted)
var instructions_5_inverted = {
type: 'html-keyboard-response',
choices: jsPsych.ALL_KEYS,
stimulus: 'Memorize the following face. Press any key on your keyboard.'
}
var matt_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim16_h,
stimulus_width: stim16_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Matt_left_cropped.jpg'}
]
}
var matt_2_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim17_h,
stimulus_width: stim17_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Matt_front.jpg'}
]
}
timeline.push(instructions_5_inverted, matt_inverted, matt_2_inverted)
var matt_3_inverted = {
type: 'image-keyboard-response',
choices: jsPsych.NO_KEYS,
prompt: '<p>Memorize</p>',
stimulus_height: stim13_h,
stimulus_width: stim13_w,
trial_duration: 3000,
type_of_trial: 'learn',
timeline: [
{stimulus: '256245_stimuli_20200513_0036_inverted/Matt_right_cropped.jpg'}
]
}
var m_1_iden_inverted = {
type: 'image-keyboard-response',
choices: ['1', '2', '3'],
prompt: '<p>Which face did you just view?</p>',
stimulus_height: stim2_h,
stimulus_width: stim2_w,