Merge pull request #736 from kupiqu/save_stimulus_start_slider

systematically saving stimulus and slider start position in all slider plugins
This commit is contained in:
Becky Gilbert 2020-09-16 17:25:23 -07:00 committed by GitHub
commit 657418ba20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 5 deletions

View File

@ -182,6 +182,7 @@ jsPsych.plugins['audio-slider-response'] = (function() {
var trialdata = {
"rt": response.rt,
"stimulus": trial.stimulus,
"start": trial.start,
"response": response.response
};

View File

@ -163,8 +163,9 @@ jsPsych.plugins['html-slider-response'] = (function() {
// save data
var trialdata = {
"rt": response.rt,
"response": response.response,
"stimulus": trial.stimulus
"stimulus": trial.stimulus,
"start": trial.start,
"response": response.response
};
display_element.innerHTML = '';

View File

@ -198,6 +198,8 @@ jsPsych.plugins['image-slider-response'] = (function() {
// save data
var trialdata = {
"rt": response.rt,
"stimulus": trial.stimulus,
"start": trial.start,
"response": response.response
};

View File

@ -269,6 +269,7 @@ jsPsych.plugins["video-slider-response"] = (function() {
var trial_data = {
"rt": response.rt,
"stimulus": trial.stimulus,
"start": trial.start,
"response": response.response
};