mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
cleanup css (#13)
This commit is contained in:
parent
54c0043e62
commit
a1d882d385
@ -58,13 +58,13 @@
|
|||||||
if (!trial.is_html) {
|
if (!trial.is_html) {
|
||||||
display_element.append($('<img>', {
|
display_element.append($('<img>', {
|
||||||
src: trial.a_path,
|
src: trial.a_path,
|
||||||
"class": 'sd'
|
"class": 'jspsych-same-different-stimulus'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
display_element.append($('<div>', {
|
display_element.append($('<div>', {
|
||||||
html: trial.a_path,
|
html: trial.a_path,
|
||||||
"class": 'sd'
|
"class": 'jspsych-same-different-stimulus'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
@ -72,7 +72,7 @@
|
|||||||
}, trial.timing_first_stim);
|
}, trial.timing_first_stim);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
$('.sd').remove();
|
$('.jspsych-same-different-stimulus').remove();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
plugin.trial(display_element, block, trial, part + 1);
|
plugin.trial(display_element, block, trial, part + 1);
|
||||||
}, trial.timing_gap);
|
}, trial.timing_gap);
|
||||||
@ -81,22 +81,22 @@
|
|||||||
if (!trial.is_html) {
|
if (!trial.is_html) {
|
||||||
display_element.append($('<img>', {
|
display_element.append($('<img>', {
|
||||||
src: trial.b_path,
|
src: trial.b_path,
|
||||||
"class": 'sd',
|
"class": 'jspsych-same-different-stimulus',
|
||||||
id: 'jspsych_sd_second_image'
|
id: 'jspsych-same-different-second-stimulus'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
display_element.append($('<div>', {
|
display_element.append($('<div>', {
|
||||||
html: trial.b_path,
|
html: trial.b_path,
|
||||||
"class": 'sd',
|
"class": 'jspsych-same-different-stimulus',
|
||||||
id: 'jspsych_sd_second_image'
|
id: 'jspsych-same-different-second-stimulus'
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trial.timing_second_stim > 0) {
|
if (trial.timing_second_stim > 0) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if (!sd_trial_complete) {
|
if (!sd_trial_complete) {
|
||||||
$("#jspsych_sd_second_image").css('visibility', 'hidden');
|
$("#jspsych-same-different-second-stimulus").css('visibility', 'hidden');
|
||||||
}
|
}
|
||||||
}, trial.timing_second_stim);
|
}, trial.timing_second_stim);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user