Wszystkie mecze
Typ | Data | Godzina | Typ rozgrywki | Drużyna I | Wynik | Drużyna II | Brak |
---|
jQuery(document).ready(function () { jQuery.noConflict(); var table = jQuery('#table_id').DataTable({ "ordering": false, "info": false, "searching": true, "lengthChange": false, "language": { "url": "//cdn.datatables.net/plug-ins/1.10.20/i18n/Polish.json" }, initComplete: function () { let column = this.api().columns('.data-league'), types = column.data().eq(0).unique();
types.each((type) => { jQuery('.filter-matches').append(``); }); } });
jQuery('.filter-matches').on('change', function () { let val = jQuery.fn.dataTable.util.escapeRegex(jQuery(this).val());
jQuery('#table_id').DataTable().column('.data-league').search( val ? '^'+val+'$' : '', true, false ).draw();
}); });
function handleSelect(elm) { var current_url = 'https://zksolimpia.pl/?page_id=956';
if (elm.value === "null") { window.location = current_url; } else { if (current_url.includes('?')) { current_url += '&team_id=' + elm.value; } else { current_url += '?team_id=' + elm.value; } window.location = current_url; } }