var Player_chapter_14 = Player_devtk.extend( { show_section_animate: function( section_to_show, direction ) { this._super( section_to_show, direction ); if( section_to_show === 1 ) { var frame = player.sections[section_to_show].jq[0].querySelector( 'iframe' ); frame.width = player.sections[section_to_show].jq.width(); } } } ); var resizeThis = function() { if ( player.section_currently_showing === 1 ) { var frame = player.sections[player.section_currently_showing].jq[0].querySelector( 'iframe' ); frame.width = player.sections[player.section_currently_showing].jq.width(); } }; window.addEventListener( 'resize', resizeThis ); Essay_Query = Essay_Query.extend({ getHTML: function (mode) { // start with the query text, if there var html = this.query_text_html(); var html = "
" + $( html).text() + "
" var val, disabled; if (!this.userHasAnswered() || mode == 'preview') { val = ""; disabled = ""; // otherwise we have an answer, so fill it in } else { // make sure we convert double quotes to " for placement in 'value="xxx"' attributes val = this.user_answer; // convert breaks to newlines val = val.replace(/