var previousUserAnswerIndex = null, userAnswerIndex = null, result = 0;
var Player_chapter_10= 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 group of people with high intelligence levels and a group of people with low intelligence levels This option does not tell you whether people in the two groups are the same age or different ages. To know whether intelligence changes with age, you would need to study individuals of different ages.',
' A group of people aged 18-25 years and a group of people aged 75-82 years You made a wise choice by selecting groups of people who differ dramatically in age. HOWEVER, this option does not take into account differences between people based on what point in history they were born. The world has changed considerably over the past 50 years, which can influence intelligence levels.',
' A group of people aged 18-20 years and a group of people aged 21-23 years You are on the right track by comparing groups of people who differ in age. But the amount of age difference is likely too small to matter in terms of their intelligence levels.',
' A group of people aged 75-77 years and a group of people aged 78-80 years You are on the right track by comparing groups of people who differ in age. But the amount of age difference is likely too small to matter in terms of their intelligence levels.'
];
var normal_text = [
' A group of people with high intelligence levels and a group of people with low intelligence levels This option does not tell you whether people in the two groups are the same age or different ages. To know whether intelligence changes with age, you would need to study individuals of different ages.',
' A group of people aged 18-25 years and a group of people aged 75-82 years You made a wise choice by selecting groups of people who differ dramatically in age. HOWEVER, this option does not take into account differences between people based on what point in history they were born. The world has changed considerably over the past 50 years, which can influence intelligence levels.',
' A group of people aged 18-20 years and a group of people aged 21-23 years You are on the right track by comparing groups of people who differ in age. But the amount of age difference is likely too small to matter in terms of their intelligence levels.',
' A group of people aged 75-77 years and a group of people aged 78-80 years You are on the right track by comparing groups of people who differ in age. But the amount of age difference is likely too small to matter in terms of their intelligence levels.'
];
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 < 5; i++ ){
answers[i] = document.querySelector('#answer_' + (i+1));
}
for( var i = 0; i < 5; 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_10();