*/
if ($("[data-block_type='h1'] h2.section-title [data-type='title']").length) {
if (($("[data-chapter-number='62']").length) || ($("[data-chapter-number='65']").length)) { return(1) ; }
var html = $("[data-block_type='h1'] h2.section-title [data-type='title'] [data-block_type='keyconceptband']").html();
$("[data-block_type='h1'] h2.section-title [data-type='title'] [data-block_type='keyconceptband']").remove();
var html2 = $("[data-block_type='h1'] h2.section-title [data-type='title'] [data-block_type='conceptnumber']").html();
$("[data-block_type='h1'] h2.section-title [data-type='title'] [data-block_type='conceptnumber']").remove();
$("[data-block_type='h1'] h2.section-title [data-type='title']").append("
" + html + "
" + html2 + "
") ;
html = $("[data-block_type='h1'] h2.section-title [data-type='title'] [data-block_type='concepttitle']").html();
$("[data-block_type='h1'] h2.section-title [data-type='title'] [data-block_type='concepttitle']").remove();
$("[data-block_type='h1'] h2.section-title [data-type='title']").append("
") ;
} /* if */
/****************************/
/** Format SUMMARY Heading **/
if ($("[data-block_type='summary-title-img']").length) {
$("[data-block_type='summary-title-img']").before("
");
$("[data-block_type='summary-container']").append("
");
var chap_num = $("body #manuscript").data("chapter-number");
$("[data-block_type='summary-title-left']").append("
");
var div = $("[data-block_type='summary-title-img']").detach();
$("[data-block_type='summary-container']").append(div);
} /* if */
/*************************************/
/** Format SUMMARY Concept Headings **/
function summaryhead (sumhead) {
$(sumhead).each (function() {
var html= $(this).html();
var myArray = /(\d+\.\d+)(.*)/.exec(html);
$(this).children("p").remove();
$(this).append("
" + myArray[1] + "
" + myArray[2] + "
");
});
} /* summaryhead() */
if ($("[data-block_type='summaryconcepthead']").length) {
summaryhead("[data-block_type='summaryconcepthead']");
} /* if */
if ($("[data-block_type='summaryconcepthead2']").length) {
summaryhead("[data-block_type='summaryconcepthead2']");
} /* if */
if ($("[data-block_type='summaryconcepthead3']").length) {
summaryhead("[data-block_type='summaryconcepthead3']");
} /* if */
if ($("[data-block_type='summaryconcepthead4']").length) {
summaryhead("[data-block_type='summaryconcepthead4']");
} /* if */
if ($("[data-block_type='summaryconcepthead5']").length) {
summaryhead("[data-block_type='summaryconcepthead5']");
} /* if */
if ($("[data-block_type='summaryconcepthead6']").length) {
summaryhead("[data-block_type='summaryconcepthead6']");
} /* if */
if ($("[data-block_type='summaryconcepthead7']").length) {
summaryhead("[data-block_type='summaryconcepthead7']");
} /* if */
if ($("[data-block_type='summaryconcepthead8']").length) {
summaryhead("[data-block_type='summaryconcepthead8']");
} /* if */
if ($("[data-block_type='summaryconcepthead9']").length) {
summaryhead("[data-block_type='summaryconcepthead9']");
} /* if */
if ($("[data-block_type='summaryconcepthead10']").length) {
summaryhead("[data-block_type='summaryconcepthead10']");
} /* if */
/*************************************/
/** Set SUMMARY Background to gray **/
if ($("[data-block_type='summary']").length) {
$("body").css("background-color", "#e5e8ee");
/**
$("[data-block_type='summary']").parent().css("background-color", "#e5e8ee").css("padding-left", "15px").css("width", "772px");
**/
} /* if */
/***************************************/
/* Format Table Caption Text - make table not bold */
if ($("span[data-block_type='tab-label']").length) {
$("span[data-block_type='tab-label']").each (function() {
var the_html = $(this).html();
var result = the_html.replace("table", "
table");
$(this).html(result);
});
} /* if */
/***************************************/
/* h2-img - insert image at start of paragraph */
if ($("[data-block_type='h2-img']").length) {
var h2 = $("[data-block_type='h2-img']").children("h2").detach();
$("[data-block_type='body31']").children("p").children("img").after(h2);
} /* if */
/***************************************/
/* In Supplemental Window disable links */
if ($("#supp_win").length) {
if ($("#supp_win [data-type='figure_text'] [data-type='caption'] a").length) {
$("#supp_win [data-type='figure_text'] [data-type='caption'] a").css("pointer-events", "none").css("cursor", "default").css("font-weight", "normal").css("color", "#000000");
} /* if */
} /* if */
}, // end initialize_sections
/*
You will most likely not make any changes to the initialize method.
*/
initialize: function(id) {
// Do not delete this
this._super(id);
// Don't delete these unless you know exactly what you are doing :-)
this.xrefs = new XRefs_manuscript_subtype();
this.glossary = new Glossary_manuscript_subtype();
this.figures = new Figures_manuscript_subtype();
this.tables = new Tables_manuscript_subtype();
}, // end initialize
initialize2: function() {
// Do not delete this
this._super();
// You will most likely not want to delete this
var link_handler = new LinkHandler();
// Add custom JS code below. Anything that can be done after the
// page displays should be done here.
// New feature to allow table columns to align content by character.
// This should always come after any custom JS code you add. If you
// do not have any tables that need to be aligned by character then you
// can comment this out.
this.tables.align_columns();
} // end initialize2
}); // end Player_subtype
// Do not delete this
player = new Player_subtype();