<!doctype html>       Alle Spiele Nur Meisterschaft
 

Datum Zeit Anlass Gegner Ort
         
         

(function () {
var club = hgutil.getParameterByName('club');
if (!club) {
club = 'test';
}

hgutil.loadSelectFromArray('https://www.hgverwaltung.ch/api/1/' + club + '/spiele/jahre?alle=1', 'hg_jahrSelect', (new Date()).getFullYear(), getData);
hgutil.loadSelectFromArray('https://www.hgverwaltung.ch/api/1/' + club + '/mannschaften?spiele=true', 'hg_teamSelect', true, getData);

var hgDataTable = document.getElementById("hg_data");
// var tbody = hgDataTable.createTBody();
// tbody.classList.add('hg_list');
hgDataTable.createTFoot();

var valueNames = [];
var tdElements = document.getElementById('hg_tr_template').getElementsByTagName('td');
for (var v = 0; v 0) {
var url = 'https://www.hgverwaltung.ch/api/1/' + club + '/spiele/' + teams.join(',').replace(/\//g,'--') + '?jahr=' + jahr;
fetch(url).then(function (response) {
return response.json();
}).then(function (results) {
showData(results);
});
}
else {
showData([]);
}
}

function showData(results) {
dataList.clear();

if (results.length === 0) {
document.getElementById('hg_data').style.display = 'none';
return;
}
document.getElementById('hg_data').style.display = '';

results.forEach(function (row) {
row.datumDisplay = row.datum.substring(8, 10) + '.' + row.datum.substring(5, 7) + '.' + row.datum.substring(0, 4);
row.zeit = row.datum.substring(11);
});
dataList.add(results);

dataList.sort('datum', { order: "asc" });
}

})();

No Content