mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
parent
6f10c190c5
commit
940c5580f8
@ -55,7 +55,6 @@
|
|||||||
// it with the output of the function
|
// it with the output of the function
|
||||||
trial = jsPsych.pluginAPI.normalizeTrialVariables(trial);
|
trial = jsPsych.pluginAPI.normalizeTrialVariables(trial);
|
||||||
|
|
||||||
|
|
||||||
xab_trial_complete = false;
|
xab_trial_complete = false;
|
||||||
|
|
||||||
// how we display the content depends on whether the content is
|
// how we display the content depends on whether the content is
|
||||||
@ -76,9 +75,7 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
showBlankScreen();
|
showBlankScreen();
|
||||||
}, trial.timing_x);
|
}, trial.timing_x);
|
||||||
break;
|
|
||||||
|
|
||||||
// the second part of the trial is the gap between X and AB.
|
|
||||||
|
|
||||||
function showBlankScreen() {
|
function showBlankScreen() {
|
||||||
// remove the x stimulus
|
// remove the x stimulus
|
||||||
@ -90,7 +87,6 @@
|
|||||||
}, trial.timing_xab_gap);
|
}, trial.timing_xab_gap);
|
||||||
}
|
}
|
||||||
|
|
||||||
// the third part of the trial is to display A and B, and get the subject's response
|
|
||||||
|
|
||||||
function showSecondStimulus() {
|
function showSecondStimulus() {
|
||||||
|
|
||||||
@ -182,7 +178,6 @@
|
|||||||
jsPsych.pluginAPI.getKeyboardResponse(after_response, [trial.left_key, trial.right_key], 'date', false);
|
jsPsych.pluginAPI.getKeyboardResponse(after_response, [trial.left_key, trial.right_key], 'date', false);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return plugin;
|
return plugin;
|
||||||
|
Loading…
Reference in New Issue
Block a user