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 === 'screen3b-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 = [
' Two small groups—of identical and fraternal twins; all of these individuals have a diagnosis of schizophrenia. This is not the best option, because all your participants have a diagnosis of schizophrenia. To know whether schizophrenia is inherited, you would need to study identical and fraternal twins who do and do not have a diagnosis of schizophrenia. ',
' A small group of identical twins who have a diagnosis of schizophrenia. This is not the best option for two reasons. The first is that all participants have a diagnosis of schizophrenia. The second is that all participants are identical twins. To know whether schizophrenia is inherited, you would need to study identical and fraternal twins who do and do not have a diagnosis of schizophrenia. ',
' A small group of fraternal twins who have a diagnosis of schizophrenia. This is not the best option for two reasons. The first is that all participants have a diagnosis of schizophrenia. The second is that all participants are fraternal twins. To know whether schizophrenia is inherited, you would need to study identical and fraternal twins who do and do not have a diagnosis of schizophrenia. ',
' Two small groups—of identical and fraternal twins; some of these individuals have a diagnosis of schizophrenia, and some of them do not have a diagnosis of schizophrenia. You were right to choose identical and fraternal twins who do and do not have a diagnosis of schizophrenia. However, you need to study a larger group, not a small group as in this Case Study approach, in order to determine whether the idea of schizophrenia as an inherited disorder may apply to a larger population. '
];
var normal_text = [
' Two small groups—of identical and fraternal twins; all of these individuals have a diagnosis of schizophrenia. This is not the best option, because all your participants have a diagnosis of schizophrenia. To know whether schizophrenia is inherited, you would need to study identical and fraternal twins who do and do not have a diagnosis of schizophrenia. ',
' A small group of identical twins who have a diagnosis of schizophrenia. This is not the best option for two reasons. The first is that all participants have a diagnosis of schizophrenia. The second is that all participants are identical twins. To know whether schizophrenia is inherited, you would need to study identical and fraternal twins who do and do not have a diagnosis of schizophrenia. ',
' A small group of fraternal twins who have a diagnosis of schizophrenia. This is not the best option for two reasons. The first is that all participants have a diagnosis of schizophrenia. The second is that all participants are fraternal twins. To know whether schizophrenia is inherited, you would need to study identical and fraternal twins who do and do not have a diagnosis of schizophrenia. ',
' Two small groups—of identical and fraternal twins; some of these individuals have a diagnosis of schizophrenia, and some of them do not have a diagnosis of schizophrenia. You were right to choose identical and fraternal twins who do and do not have a diagnosis of schizophrenia. However, you need to study a larger group, not a small group as in this Case Study approach, in order to determine whether the idea of schizophrenia as an inherited disorder may apply to a larger 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 === '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_1();