1$(document).ready(function () { 2 $('.embed-league-table').each(function () { 3 // Table classes 4 $(this).find('table').attr('class', 'table--persist-area table table--league-neutral'); 5 6 // Head classes 7 $(this).find('thead').attr('class', 'table__header'); 8 $(this).find('thead tr').first().remove(); 9 $(this).find('thead tr').attr('class', 'table--persist-area-header'); 10 $(this).find('thead tr th').each(function (index) { 11 if (index === 0) { 12 $(this).replaceWith(` 13 <th colspan="2" class="table__brand" style="width: 194px;"> </th> 14 `); 15 } else if (index === 1) { 16 $(this).remove(); 17 } else { 18 var columnTitle = $(this).text(); 19 var columnInitial = columnTitle && columnTitle[0].toLocaleUpperCase(); 20 $(this).attr('style', 'width: 97px'); 21 $(this).html(` 22 <span class="table__typo--full">${columnTitle}</span> 23 <span class="table__typo--short">${columnInitial}</span> 24 `) 25 } 26 }); 27 28 // Body classes 29 $(this).find('tbody').attr('class', ''); 30 $(this).find('tbody tr').each(function (index) { 31 $(this).addClass('table__row'); 32 33 $(this).children('td').each(function () { 34 $(this).css('white-space', 'nowrap'); 35 if ($(this).text().indexOf(' - ') !== -1) { 36 $(this).html($(this).text().replace(/ /g, '')); 37 } 38 if ($(this).children('a').length > 0) { 39 var clubName = $(this).children('a').text(); 40 $(this).html(` 41 <span class="table__typo--full">${clubName}</span> 42 <span class="table__typo--short">${clubName}</span> 43 `); 44 } 45 }); 46 }); 47 48 $(this).attr('hidden', false); 49 }) 50});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.