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: predictable_task_switching_with_cued_task_switching/experiment.js
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -358,7 +358,7 @@ var createTrialTypes = function(numTrialsPerBlock){
358
358
}
359
359
360
360
stim={
361
-
whichQuadrant: whichQuadrant,
361
+
whichQuadrant: quadIndex,
362
362
predictive_condition: predictive_condition,
363
363
predictive_dimension: predictive_dimension,
364
364
cued_condition: cued_condition,
@@ -397,7 +397,7 @@ var appendData = function(){
397
397
}
398
398
399
399
jsPsych.data.addDataToLastTrial({
400
-
whichQuadrant: quadIndex,
400
+
whichQuadrant: whichQuadrant,
401
401
predictive_condition: predictive_condition,
402
402
predictive_dimension: predictive_dimension,
403
403
task_condition: cued_condition,
@@ -537,7 +537,7 @@ var attention_check_block = {
537
537
data: {
538
538
trial_id: "attention_check"
539
539
},
540
-
timing_response: 180000,
540
+
timing_response: 180000,
541
541
response_ends_trial: true,
542
542
timing_post_trial: 200
543
543
}
@@ -559,7 +559,7 @@ var post_task_block = {
559
559
questions: ['<p class = center-block-text style = "font-size: 20px">Please summarize what you were asked to do in this task.</p>',
560
560
'<p class = center-block-text style = "font-size: 20px">Do you have any comments about this task?</p>'],
561
561
rows: [15,15],
562
-
timing_response: 360000,
562
+
timing_response: 360000,
563
563
columns: [60,60]
564
564
};
565
565
@@ -568,7 +568,7 @@ var end_block = {
568
568
data: {
569
569
trial_id: "end",
570
570
},
571
-
timing_response: 180000,
571
+
timing_response: 180000,
572
572
text: '<div class = centerbox><p class = center-block-text>Thanks for completing this task!</p><p class = center-block-text>Press <i>enter</i> to continue.</p></div>',
573
573
cont_key: [13],
574
574
timing_post_trial: 0,
@@ -589,7 +589,7 @@ var feedback_instruct_block = {
589
589
cont_key: [13],
590
590
text: getInstructFeedback,
591
591
timing_post_trial: 0,
592
-
timing_response: 180000
592
+
timing_response: 180000
593
593
};
594
594
595
595
/// This ensures that the subject does not read through the instructions too quickly. If they do it too quickly, then we will go over the loop again.
@@ -663,7 +663,7 @@ var start_test_block = {
663
663
data: {
664
664
trial_id: "instruction"
665
665
},
666
-
timing_response: 180000,
666
+
timing_response: 180000,
667
667
text: '<div class = centerbox>'+
668
668
'<p class = block-text>We will now start the test portion</p>'+
669
669
@@ -698,7 +698,7 @@ var fixation_block = {
698
698
data: {
699
699
trial_id: "practice_fixation"
700
700
},
701
-
timing_response: 500,//500
701
+
timing_response: 500,//500
702
702
timing_post_trial: 0,
703
703
}
704
704
@@ -716,7 +716,7 @@ var feedback_block = {
716
716
stimulus: getFeedback,
717
717
timing_post_trial: 0,
718
718
is_html: true,
719
-
timing_response: 180000,
719
+
timing_response: 180000,
720
720
response_ends_trial: true,
721
721
722
722
};
@@ -739,7 +739,7 @@ for (i = 0; i < practice_len + 1; i++) {
739
739
},
740
740
timing_post_trial: 0,
741
741
timing_stim: 500,//500
742
-
timing_response: 500,//500
742
+
timing_response: 500,//500
743
743
prompt: prompt_text
744
744
}
745
745
@@ -752,7 +752,7 @@ for (i = 0; i < practice_len + 1; i++) {
752
752
},
753
753
choices: 'none',
754
754
timing_stim: getCTI,//getCTI
755
-
timing_response: getCTI,//getCTI
755
+
timing_response: getCTI,//getCTI
756
756
timing_post_trial: 0,
757
757
response_ends_trial: false,
758
758
prompt: prompt_text
@@ -771,7 +771,7 @@ for (i = 0; i < practice_len + 1; i++) {
771
771
incorrect_text: '<div class = fb_box><div class = center-text><font size = 20>Incorrect</font></div></div>'+prompt_text,
772
772
timeout_message: '<div class = fb_box><div class = center-text><font size = 20>Respond Faster!</font></div></div>'+prompt_text,
773
773
timing_stim: 1000,//1000
774
-
timing_response: 2000,//2000
774
+
timing_response: 2000,//2000
775
775
timing_feedback_duration: 500,
776
776
show_stim_with_feedback: false,
777
777
timing_post_trial: 0,
@@ -864,7 +864,7 @@ for (i = 0; i < numTrialsPerBlock + 1; i++) {
864
864
},
865
865
timing_post_trial: 0,
866
866
timing_stim: 500,//500
867
-
timing_response: 500//500
867
+
timing_response: 500//500
868
868
}
869
869
870
870
varcue_block={
@@ -876,7 +876,7 @@ for (i = 0; i < numTrialsPerBlock + 1; i++) {
876
876
},
877
877
choices: 'none',
878
878
timing_stim: getCTI,//getCTI
879
-
timing_response: getCTI,//getCTI
879
+
timing_response: getCTI,//getCTI
880
880
timing_post_trial: 0,
881
881
response_ends_trial: false,
882
882
}
@@ -890,7 +890,7 @@ for (i = 0; i < numTrialsPerBlock + 1; i++) {
0 commit comments