var Activity_manuscript_type = Activity.extend({ // don't show any initialization alerts for ebook pages ARGA_initialization_alert: function() { // ... unless a md value says to override that if (player.md.show_standard_arga_initialization == "true") { this._super(); } else { // we just have to call ARGA_initialization_final player.activity.ARGA_initialization_final(); } }, // also don't show grade saved message show_grade_saved_message: function() { // ... unless a md value says to override that if (player.md.show_standard_arga_grade_saved_message == "true") { this._super(); } } }); var Player_manuscript_type = Player.extend({ show_section_animate: function(section_to_show, direction) { // make sure modal window is closed $("#toc_dialog").dialog("close"); // slide in using parent function this._super(section_to_show, direction); // update slide_number and title $(".slide_title").html(this.get_current_section().title); $(".slide_number").find("span").html((section_to_show+1) + " of " + this.sections.length + " "); // if this is the first/last section, dim the previous/next button if (this.section_currently_showing == 0) { $(".previous_button").addClass("button_dimmed"); } else { $(".previous_button").removeClass("button_dimmed"); } if (this.section_currently_showing == (this.sections.length - 1)) { $(".next_button").addClass("button_dimmed"); } else { $(".next_button").removeClass("button_dimmed"); } }, show_navigation: function() { // if there are no subsections, there's no navigation to show if (this.sections.length == 1) { return; } var table = "
"+ UI_Elements.get_button_html({ extra_class: "toolbar_button prev_next_buttons previous_button", label: this.md.previous_page_button, fn: 'player.show_section("previous")' }) + " | " + ""+ UI_Elements.get_button_html({ extra_class: "toolbar_button slide_number", label: "1 of " + this.sections.length, fn: 'player.show_toc()' }) + " | " + ""+ UI_Elements.get_button_html({ extra_class: "toolbar_button prev_next_buttons next_button", label: this.md.next_page_button, fn: 'player.show_section("next")' }) + " | " + "