webpackJsonp([3],{ /***/ 18: /***/ (function(module, exports, __webpack_require__) { __webpack_require__(34); var platform = __webpack_require__(2).run_on; var dom = __webpack_require__( 1 ); var common = __webpack_require__(3); var modules = __webpack_require__(0); var Player_chapter_6 = modules.player.extend( { initialize: function () { this._super(); window.platform = platform; $('#slide12percentP').attr({ 'aria-hidden': true, 'role': 'presentation' }); }, initialize_sections: function () { this._super(); preProcessInput( $( '#query_answer_0' ), 2, 10, false ); preProcessInput( $( '#query_answer_5' ), 3, 100, true ); }, initialize2: function () { this._super(); var $section9 = $('#digfir_section_9'); $section9.find('.query_text').addClass('visually-hidden'); // we hide query_text after submitting $section9.find('#question_submit_button_3').bind('click', function () { $section9.find('.query_text').addClass('visually-hidden'); }); var $transcriptWrapper = $('[data-block_type="video_container"] [data-block_type="transcript-wrapper"]'); $transcriptWrapper.bind('click', function (e) { var $nextBtn = $( '#next_button' ); if (!$nextBtn.is(':visible')) { $nextBtn.show(); $('#digfir_section_7').find('[data-block_type="fb-after-video"]').show(); } }); var $section18 = $('#digfir_section_18'); $section18.find('legend').append($section18.find('#question_misidentify')); } } ); MC_Query = modules.mc.extend({ getHTML: function (mode) { // Initialize image map elements if ( this.imagemap_initialized === false ) { var question_jq = this.jq.parent(); this.im_init( question_jq ); this.imagemap_initialized = true; } var withoutAlphabet = this.choices.length === 11; // Wrap answers in radio group var html = '
'; html = dom.createHTML( html ); common.parseMathExpresions( html ); return html; } }); CB_Query = modules.CBQuery.extend({ getHTML: function (mode) { var html = ''; var dimmed = ''; var dimmedId = ''; // If we're in preview mode or // (a student answer has been given and we're not in review_correct_incorrect mode), // or the student got it correct disable the checkbox var disable_mode = (mode === 'preview' || (mode !== 'review_correct_incorrect' && this.user_answer_index != null) || this.isCorrect()); var disabled = disable_mode ? 'disabled' : ''; if (platform.android && disable_mode) { dimmedId = 'dimmed_' + this.query_index; dimmed = ' '; } // If user has answered with choice 0, it should be checked, unless we're in preview mode var checked = (this.user_answer_index === 0 && mode !== 'preview') ? 'checked' : ''; var id = 'query_answer_' + this.query_index; var labelId = 'query_answer_label_' + this.query_index; html += '' + dimmed; html += this.finish_inline_query(this.choices[this.correct_answer_index], mode); return html; }, }); var preProcessInput = function ( input, maxLength, maxNumber, applyZero ) { input.attr( 'maxlength', maxLength ); input.bind( 'input', function () { var value = $( this ).val(); value = value.replace( /[^0-9]/g, '' ); if ( value > maxNumber ) { value = value[0]; } if ( !applyZero && value < 1 ) { value = ''; } $( this ).val( value ); } ); }; window.player = new Player_chapter_6(); /***/ }), /***/ 34: /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }), /***/ 64: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(18); /***/ }) },[64]); //# sourceMappingURL=hockenbury8e_ch6_eyewitness_testimony.js.map