Update README.md

This commit is contained in:
kristiyip 2017-07-12 12:11:59 -04:00 committed by GitHub
parent 1106538689
commit dfd7994d5c

View File

@ -130,17 +130,15 @@ var test = {
var debrief = { var debrief = {
type: "html-keyboard-response", type: "html-keyboard-response",
stimulus: function() { stimulus: function() {
var congruent_rt = Math.round(jsPsych.data.get() var congruent_rt = Math.round(jsPsych.data.get()
.filter({stim_type: 'congruent'}).select('rt').mean()); .filter({stim_type: 'congruent'}).select('rt').mean());
var incongruent_rt = Math.round(jsPsych.data.get() var incongruent_rt = Math.round(jsPsych.data.get()
.filter({stim_type: 'incongruent'}).select('rt').mean()); .filter({stim_type: 'incongruent'}).select('rt').mean());
return "<p style='font-size:25px'>" + return "<p>Your average response time for congruent trials"+
"Your average response time for congruent trials was <strong>"+ "was <strong>"+congruent_rt+"ms</strong>.</p>"+
congruent_rt + "ms</strong>.</p>"+ "<p>Your average response time for incongruent trials was"+
"<p style='font-size:25px'>" + "<strong>"incongruent_rt + "ms</strong>.</p>";
"Your average response time for incongruent trials was <strong>"+ }};
incongruent_rt + "ms</strong>.</p>";
}};
var timeline = []; var timeline = [];
timeline.push(test); timeline.push(test);
timeline.push(debrief); timeline.push(debrief);