mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
cleans up console.logs
This commit is contained in:
parent
3352805984
commit
646320ac9e
@ -114,7 +114,6 @@ jsPsych.plugins['survey-multi-choice'] = (function() {
|
||||
// add label and question text
|
||||
var option_label = '<label class="' + plugin_id_name + '-text">' + trial.options[i][j] + '</label>';
|
||||
display_element.querySelector(option_id_selector).innerHTML += option_label;
|
||||
console.log("option label", option_label)
|
||||
|
||||
// create radio button
|
||||
var input_id_name = _join(plugin_id_name, 'response', i);
|
||||
|
@ -119,22 +119,13 @@ jsPsych.plugins['survey-multi-picture'] = (function() {
|
||||
var option_label = '<label class="' + plugin_id_name + '-text"></label>';
|
||||
display_element.querySelector(option_id_selector).innerHTML += option_label;
|
||||
}
|
||||
// console.log("option label", option_label)
|
||||
// var option_label = '<label class="' + plugin_id_name + '-text">'+trial.options[i].url+'</label>';
|
||||
// display_element.querySelector(option_id_selector).innerHTML += option_label;
|
||||
|
||||
// create radio button
|
||||
// id="jspsych-survey-multi-picture-option-0-0"
|
||||
display_element.querySelector(option_id_selector + " label").innerHTML =
|
||||
'<img id="image" src="'+trial.options[i][j].url+'">' +
|
||||
display_element.querySelector(option_id_selector + " label").innerHTML;
|
||||
}
|
||||
}
|
||||
// add submit button
|
||||
var matches = display_element.querySelectorAll(".jspsych-survey-multi-picture-option");
|
||||
console.log("matches", matches)
|
||||
matches.forEach(function(currentImageDiv, index){
|
||||
console.log("currentimagediv", currentImageDiv)
|
||||
currentImageDiv.addEventListener('click', function(event){
|
||||
var endTime = (new Date()).getTime();
|
||||
var response_time = endTime - startTime;
|
||||
|
Loading…
Reference in New Issue
Block a user