let global_json;
-addEventListener('hashchange', () => { console.log('heei'); process_matches(global_json); });
+addEventListener('hashchange', () => { process_matches(global_json); });
fetch('ultimate.json')
.then(response => response.json())
.then(response => { global_json = response; process_matches(global_json); });
add_cell(row, 'td', p.points_played);
add_cell(row, 'td', Math.floor(p.playing_time_ms / 60000) + ' min');
rows.push(row);
- console.log(p.name + " played " + p.points_played + " points (" + Math.floor(p.playing_time_ms / 60000) + " min), " + p.goals + " goals, " + p.assists + " assists, plus/minus: " + pm);
}
return rows;
}