/* Chapter 3 */ /* Move the Table number and description to the top */ /* Remove the colon from TABLE number */ if ($("div[data-block_type='tb_v5']").length) { /* Remove colon at the end of table number */ var the_text = $("div[data-block_type='tb_v5'] div[data-type='table_text'] span[data-type='number']").text() ; var ind = the_text.indexOf(":") ; the_text = the_text.substr(0, ind) + " " ; $("div[data-block_type='tb_v5'] div[data-type='table_text'] span[data-type='number']").text(the_text) ; var the_div = $("div[data-block_type='tb_v5'] div[data-type='table_text']").detach() ; $("div[data-block_type='tb_v5']").before(the_div) ; } /* if */ /* 3.2 Using the chi-square test on monohybrid and dihybrid ratios */ /* Table 3-1 align Table title */ if ($("ol#iga11e-ch3-list-4").length) { $("ol#iga11e-ch3-list-4 span[data-type='number']").css("margin-left", "12px").css("padding-left", "10px").css("background-color", "#ebf3fb").css("border-bottom", "1px solid #ebf3fb") ; } /* if */ /***********************************************/ /** Add blue stripes next to TABLE 3-1 number **/ if ($("div[data-type='table_text']").length) { if (/Firefox/.test(navigator.userAgent)) { $("div[data-type='table_text']").before("