/* cacfull */ /************************************** Set this to the DF book ID (Subtype) **************************************/ xBookUtils.bookID = "cacfull"; /* You only need to set the disciplines if you are using the HTML Quiz question delivery method, which only BSM ebooks are at this time (in other words, if this is a FW ebook then you don't need to do a thing). Change the zeros to the discipline number for each tier on PX. Discipline numbers: History: 6696 (all tiers) Composition: 6698 (all tiers) Communication: 6700 (all tiers) */ xBookUtils.discipline = { dev: 6700, qa: 6700, pr: 6700, www: 6700 } var Player_subtype = Player_manuscript_type.extend({ cfg_removeRawHtmlDivs: "on", cfg_LH_useOpenContent: "on", cfg_LH_useLinksFile: "on", //cfg_showAnswer: "on", //cfg_showAnswerAutoWrapThis: "off", cfg_Box_moveTitle: "all", //cfg_Box_moveTitleExclude: "", cfg_Figures_targetDefault: "_pop", //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", //cfg_Glossary_hoverTermsNoClick: "", initialize_sections: function() { this._super(); this.xrefs = new XRefs_manuscript_subtype(); this.glossary = new Glossary_manuscript_subtype(); this.figures = new Figures_manuscript_subtype(); // This is where you will do most of your DOM manipulation. // Anything here gets done before the browser displays the // page. Anything that doesn't need to be done early should // probably be done in initialize2. /* hack to get figure ids */ $('div[data-figure-id]').each(function(index, element) { var jq = $(element); jq.attr('id', jq.data('figure-id')); }); if ($('[data-type="question"]').length > 0) { var text = $('[data-type="question"] h3').text().replace(/question/ig, ""); $('[data-type="question"] h3').text(text); } /* //Creating the "printed page" box (They decided they don't want this anymore) var curr_pageId = $('[id^="page"]:first').attr('id'); var curr_page = curr_pageId.match(/page-(.*?)$/); $('[id^="page"]:first').addClass("ppage"); $('.ppage').text("Printed Page " + curr_page[1]); */ //Removing text after colons in section titles //