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: adaptive_n_back/experiment.js
+2-12
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,6 @@
1
1
/* ************************************ */
2
2
/* Define helper functions */
3
3
/* ************************************ */
4
-
functiongetDisplayElement(){
5
-
$('<div class = display_stage_background></div>').appendTo('body')
6
-
return$('<div class = display_stage></div>').appendTo('body')
7
-
}
8
-
9
4
functionevalAttentionChecks(){
10
5
varcheck_percent=1
11
6
if(run_attention_checks){
@@ -21,12 +16,6 @@ function evalAttentionChecks() {
21
16
returncheck_percent
22
17
}
23
18
24
-
functionaddID(){
25
-
jsPsych.data.addDataToLastTrial({
26
-
'exp_id': 'adaptive_n_back'
27
-
})
28
-
}
29
-
30
19
functionassessPerformance(){
31
20
/* Function to calculate the "credit_var", which is a boolean used to
32
21
credit individual experiments in expfactory. */
@@ -265,7 +254,8 @@ var end_block = {
265
254
text: '<div class = "centerbox"><p class = "center-block-text">Thanks for completing this task!</p><p class = center-block-text>Press <strong>enter</strong> to begin.</p></div>',
text: '<div class = centerbox><p class = center-block-text>Thanks for completing this task!</p><p class = center-block-text>Press <strong>enter</strong> to begin.</p></div>',
text: '<div class = centerbox><p class = center-block-text>Thanks for completing this task!</p><p class = center-block-text>Press <strong>enter</strong> to begin.</p></div>',
Copy file name to clipboardExpand all lines: antisaccade/experiment.js
+2-12
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,6 @@
1
1
/* ************************************ */
2
2
/* Define helper functions */
3
3
/* ************************************ */
4
-
functiongetDisplayElement(){
5
-
$('<div class = display_stage_background></div>').appendTo('body')
6
-
return$('<div class = display_stage></div>').appendTo('body')
7
-
}
8
-
9
4
functionevalAttentionChecks(){
10
5
varcheck_percent=1
11
6
if(run_attention_checks){
@@ -21,12 +16,6 @@ function evalAttentionChecks() {
21
16
returncheck_percent
22
17
}
23
18
24
-
functionaddID(){
25
-
jsPsych.data.addDataToLastTrial({
26
-
'exp_id': 'antisaccade'
27
-
})
28
-
}
29
-
30
19
vargetInstructFeedback=function(){
31
20
return'<div class = centerbox><p class = center-block-text>'+feedback_instruct_text+
32
21
'</p></div>'
@@ -142,7 +131,8 @@ var post_task_block = {
142
131
varend_block={
143
132
type: 'poldrack-text',
144
133
data: {
145
-
trial_id: "end"
134
+
trial_id: "end",
135
+
exp_id: 'antisaccade'
146
136
},
147
137
text: '<div class = centerbox><p class = center-block-text>Thanks for completing this task!</p><p class = center-block-text>Press <strong>enter</strong> to continue.</p></div>',
0 commit comments