/* 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). */ /************************************** Set this to the DF book ID (Subtype) **************************************/ xBookUtils.bookID = "Krugmanwellscanadianmicro2"; /* You only need to set the disciplines if you are using the HTML Quiz question delivery method, which only BSM ebooks and HTML Quizzes 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) College Success: 6704 (all tiers) If you do not know the discipline number for your book then ask your MP. */ xBookUtils.discipline = { dev: 0, qa: 0, pr: 0, www: 0 } 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_LH_useOpenContent: "on", //cfg_LH_useLinksFile: "on", cfg_Glossary_hoverTerms: "on", cfg_Glossary_useStickyDiv: "on", //cfg_Glossary_hoverTermsNoClick: "", initialize_sections: function() { // Do not delete this this._super(); // Anything that needs to be done before the page displays // should be done here. // mr – renumber cyu & q4t groups // opening boxes need green box at end $( "div[data-block_type='bx_v5'] > div >div:last-of-type > p").append(" "); // check your answers section $( "div[data-block_type='cyu'] div[data-type='question']" ).each(function(index) { $(this).attr("data-question_number", index+1); }); // questions for thought section $( "div[data-bc='q4t'] ~ div[data-type='question']" ).each(function(index) { $(this).attr("data-question_number", index+1); }); // Problems section $( "div[data-block_type='PROBLEMS_section'] div[data-type='question']" ).each(function(index) { $(this).attr("data-question_number", index+1); // or data-question_index }); //format questions //$( "div[data-type='question']" ).children("h3").remove(); $( "div[data-type='question']" ).wrapInner("
").wrapInner(""); $( "div[data-type='question']" ).wrapInner(function () { var exnum = $(this).attr("data-question_number"); var exnum = "