mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
tweak example code indentation
This commit is contained in:
parent
14bcb4d621
commit
2c6307efce
@ -124,7 +124,8 @@ Note: the canvas stimulus is *not* included in the trial data because it is a fu
|
|||||||
}
|
}
|
||||||
|
|
||||||
var circle_procedure = {
|
var circle_procedure = {
|
||||||
timeline: [{
|
timeline: [
|
||||||
|
{
|
||||||
type: 'canvas-button-response',
|
type: 'canvas-button-response',
|
||||||
stimulus: function(c) {
|
stimulus: function(c) {
|
||||||
filledCirc(c, jsPsych.timelineVariable('radius'), jsPsych.timelineVariable('color'));
|
filledCirc(c, jsPsych.timelineVariable('radius'), jsPsych.timelineVariable('color'));
|
||||||
@ -135,11 +136,13 @@ Note: the canvas stimulus is *not* included in the trial data because it is a fu
|
|||||||
data: {
|
data: {
|
||||||
radius: jsPsych.timelineVariable('radius'),
|
radius: jsPsych.timelineVariable('radius'),
|
||||||
color: jsPsych.timelineVariable('color'),
|
color: jsPsych.timelineVariable('color'),
|
||||||
correct_response: jsPsych.timelineVariable('correct_response')},
|
correct_response: jsPsych.timelineVariable('correct_response')
|
||||||
|
},
|
||||||
on_finish: function(data){
|
on_finish: function(data){
|
||||||
data.correct = jsPsych.pluginAPI.compareKeys(data.response, data.correct_response);
|
data.correct = jsPsych.pluginAPI.compareKeys(data.response, data.correct_response);
|
||||||
}
|
}
|
||||||
}],
|
}
|
||||||
|
],
|
||||||
timeline_variables: [
|
timeline_variables: [
|
||||||
{radius: 80, color: 'red', correct_response: 0},
|
{radius: 80, color: 'red', correct_response: 0},
|
||||||
{radius: 100, color: 'green', correct_response: 1},
|
{radius: 100, color: 'green', correct_response: 1},
|
||||||
|
Loading…
Reference in New Issue
Block a user