mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
Changes wording in comment
This commit is contained in:
parent
08e47a68f3
commit
4d6e253896
@ -85,7 +85,7 @@ jsPsych.plugins['survey-multi-picture'] = (function() {
|
|||||||
var preamble_id_name = _join(plugin_id_name, 'preamble');
|
var preamble_id_name = _join(plugin_id_name, 'preamble');
|
||||||
trial_form.innerHTML += '<div id="'+preamble_id_name+'" class="'+preamble_id_name+'">'+trial.preamble+'</div>';
|
trial_form.innerHTML += '<div id="'+preamble_id_name+'" class="'+preamble_id_name+'">'+trial.preamble+'</div>';
|
||||||
|
|
||||||
// add multiple-choice questions
|
// add multiple-picture questions
|
||||||
for (var i = 0; i < trial.questions.length; i++) {
|
for (var i = 0; i < trial.questions.length; i++) {
|
||||||
// create question container
|
// create question container
|
||||||
var question_classes = [_join(plugin_id_name, 'question')];
|
var question_classes = [_join(plugin_id_name, 'question')];
|
||||||
@ -108,7 +108,7 @@ jsPsych.plugins['survey-multi-picture'] = (function() {
|
|||||||
// add image container
|
// add image container
|
||||||
display_element.querySelector(question_selector).innerHTML += '<div id="'+option_id_name+'" class="'+_join(plugin_id_name, 'option')+'"></div>';
|
display_element.querySelector(question_selector).innerHTML += '<div id="'+option_id_name+'" class="'+_join(plugin_id_name, 'option')+'"></div>';
|
||||||
|
|
||||||
// add label and question text
|
// add label
|
||||||
if(trial.options[i][j].label){
|
if(trial.options[i][j].label){
|
||||||
var label = trial.options[i][j].label;
|
var label = trial.options[i][j].label;
|
||||||
var option_label = '<label class="' + plugin_id_name + '-text">' + label + '</label>';
|
var option_label = '<label class="' + plugin_id_name + '-text">' + label + '</label>';
|
||||||
@ -144,4 +144,4 @@ jsPsych.plugins['survey-multi-picture'] = (function() {
|
|||||||
})
|
})
|
||||||
};
|
};
|
||||||
return plugin;
|
return plugin;
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user