/* 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_showAnswer: "on", //cfg_showAnswerAutoWrapThis: "off", //cfg_Box_moveTitle: "all", //cfg_Box_moveTitleExclude: "", //cfg_Figures_targetDefault: "_blank", //cfg_Figures_resizeDivWidth: "off", cfg_Figures_autoHtml: "on", cfg_LH_autoHtml: "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", initialize_sections: function() { // Do not delete this this._super(); // Anything that needs to be done before the page displays // should be done here. if ($('[data-type="section"][data-block_type="yellow_border"]').length > 0) { $('body').addClass('yellow_border'); $('#manuscript').before('
'); } else if ($('[data-type="section"][data-block_type="blue_border"]').length > 0) { $('body').addClass('blue_border'); $('#manuscript').before(''); } else { //$('body').addClass('orange_back'); $('body').addClass('default_border'); $('#manuscript').before(''); } }, // end initialize_sections initialize: function(id) { if (xBookUtils.inPXFrame()) { (function() { try { var $fne_title = $('#fne-title', window.parent.document); if ($fne_title.length > 0) { var title_html = $fne_title.html(); $fne_title.html(title_html.replace(/<(\/)?(sup|sub|em)>/g,"<$1$2>")); } } catch(err) { } })(); } // Do not delete this this._super(id); this.xrefs = new XRefs_manuscript_subtype(); this.glossary = new Glossary_manuscript_subtype({terms: false}); this.figures = new Figures_manuscript_subtype(); }, // end initialize initialize2: function() { // 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();