PageSourceSearch

https://www.ranheimfotball.no/_/service/no.seeds.app.football/asset/0000019ff1840930/js/embed-league-table.js

js ranheimfotball.no collected 2026-10-02 20:09:32 UTC 1,993 bytes, 50 lines download raw bytes

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;">&nbsp;</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.