You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cued_task_switching_single_task_network/experiment.js
+2-1
Original file line number
Diff line number
Diff line change
@@ -405,7 +405,8 @@ var instructions_block = {
405
405
'<div class = centerbox><p class = block-text>In this experiment you will have to respond to a sequence of numbers by pressing the "M" and "Z" keys. How you respond to the numbers will depend on the current task, which can change every trial.</p><p class = block-text>On some trials you will have to indicate whether the number is odd or even, and on other trials you will indicate whether the number is higher or lower than 5. Each trial will start with a cue telling you which task to do on that trial.</p></div>',
406
406
'<div class = centerbox><p class = block-text>The cue before the number will be a word indicating the task. There will be four different cues indicating two different tasks. The cues and tasks are described below:</p>'+
407
407
task_list+
408
-
'<p class = block-text>Practice will start after you end instructions.</p></div>'
408
+
'<p class = block-text>Practice will start after you end instructions.</p>'+
409
+
'<p class = block-text>To avoid technical issues, please keep the experiment tab (on Chrome or Firefox) active and in full-screen mode for the whole duration of each task.</p></div>'
' </i>if the probe was in the memory set, and the <i>'+possible_responses[1][0]+' </i>if not.</p>'+
610
610
611
611
'<p class = block-text>We will start practice when you finish instructions. Please make sure you understand the instructions before moving on. During practice, you will receive a reminder of the rules. <i>This reminder will be taken out for test</i>.</p>'+
612
+
'<p class = block-text>To avoid technical issues, please keep the experiment tab (on Chrome or Firefox) <i>active and in full-screen mode</i> for the whole duration of each task.</p>'+
612
613
'</div>'
613
614
],
614
615
allow_keys: false,
@@ -707,7 +708,6 @@ for (i = 0; i < practice_len + 1; i++) {
'<p class = block-text>We will start practice when you finish instructions. Please make sure you understand the instructions before moving on. During practice, you will receive a reminder of the rules. <i>This reminder will be taken out for test</i>.</p>'+
446
-
446
+
'<p class = block-text>To avoid technical issues, please keep the experiment tab (on Chrome or Firefox) <i>active and in full-screen mode</i> for the whole duration of each task.</p>'+
447
447
'</div>',
448
448
],
449
449
allow_keys: false,
@@ -541,7 +541,6 @@ var fixation_block = {
541
541
542
542
varITI_fixation_block={
543
543
type: 'poldrack-single-stim',
544
-
stimulus: '<div class = centerbox><div class = fixation><span style="color:white">+</span></div></div>',
545
544
is_html: true,
546
545
choices: choices,
547
546
data: {
@@ -599,7 +598,7 @@ var probe_block = {
599
598
choices: choices,
600
599
timing_post_trial: 0,
601
600
timing_stim: 1000,//1000
602
-
timing_response: 2000,//1000
601
+
timing_response: 1000,//1000
603
602
response_ends_trial: false,
604
603
on_finish: appendProbeData
605
604
};
@@ -626,7 +625,7 @@ var practice_probe_block = {
626
625
exp_stage: "practice"
627
626
},
628
627
timing_stim: 1000,//1000
629
-
timing_response: 2000,//1000
628
+
timing_response: 1000,//1000
630
629
timing_post_trial: 0,
631
630
is_html: true,
632
631
prompt: prompt_text,
@@ -711,7 +710,6 @@ for (i = 0; i < (practice_length); i++) {
711
710
712
711
varpractice_ITI_fixation_block={
713
712
type: 'poldrack-single-stim',
714
-
stimulus: '<div class = centerbox><div class = fixation><span style="color:white">+</span></div></div>',
varnumTrialsPerBlock=40;// divisible by directed_cond_array * flanker_conditions
356
356
varnumTestBlocks=exp_len/numTrialsPerBlock
357
357
358
358
varaccuracy_thresh=0.75
@@ -513,6 +513,8 @@ var instructions_block = {
513
513
'<p class = block-text>Please ignore the letters that are not in the middle.</p>'+
514
514
515
515
'<p class = block-text>We will start practice when you finish instructions. Please make sure you understand the instructions before moving on. During practice, you will receive a reminder of the rules. <i>This reminder will be taken out for test</i>.</p>'+
516
+
517
+
'<p class = block-text>To avoid technical issues, please keep the experiment tab (on Chrome or Firefox) <i>active and in full-screen mode</i> for the whole duration of each task.</p>'+
516
518
'</div>'
517
519
],
518
520
allow_keys: false,
@@ -611,7 +613,6 @@ for (i = 0; i < practice_len; i++) {
611
613
612
614
varITI_fixation_block={
613
615
type: 'poldrack-single-stim',
614
-
stimulus: '<div class = centerbox><div class = fixation><span style="color:white;">+</span></div></div>',
@@ -341,9 +341,9 @@ var instructTimeThresh = 0 ///in seconds
341
341
varcredit_var=0
342
342
343
343
// new vars
344
-
varpractice_len=8// must be divisible by 8
345
-
varexp_len=192// must be divisible by 8
346
-
varnumTrialsPerBlock=32;// divisible by 64
344
+
varpractice_len=24// must be divisible by 8
345
+
varexp_len=240// must be divisible by 8
346
+
varnumTrialsPerBlock=40;// divisible by shape_matching_conditions * directed_cond_array
347
347
varnumTestBlocks=exp_len/numTrialsPerBlock
348
348
349
349
varaccuracy_thresh=0.75
@@ -504,6 +504,8 @@ var instructions_block = {
504
504
'<p class = block-text>Please ignore the red letter.</p>'+
505
505
506
506
'<p class = block-text>We will start practice when you finish instructions. Please make sure you understand the instructions before moving on. During practice, you will receive a reminder of the rules. <i>This reminder will be taken out for test</i>.</p>'+
507
+
508
+
'<p class = block-text>To avoid technical issues, please keep the experiment tab (on Chrome or Firefox) <i>active and in full-screen mode</i> for the whole duration of each task.</p>'+
507
509
'</div>'
508
510
],
509
511
allow_keys: false,
@@ -603,7 +605,6 @@ for (i = 0; i < practice_len; i++) {
603
605
604
606
varITI_fixation_block={
605
607
type: 'poldrack-single-stim',
606
-
stimulus: '<div class = centerbox><div class = fixation><span style="color:white;">+</span></div></div>',
Copy file name to clipboardExpand all lines: flanker_single_task_network/experiment.js
+6-1
Original file line number
Diff line number
Diff line change
@@ -274,7 +274,12 @@ var feedback_instruct_block = {
274
274
varinstructions_block={
275
275
type: 'poldrack-instructions',
276
276
pages: [
277
-
"<div class = centerbox><p class = block-text>In this experiment you will see five letters on the string composed of F's and H's. For instance, you might see 'FFFFF' or 'HHFHH'. Your task is to respond by pressing the key corresponding to the <i>middle</i> letter. So if you see 'FFHFF' you would press the 'H' key.</p><p class = block-text>After each response you will get feedback about whether you were correct or not. We will start with a short practice set.</p></div>"
277
+
'<div class = centerbox>'+
278
+
'<p class = block-text>In this experiment you will see five letters on the string composed of F\'s and H\'s. For instance, you might see \'FFFFF\' or \'HHFHH\'. '+
279
+
'Your task is to respond by pressing the key corresponding to the <i>middle</i> letter. So if you see \'FFHFF\' you would press the \'H\' key.</p>'+
280
+
'<p class = block-text>After each response you will get feedback about whether you were correct or not. We will start with a short practice set.</p>'+
281
+
'<p class = block-text>To avoid technical issues, please keep the experiment tab (on Chrome or Firefox) <i>active and in full-screen mode</i> for the whole duration of each task.</p>'+
Copy file name to clipboardExpand all lines: flanker_with_cued_task_switching/experiment.js
+2
Original file line number
Diff line number
Diff line change
@@ -438,6 +438,8 @@ var instructions_block = {
438
438
'<p class = block-text>Please judge only the center number, you should ignore the other numbers.</p>'+
439
439
440
440
'<p class = block-text>We will start practice after you finish instructions. Please make sure you understand the instructions before moving on. During practice, you will receive a reminder of the rules. <i>This reminder will not be available for test</i>.</p>'+
441
+
442
+
'<p class = block-text>To avoid technical issues, please keep the experiment tab (on Chrome or Firefox) <i>active and in full-screen mode</i> for the whole duration of each task.</p>'+
0 commit comments