File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 5
5
"run" : [
6
6
" static/js/jspsych/jspsych.js" ,
7
7
" static/js/jspsych/plugins/jspsych-text.js" ,
8
+ " static/js/jspsych/plugins/jspsych-call-function.js" ,
8
9
" static/js/jspsych/plugins/jspsych-survey-text.js" ,
9
10
" static/js/jspsych/poldrack_plugins/jspsych-poldrack-text.js" ,
10
11
" static/js/jspsych/poldrack_plugins/jspsych-attention-check.js" ,
Original file line number Diff line number Diff line change @@ -60,6 +60,13 @@ var attention_node = {
60
60
}
61
61
}
62
62
63
+ var add_data = {
64
+ type : 'call-function' ,
65
+ func : function ( ) {
66
+ jsPsych . data . addDataToLastTrial ( { 'added_Data?' : 'success!' } )
67
+ }
68
+ }
69
+
63
70
//Set up post task questionnaire
64
71
var post_task_block = {
65
72
type : 'survey-text' ,
@@ -69,7 +76,7 @@ var post_task_block = {
69
76
questions : [ '<p class = center-block-text style = "font-size: 20px">Please summarize what you were asked to do in this task.</p>' ,
70
77
'<p class = center-block-text style = "font-size: 20px">Do you have any comments about this task?</p>' ] ,
71
78
rows : [ 15 , 15 ] ,
72
- columns : [ 60 , 60 ]
79
+ columns : [ 60 , 60 ] ,
73
80
} ;
74
81
75
82
/* define static blocks */
@@ -99,6 +106,7 @@ var test_task_experiment = [];
99
106
for ( var i = 0 ; i < experiment_len ; i ++ ) {
100
107
test_task_experiment . push ( test_block ) ;
101
108
}
109
+ test_task_experiment . push ( add_data )
102
110
test_task_experiment . push ( attention_node )
103
111
test_task_experiment . push ( post_task_block )
104
112
test_task_experiment . push ( end_block ) ;
You can’t perform that action at this time.
0 commit comments