mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
fix extra presentation of X
This commit is contained in:
parent
07ffe2329a
commit
8e74f0391c
@ -139,12 +139,7 @@ jsPsych.plugins.xab = (function() {
|
|||||||
if (!target_left) {
|
if (!target_left) {
|
||||||
images = [trial.b_path, trial.a_path];
|
images = [trial.b_path, trial.a_path];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!trial.is_html) {
|
|
||||||
display_element.innerHTML = '<img class="jspsych-xab-stimulus" src="'+trial.x_path+'"></img>';
|
|
||||||
} else {
|
|
||||||
display_element.innerHTML = '<div class="jspsych-xab-stimulus">'+trial.x_path+'</div>';
|
|
||||||
}
|
|
||||||
// show the options
|
// show the options
|
||||||
if (!trial.is_html) {
|
if (!trial.is_html) {
|
||||||
display_element.innerHTML += '<img class="jspsych-xab-stimulus left" src="'+images[0]+'"></img>';
|
display_element.innerHTML += '<img class="jspsych-xab-stimulus left" src="'+images[0]+'"></img>';
|
||||||
|
Loading…
Reference in New Issue
Block a user