PageSourceSearch

https://www.vvspartanijkerk.nl/wp-content/themes/DraadCore-child/js/program_styling.js

js vvspartanijkerk.nl collected 2026-10-02 22:07:49 UTC 3,623 bytes, 85 lines download raw bytes

1$(document).ready(function() {
2    window.programmaHeightCalculated = false;
3    if (typeof feed != 'undefined') {
4        feed.broadcast.listen('result', function(data, $element, article, list, jqXHR) {
5            if ($element.hasClass('programma')) {
6                if (!window.programmaHeightCalculated) {
7                    window.setTimeout(function() {
8                        var newMaxHeight = $element.closest('.av-tab-section-outer-container').find('.av-layout-tab[data-av-tab-section-content="1"] .container').outerHeight() + 230;
9                        $element.closest('.av-tab-section-outer-container').css({
10                            maxHeight: (newMaxHeight)
11                        });
12                    }, 250);
13                    window.programmaHeightCalculated = true;
14                    window.setTimeout(function() {
15                        $(document).trigger('program:loaded');
16                    }, 400);
17                }
18                if (typeof window.teamName != 'undefined' && $element.find('td:contains(' + window.teamName + ')').length > 0) {
19                    $element.find('tbody tr').each(function() {
20                        var length = $(this).find('td:contains(' + window.teamName + ')').length;
21                        if (length == 0) {
22                            $(this).remove();
23                        }
24                    });
25                }
26
27                $element.find('tr').each(function() {
28                    var $tr = $(this);
29                    var $statusTh = $tr.find('th:eq(9)');
30                    var $statusTd = $tr.find('td:eq(9)');
31
32                    if ($statusTh.length > 0) {
33                        $statusTh.addClass('status');
34                    }
35
36                    if ($statusTd.length > 0) {
37                        $statusTd.addClass('status');
38
39                        if ($statusTd.text().indexOf('Afgelast') >= 0 || $statusTd.text().indexOf('afgelast') >= 0) {
40                            $tr.addClass('afgelast');
41                        }
42                    }
43                });
44
45            } else if ($element.hasClass('focus_team_stand')) {
46                var $own = $element.find('tr.Own');
47                var index = $own.index();
48                var trCount = $element.find('tbody tr').length;
49                var before = after = 2;
50                $own.addClass('show');
51                if (index == 0) {
52                    before = 0;
53                    after = 4;
54                } else if (index == 1) {
55                    before = 1;
56                    after = 3;
57                }
58                if (index == (trCount - 1)) {
59                    before = 4;
60                    after = 0;
61                } else if (index == (trCount - 2)) {
62                    before = 3;
63                    after = 1;
64                }
65                if (before > 0) {
66                    var $el = $element.find('tr.Own');
67                    for (var x = 0; x < before; x++) {
68                        $el = $el.prev('tr');
69                        $el.addClass('show');
70                    }
71                }
72                if (after > 0) {
73                    var $el = $element.find('tr.Own');
74                    for (var x = 0; x < after; x++) {
75                        $el = $el.next('tr');
76                        $el.addClass('show');
77                    }
78                }
79                $('.focus_team_stand tbody tr:not(.show)').remove();
80            } else if ($element.hasClass('team_stand')) {
81                $('.team_stand tbody tr').addClass('show');
82            }
83        });
84    }
85});

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.