xBookUtils.turnQuestionIdCheckOff = "feenstrataylorintlmacro3"; /* This is the standard template you should add to your book JS file before customizing. Uncomment any of the configuration options to change the default behavior (see https://macmillanhighered.atlassian.net/wiki/display/MP/Player+Configuration+Options for descriptions of the options). */ var Player_subtype = Player_manuscript_type.extend({ //cfg_removeRawHtmlDivs: "on", cfg_displayImagesInSuppHtml: "on", cfg_suppWinWidth: 700, //cfg_Figures_targetDefault: "_blank", //cfg_Figures_resizeDivWidth: "off", cfg_Figures_autoHtml: "on", cfg_LH_autoHtml: "on", cfg_LH_useOpenContent: "on", cfg_LH_useLinksFile: "on", //cfg_LH_externalTargetDefault: "_pop", //cfg_LH_internalTargetDefault: "_pop", //cfg_LH_ebookTargetDefault: "_pop", //cfg_LH_imageTargetDefault: "_blank", cfg_Glossary_hoverTerms: "on", cfg_Glossary_useStickyDiv: "on", /*************************************************************************************/ /******************** Start Code for Instructor Notes and Outlines ***************/ /*************************************************************************************/ initialize_IR_popouts: function () { $("[data-block_type=IR_content_popout]").each(function (index, element) { var title = $(element).find("h3").html(); var id = $(element).attr("id"); var buttonHTML = ""; $(element).before(buttonHTML); $("#button_for_" + id).button(); }); }, show_IR_popout: function (boxID) { $("#" + boxID).dialog(); }, add_IR_toggle_button: function () { var html = "
"; $("#manuscript").append(html); var html = " "; $("#manuscript").append(html); }, toggle_IR: function (type) { var IR_class = "IR_content_" + type; $('#manuscript').toggleClass(IR_class); /* var te_is_showing = $("#manuscript").hasClass("manuscript_large_margin"); if (te_is_showing) { //hide it $("#manuscript").animate({ marginLeft: "30px" }, 200, "linear", function () { $("[data-block_type=IR_content]").hide(); }); $("#manuscript").removeClass("manuscript_large_margin"); } else { //show it $("#manuscript").addClass("manuscript_large_margin", 200); $("[data-block_type=IR_content]").show(); } */ }, /*************************************************************************************/ /******************** End Code for Instructor Notes and Outlines ***************/ /*************************************************************************************/ /*************************************************************************************/ /*************************************************************************************/ /*************************************************************************************/ initialize_sections: function() { // Do not delete this this._super(); // Anything that needs to be done before the page displays // should be done here. //"Chapter Summary: Section Headers" $("h2").each(function() { var $this = $(this); var this_html = $this.html(); this_html = this_html.replace(/(\d+) (.*)/, "$1 $2"); $this.html(this_html); }); $("h2").each(function() { var $this = $(this); var this_html = $this.html(); this_html = this_html.replace(/Acknowledgments/, "Acknowledgments"); $this.html(this_html); }); //Chapter 17, APPLICATION: [em]A[/em] Versus [em]k[/em] $("h3").each(function() { var $this = $(this); var this_html = $this.html(); this_html = this_html.replace(/\[em\]A\[em\] Versus \[em\]k\[em\]/, "A Versus k"); $this.html(this_html); }); }, // end initialize_sections initialize: function(id) { // Do not delete this this._super(id); this.xrefs = new XRefs_manuscript_subtype(); this.glossary = new Glossary_manuscript_subtype(); this.figures = new Figures_manuscript_subtype(); }, // end initialize initialize2: function() { //*****************************************************************************// //**This code added to support Instructor Notes and Outlines**// //*****************************************************************************// if (this.ARGA_running) { if (Get_ARGA_Data("user_rights") == "3_instructor") { this.initialize_IR_popouts(); this.add_IR_toggle_button(); } } else { this.initialize_IR_popouts(); this.add_IR_toggle_button(); } /* set up click handler for IR list items */ $('[data-IR-type="IN"] p [data-block_type="item"]').click(function() { var $this = $(this); var $p_parent = $this.parent('p'); $p_parent.toggleClass("show"); }); /* set up click handler for OL list items */ $('[data-IR-type="OL"] p [data-block_type="item"]').click(function() { var $this = $(this); var $p_parent = $this.parent('p'); $p_parent.toggleClass("show"); }); //*****************************************************************************// //*****************************************************************************// //*****************************************************************************// // Do not delete this this._super(); var link_handler = new LinkHandler(); // Anything that can be done after the page displays // should be done here. } // end initialize2 }); // end Player_subtype // Do not delete this player = new Player_subtype();