/* Move the Table number and description to the top */
/* Remove the colon from TABLE number */
if ($("div[data-block_type='tb_v6']").length) {
$("div[data-block_type='tb_v6']").each(function() {
/* Remove colon at the end of table number */
var the_text = $(this).children("div[data-type='table_text']").children("span[data-type='number']").text() ;
var ind = the_text.indexOf(":") ;
the_text = the_text.substr(0, ind) + " " ;
$(this).children("div[data-type='table_text']").children("span[data-type='number']").text(the_text) ;
$(this).children("table").css("margin-left","6px") ;
/* Align Table title */
$(this).children("div[data-type='table_text']").children("span[data-type='number']").css("margin-left", "5px").css("padding-left", "10px").css("background-color", "#ebf3fb").css("border-bottom", "0px solid #000000") ;
var the_div = $(this).children("div[data-type='table_text']").detach() ;
$(this).before(the_div) ;
}) ;
} /* if */
/***********************************************/
/** Add blue stripes next to TABLE number **/
if ($("div[data-type='table_text']").length) {
$("div[data-type='table_text']").each(function() {
var hght = "50" ;
if ($(this).next("div#iga11e-ch20-table-2").length) {
hght = "62" ;
} else if ($(this).next("div#iga11e-ch20-table-3").length) {
hght = "110" ;
} else if ($(this).next("div#iga11e-ch20-table-4").length) {
hght = "60" ;
} else if ($(this).next("div#iga11e-ch20-table-6").length) {
hght = "60" ;
}
if ((/Firefox/.test(navigator.userAgent)) || (/Chrome/.test(navigator.userAgent))) {
$(this).before("
") ;
} else {
$(this).before("") ;
}
}) ;
} /* if */
/************************************/
/* Table 20-2 - Reduce font size */
if ($("div#iga11e-ch20-table-2").length) {
$("div#iga11e-ch20-table-2").children("table").css("font-size", "0.9em") ;
} /* if */
/************************************/
/* Table 20-3 - Align Mutation to top*/
if ($("div#iga11e-ch20-para-151").length) {
$("div#iga11e-ch20-para-151").parent("th").css("vertical-align", "top") ;
/* Remove border under Mutation */
$("div#iga11e-ch20-para-151").parent("th").css("border-bottom", "1px solid #ebf3fb") ;
} /* if */
/* Remove border under Mean proportional increase */
if ($("div#iga11e-ch20-para-153").length) {
$("div#iga11e-ch20-para-153").parent("th").css("border-bottom", "1px solid #ebf3fb") ;
} /* if */
/* Remove bottom border of Table 20-3 */
if ($("div#iga11e-ch20-table-3").length) {
$("div#iga11e-ch20-table-3").children("table").css("border-bottom", "none") ;
} /* if */
/**********************************/
/* Table 20-4 - remove bottom border */
if ($("div#iga11e-ch20-table-4").length) {
$("div#iga11e-ch20-table-4").children("table").css("border-bottom", "none") ;
} /* if */
/**********************************/
/* 20.4 Cumulative Selection...The signature of positive selection on DNA sequences */
/* Fix width of for Fixed species differences */
if ($("div#iga11e-ch20-para-279").length) {
$("div#iga11e-ch20-para-279").parent("th").css("width","150px") ;
} /* if */
/**********************************/
/* Table 20-5 - set header width for Chrome */
if ($("div#iga11e-ch20-table-6").length) {
$("div#iga11e-ch20-table-6").prev("div[data-type='table_text']").css("width", "650px") ;
} /* if */
/**********************************/
/* Table 20-6 - remove bottom border */
if ($("div#iga11e-ch20-table-6").length) {
$("div#iga11e-ch20-table-6").children("table").css("border-bottom", "none") ;
} /* if */
|