mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
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:
commit
657418ba20
@ -182,6 +182,7 @@ jsPsych.plugins['audio-slider-response'] = (function() {
|
|||||||
var trialdata = {
|
var trialdata = {
|
||||||
"rt": response.rt,
|
"rt": response.rt,
|
||||||
"stimulus": trial.stimulus,
|
"stimulus": trial.stimulus,
|
||||||
|
"start": trial.start,
|
||||||
"response": response.response
|
"response": response.response
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -163,8 +163,9 @@ jsPsych.plugins['html-slider-response'] = (function() {
|
|||||||
// save data
|
// save data
|
||||||
var trialdata = {
|
var trialdata = {
|
||||||
"rt": response.rt,
|
"rt": response.rt,
|
||||||
"response": response.response,
|
"stimulus": trial.stimulus,
|
||||||
"stimulus": trial.stimulus
|
"start": trial.start,
|
||||||
|
"response": response.response
|
||||||
};
|
};
|
||||||
|
|
||||||
display_element.innerHTML = '';
|
display_element.innerHTML = '';
|
||||||
|
@ -198,6 +198,8 @@ jsPsych.plugins['image-slider-response'] = (function() {
|
|||||||
// save data
|
// save data
|
||||||
var trialdata = {
|
var trialdata = {
|
||||||
"rt": response.rt,
|
"rt": response.rt,
|
||||||
|
"stimulus": trial.stimulus,
|
||||||
|
"start": trial.start,
|
||||||
"response": response.response
|
"response": response.response
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -269,6 +269,7 @@ jsPsych.plugins["video-slider-response"] = (function() {
|
|||||||
var trial_data = {
|
var trial_data = {
|
||||||
"rt": response.rt,
|
"rt": response.rt,
|
||||||
"stimulus": trial.stimulus,
|
"stimulus": trial.stimulus,
|
||||||
|
"start": trial.start,
|
||||||
"response": response.response
|
"response": response.response
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user