mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
Update README.md
This commit is contained in:
parent
1106538689
commit
dfd7994d5c
20
README.md
20
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 "<p style='font-size:25px'>" +
|
||||
"Your average response time for congruent trials was <strong>"+
|
||||
congruent_rt + "ms</strong>.</p>"+
|
||||
"<p style='font-size:25px'>" +
|
||||
"Your average response time for incongruent trials was <strong>"+
|
||||
incongruent_rt + "ms</strong>.</p>";
|
||||
}};
|
||||
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 "<p>Your average response time for congruent trials"+
|
||||
"was <strong>"+congruent_rt+"ms</strong>.</p>"+
|
||||
"<p>Your average response time for incongruent trials was"+
|
||||
"<strong>"incongruent_rt + "ms</strong>.</p>";
|
||||
}};
|
||||
var timeline = [];
|
||||
timeline.push(test);
|
||||
timeline.push(debrief);
|
||||
|
Loading…
Reference in New Issue
Block a user