var Activity_manuscript_type = Activity.extend({ // following override is for MathJax support - need to re-render math after submit due to query's HTML being re-written to DOM. submit_question: function (question_index) { this._super(question_index); // re-call mathjax conversion here MathJax.Hub.Queue(["Typeset", MathJax.Hub]); } }); var Player_manuscript_type = Player.extend({ show_section_animate: function(section_to_show, direction){ for (var i = 0; i < section_to_show; i++) { $("#navItem_" + i).addClass("viewed"); } if (this.section_currently_showing != null) { this.get_current_section_jq().hide(); } this.section_currently_showing = section_to_show; this.get_current_section_jq().show(); $(".navItem").removeClass("active"); $("#navItem_" + section_to_show).addClass("active"); }, show_navigation: function () { var html = "
"; this.sections[0].jq.before(navHtml); var currentSlideInfoHTML = "