mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
clean formatting, remove redundant data
This commit is contained in:
parent
2c33d7603d
commit
2d9af8dfa9
@ -58,8 +58,7 @@
|
|||||||
src: trial.a_path,
|
src: trial.a_path,
|
||||||
id: 'jspsych-single-stim-stimulus'
|
id: 'jspsych-single-stim-stimulus'
|
||||||
}));
|
}));
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
display_element.append($('<div>', {
|
display_element.append($('<div>', {
|
||||||
html: trial.a_path,
|
html: trial.a_path,
|
||||||
id: 'jspsych-single-stim-stimulus'
|
id: 'jspsych-single-stim-stimulus'
|
||||||
@ -84,8 +83,6 @@
|
|||||||
|
|
||||||
// gather the data to store for the trial
|
// gather the data to store for the trial
|
||||||
var trial_data = {
|
var trial_data = {
|
||||||
"trial_type": "single-stim",
|
|
||||||
"trial_index": block.trial_idx,
|
|
||||||
"rt": info.rt,
|
"rt": info.rt,
|
||||||
"stimulus": trial.a_path,
|
"stimulus": trial.a_path,
|
||||||
"key_press": info.key
|
"key_press": info.key
|
||||||
@ -101,8 +98,7 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
block.next();
|
block.next();
|
||||||
}, trial.timing_post_trial);
|
}, trial.timing_post_trial);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
block.next();
|
block.next();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user