var previousUserAnswerIndex = null, userAnswerIndex = null, result = 0;
var Player_chapter_1= window.Player_hwyk.extend( {
show_section_animate: function( section_to_show, direction ) {
'use strict';
this._super( section_to_show, direction );
if( this.sections[section_to_show].md && this.sections[section_to_show].md.sectionid === 'screen3a-2' ) {
var queries = window.player.activity.questions[2].queries;
var answers = [,,,];
for( var i = 0; i < 4; i++ ){
answers[i] = document.querySelector('#question3_answer_' + (i+1));
}
console.log(answers);
var bold_text = [
' A small group of people who take antidepressants and have a family history of depression This is not the best option, because it tells you about family history but does not indicate whether your participants actually have major depressive disorder. You also can’t test how well antidepressants work if your participants already take them. ',
' A small group of people who were formerly depressed This is not the best option, because the participants are not currently depressed. Just as fully rested people do not need a nap to treat their lack of tiredness, people who are no longer depressed do not need to take medication. ',
' A small group of people with major depressive disorder who are not currently taking medication to treat their depression You were right to select people who have major depressive disorder and are not taking any medication that might affect their mood. However, you need to study a larger group, not a small group as in this Case Study approach, in order to determine whether the use of antidepressants to effectively treat major depressive disorder may apply to the larger population. ',
' A small group of people with major depressive disorder who believe strongly that antidepressants are ineffective in reducing depressive symptoms This is not the best option. It would be better to study a group of people who have varying attitudes about the effectiveness of antidepressants.'
];
var normal_text = [
' A small group of people who take antidepressants and have a family history of depression This is not the best option, because it tells you about family history but does not indicate whether your participants actually have major depressive disorder. You also can’t test how well antidepressants work if your participants already take them. ',
' A small group of people who were formerly depressed This is not the best option, because the participants are not currently depressed. Just as fully rested people do not need a nap to treat their lack of tiredness, people who are no longer depressed do not need to take medication. ',
' A small group of people with major depressive disorder who are not currently taking medication to treat their depression You were right to select people who have major depressive disorder and are not taking any medication that might affect their mood. However, you need to study a larger group, not a small group as in this Case Study approach, in order to determine whether the use of antidepressants to effectively treat major depressive disorder may apply to the larger population. ',
' A small group of people with major depressive disorder who believe strongly that antidepressants are ineffective in reducing depressive symptoms This is not the best option. It would be better to study a group of people who have varying attitudes about the effectiveness of antidepressants. '
];
for( var i = 0; i < 4; i++ ){
if (queries[0].user_answer_index == i){
answers[i].innerHTML = bold_text[i];
}else{
answers[i].innerHTML = normal_text[i];
}
}
}
if( this.sections[section_to_show].md && this.sections[section_to_show].md.sectionid === 'screen8' ) {
var queries = window.player.activity.questions[6].queries;
var answers = [,,,,];
for( var i = 0; i < 6; i++ ){
answers[i] = document.querySelector('#answer_' + (i+1));
}
for( var i = 0; i < 6; i++ ){
if (queries[i].user_answer_index == 0){
answers[i].setAttribute('checked','');
}else{
answers[i].checked = false;
}
answers[i].setAttribute('disabled','');
}
}
}
} );
window.player = new Player_chapter_1();