mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
Update README.md
This commit is contained in:
parent
2b2c2c2973
commit
1106538689
@ -115,8 +115,7 @@ var test_stimuli = [
|
|||||||
{ stimulus: "<<<<<", data: { stim_type: 'congruent'} },
|
{ stimulus: "<<<<<", data: { stim_type: 'congruent'} },
|
||||||
{ stimulus: ">>>>>", data: { stim_type: 'congruent'} },
|
{ stimulus: ">>>>>", data: { stim_type: 'congruent'} },
|
||||||
{ stimulus: "<<><<", data: { stim_type: 'incongruent'} },
|
{ stimulus: "<<><<", data: { stim_type: 'incongruent'} },
|
||||||
{ stimulus: ">><>>", data: { stim_type: 'incongruent'} }
|
{ stimulus: ">><>>", data: { stim_type: 'incongruent'} } ];
|
||||||
];
|
|
||||||
var test = {
|
var test = {
|
||||||
timeline: [{
|
timeline: [{
|
||||||
type: 'html-keyboard-response',
|
type: 'html-keyboard-response',
|
||||||
@ -127,8 +126,7 @@ var test = {
|
|||||||
response_ends_trial: true
|
response_ends_trial: true
|
||||||
}],
|
}],
|
||||||
timeline_variables: test_stimuli,
|
timeline_variables: test_stimuli,
|
||||||
sample: {type: 'fixed-repetitions', size: 2}
|
sample: {type: 'fixed-repetitions', size: 2}};
|
||||||
};
|
|
||||||
var debrief = {
|
var debrief = {
|
||||||
type: "html-keyboard-response",
|
type: "html-keyboard-response",
|
||||||
stimulus: function() {
|
stimulus: function() {
|
||||||
@ -142,8 +140,7 @@ var debrief = {
|
|||||||
"<p style='font-size:25px'>" +
|
"<p style='font-size:25px'>" +
|
||||||
"Your average response time for incongruent trials was <strong>"+
|
"Your average response time for incongruent trials was <strong>"+
|
||||||
incongruent_rt + "ms</strong>.</p>";
|
incongruent_rt + "ms</strong>.</p>";
|
||||||
}
|
}};
|
||||||
};
|
|
||||||
var timeline = [];
|
var timeline = [];
|
||||||
timeline.push(test);
|
timeline.push(test);
|
||||||
timeline.push(debrief);
|
timeline.push(debrief);
|
||||||
|
Loading…
Reference in New Issue
Block a user