var FIRST_ASSESS_NUM = 6; var feedback = "
Because of Google’s model, your search results almost certainly included information related to possible diagnoses such as the flu." + " You reported that [] of your search results were related to the flu. In a recent Introductory Psychology class, the typical" + " student had about four out of ten search results related to the flu, but some had as many as nine out of ten.
"; var Activity_chapter_14 = Activity_manuscript_type.extend( { update_question_action_div: function( question_index ) { 'use strict'; if ( question_index === 5 ) { var input = $( '#query_answer_11' ); var value = input.val(); feedback = feedback.replace( '[]', value ); var question = player.activity.questions[question_index]; question.md.feedback = feedback; question.jq.find( '.question_feedback_part' ).html( feedback ); } this._super( question_index ); } } ); var Player_chapter_14 = window.Player_manuscript_type.extend( { initialize: function() { this._super(); this.activity = new Activity_chapter_14(); }, initialize_sections: function() { this._super(); var input = $( '#query_answer_11' ); input.attr( 'maxlength', 2 ); input.bind( 'input', function() { var value = $( this ).val(); // Cut numbers and other forbidden symbols if ( value.match( /[^0-9]/g ) ) { value = value.replace( /[^0-9]/g, '' ); $( this ).val( value ); } } ); // Forbid input of numbers input.bind( 'keyup keypress', function( e ) { return ( '0123456789'.indexOf( String.fromCharCode( e.which ) ) > -1 ); } ); }, show_navigation: function() { this._super(); var activityTitle = $( '.activityTitle' ); var activityType = $( '.activity_type' ); activityType.remove(); var text = activityTitle.text(); //text = text.replace( 'I', 'I'); activityTitle.html( text ); activityTitle.append( activityType ); } } ); window.player = new Player_chapter_14();