diff --git a/README.md b/README.md index 7911c8dc..ddae4d32 100644 --- a/README.md +++ b/README.md @@ -130,17 +130,15 @@ var test = { var debrief = { type: "html-keyboard-response", stimulus: function() { - var congruent_rt = Math.round(jsPsych.data.get() - .filter({stim_type: 'congruent'}).select('rt').mean()); - var incongruent_rt = Math.round(jsPsych.data.get() - .filter({stim_type: 'incongruent'}).select('rt').mean()); - return "
" + - "Your average response time for congruent trials was "+ - congruent_rt + "ms.
"+ - "" + - "Your average response time for incongruent trials was "+ - incongruent_rt + "ms.
"; - }}; + var congruent_rt = Math.round(jsPsych.data.get() + .filter({stim_type: 'congruent'}).select('rt').mean()); + var incongruent_rt = Math.round(jsPsych.data.get() + .filter({stim_type: 'incongruent'}).select('rt').mean()); + return "Your average response time for congruent trials"+ + "was "+congruent_rt+"ms.
"+ + "Your average response time for incongruent trials was"+ + ""incongruent_rt + "ms.
"; + }}; var timeline = []; timeline.push(test); timeline.push(debrief);