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 === 'screen3c-2' ) {
var queries = window.player.activity.questions[3].queries;
var answers = [,,,];
for( var i = 0; i < 4; i++ ){
answers[i] = document.querySelector('#question3_answer_' + (i+1));
}
console.log(answers);
var bold_text = [
' One person or a small group of people who do not have the ability to feel temperature changes You would need to recruit people who can experience normal features of coffee, such as its temperature, in order to determine whether a cup of coffee can warm up relationships. And in any case, you’d want to study more than a few individuals so that you would be able to apply your results to the larger population. ',
' One person or a small group of people who prefer caffeinated coffee and another person or small group of people who prefer decaffeinated coffee Knowing whether people prefer caffeinated or decaffeinated coffee won’t tell us anything about whether a cup of coffee can warm up relationships. And in any case, you’d want to study more than a few individuals so that you would be able to apply your results to the larger population. ',
' One person or a small group of people who do not have the ability to feel temperature changes and another person or small group of people who have a normal ability to feel temperature changes You would want to study only people who can experience normal features of coffee, such as its temperature, in order to determine whether a cup of coffee can warm up relationships. And in any case, you’d want to study more than a few individuals so that you would be able to apply your results to the larger population. ',
' One person or a small group of people who have a normal ability to feel temperature changes You were right to select participants with a normal ability to feel temperature changes. However, studying only one individual or a small group of people would not help you learn about whether a cup of coffee can warm up relationships in the general population.'
];
var normal_text = [
' One person or a small group of people who do not have the ability to feel temperature changes 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. ',
' One person or a small group of people who prefer caffeinated coffee and another person or small group of people who prefer decaffeinated coffee Knowing whether people prefer caffeinated or decaffeinated coffee won’t tell us anything about whether a cup of coffee can warm up relationships. And in any case, you’d want to study more than a few individuals so that you would be able to apply your results to the larger population. ',
'One person or a small group of people who do not have the ability to feel temperature changes and another person or small group of people who have a normal ability to feel temperature changes You would want to study only people who can experience normal features of coffee, such as its temperature, in order to determine whether a cup of coffee can warm up relationships. And in any case, you’d want to study more than a few individuals so that you would be able to apply your results to the larger population. ',
'One person or a small group of people who have a normal ability to feel temperature changes You were right to select participants with a normal ability to feel temperature changes. However, studying only one individual or a small group of people would not help you learn about whether a cup of coffee can warm up relationships in the general population. '
];
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 === 'screen6c' ) {
var queries = window.player.activity.questions[6].queries;
var answers = [,,,,,];
for( var i = 0; i < queries.length; i++ ){
answers[i] = document.querySelector('#answer_' + (i+1));
}
for( var i = 0; i < queries.length; 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();