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
@@ -165,7 +165,7 @@ var createTrialTypes = function(task_switches){
165
165
166
166
numbers_list=[[6,8],[7,9],[2,4],[1,3]]
167
167
numbers=[1,2,3,4,6,7,8,9]
168
-
168
+
169
169
varflanker_trial_type_list=[]
170
170
varflanker_trial_types1=jsPsych.randomization.repeat(['congruent','incongruent'],numTrialsPerBlock/8)// 8 = 2(switch vs. stay)*2(magnitude vs. parity)*2(congruent vs. incongruent)
task_switch=task_switches[current_trial-2]//this might be off
291
287
}
292
288
293
289
if(trial_id=='practice_trial'){
@@ -300,6 +296,7 @@ var appendData = function(){
300
296
predictable_condition: predictable_condition,
301
297
predictable_dimension: predictable_dimension,
302
298
flanker_condition: flanker_condition,
299
+
task_switch: task_switch,
303
300
number: number,
304
301
flanking_number: flanking_number,
305
302
correct_response: correct_response,
@@ -365,13 +362,13 @@ var task_boards = [[['<div class = bigbox><div class = quad_box><div class = dec
365
362
[['<div class = bigbox><div class = quad_box><div class = decision-bottom-right><div class = flankerLeft_2><div class = cue-text>'],['</div></div><div class = flankerLeft_1><div class = cue-text>'],['</div></div><div class = flankerMiddle><div class = cue-text>'],['</div></div><div class = flankerRight_1><div class = cue-text>'],['</div></div><div class = flankerRight_2><div class = cue-text>'],['</div></div></div><div></div>']],
366
363
[['<div class = bigbox><div class = quad_box><div class = decision-bottom-left><div class = flankerLeft_2><div class = cue-text>'],['</div></div><div class = flankerLeft_1><div class = cue-text>'],['</div></div><div class = flankerMiddle><div class = cue-text>'],['</div></div><div class = flankerRight_1><div class = cue-text>'],['</div></div><div class = flankerRight_2><div class = cue-text>'],['</div></div></div><div></div>']]]
367
364
368
-
varfixation_boards=[[['<div class = bigbox><div class = quad_box><div class = decision-top-left>'],['</div></div></div>']],
369
-
[['<div class = bigbox><div class = quad_box><div class = decision-top-right>'],['</div></div></div>']],
370
-
[['<div class = bigbox><div class = quad_box><div class = decision-bottom-right>'],['</div></div></div>']],
371
-
[['<div class = bigbox><div class = quad_box><div class = decision-bottom-left>'],['</div></div></div>']]]
365
+
varfixation_boards=[['<div class = bigbox><div class = quad_box><div class = decision-top-left><div class = fixation>+</div></div></div></div>'],
366
+
['<div class = bigbox><div class = quad_box><div class = decision-top-right><div class = fixation>+</div></div></div></div>'],
367
+
['<div class = bigbox><div class = quad_box><div class = decision-bottom-right><div class = fixation>+</div></div></div></div>'],
368
+
['<div class = bigbox><div class = quad_box><div class = decision-bottom-left><div class = fixation>+</div></div></div></div>']]
questions: ['<p class = center-block-text style = "font-size: 20px">Please summarize what you were asked to do in this task.</p>',
@@ -479,9 +470,8 @@ var instructions_block = {
479
470
},
480
471
pages: [
481
472
'<div class = centerbox>'+
482
-
'<p class = block-text>In this experiment, across trials you will see a row of numbers within one of the four quadrants on the screen. '+
483
-
'Based upon which quardant the number is presented, you will complete a different task for that number. '+
484
-
'On any trial, one quadrant will have a row of numbers.</p> '+
473
+
'<p class = block-text>In this experiment, across trials you will see a row of numbers on the screen in one of the 4 quadrants. '+
474
+
'On any trial, one quadrant will have a row of numbers.</p> '+
485
475
486
476
'<p class = block-text>You will be asked to judge the <i>middle number</i> on magnitude (higher or lower than 5) or parity (odd or even), depending on which quadrant '+
487
477
'the numbers are in.</p>'+
@@ -594,7 +584,6 @@ var rest_block = {
594
584
varpracticeTrials=[]
595
585
practiceTrials.push(feedback_block)
596
586
practiceTrials.push(instructions_block)
597
-
598
587
for(i=0;i<practice_len+1;i++){
599
588
varfixation_block={
600
589
type: 'poldrack-single-stim',
@@ -608,21 +597,7 @@ for (i = 0; i < practice_len + 1; i++) {
608
597
timing_post_trial: 0,
609
598
prompt: prompt_text
610
599
}
611
-
612
-
varpractice_cue_block={
613
-
type: 'poldrack-single-stim',
614
-
stimulus: getCue,
615
-
is_html: true,
616
-
choices: 'none',
617
-
data: {
618
-
trial_id: 'practice_cue'
619
-
},
620
-
timing_response: 150,//getCTI
621
-
timing_stim: 150,//getCTI
622
-
timing_post_trial: 0,
623
-
prompt: prompt_text
624
-
}
625
-
600
+
626
601
varpractice_block={
627
602
type: 'poldrack-categorize',
628
603
stimulus: getStim,
@@ -632,9 +607,9 @@ for (i = 0; i < practice_len + 1; i++) {
632
607
data: {
633
608
trial_id: "practice_trial"
634
609
},
635
-
correct_text: '<div class = fb_box><div class = center-text><font size = 20>Correct!</font></div></div>',
636
-
incorrect_text: '<div class = fb_box><div class = center-text><font size = 20>Incorrect</font></div></div>',
637
-
timeout_message: '<div class = fb_box><div class = center-text><font size = 20>Respond Faster!</font></div></div>',
610
+
correct_text: '<div class = fb_box><div class = center-text><font size = 20>Correct!</font></div></div>'+prompt_text,
611
+
incorrect_text: '<div class = fb_box><div class = center-text><font size = 20>Incorrect</font></div></div>'+prompt_text,
612
+
timeout_message: '<div class = fb_box><div class = center-text><font size = 20>Respond Faster!</font></div></div>'+prompt_text,
638
613
timing_stim: 1000,//1000
639
614
timing_response: 2000,//2000
640
615
timing_feedback_duration: 500,//500
@@ -644,7 +619,6 @@ for (i = 0; i < practice_len + 1; i++) {
644
619
prompt: prompt_text
645
620
}
646
621
practiceTrials.push(fixation_block)
647
-
practiceTrials.push(practice_cue_block)
648
622
practiceTrials.push(practice_block)
649
623
}
650
624
@@ -654,8 +628,7 @@ var practiceNode = {
654
628
timeline: practiceTrials,
655
629
loop_function: function(data){
656
630
practiceCount+=1
657
-
task_switches=makeTaskSwitches(practice_len)
658
-
stims=createTrialTypes(task_switches)
631
+
//stims = createTrialTypes(practice_len)
659
632
current_trial=0
660
633
661
634
varsum_rt=0
@@ -689,7 +662,7 @@ var practiceNode = {
689
662
feedback_text+=
690
663
'</p><p class = block-text>Done with this practice. Press Enter to continue.'
"notes": "Condition refers to whether the trial is practice or high_freq/low_freq (the two test conditions) as well as whether it was a go or SS trial",
0 commit comments