X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=carousel.js;h=1a38e1b7d077fd17251333fa9ad14996c067da52;hb=0830813a9a0a59443b1a068e217bf9524f82052e;hp=6240c7b91f6658018fb132ffaef83f9346b217c6;hpb=c396868fd38cc06d4aed4a787b98e6d9c39ccb00;p=ultimatescore diff --git a/carousel.js b/carousel.js index 6240c7b..1a38e1b 100644 --- a/carousel.js +++ b/carousel.js @@ -670,7 +670,7 @@ function showschedule(page) { let teams = []; let games = []; - let num_left = 4; + let num_left = 5; let cb = function(response, group_name) { teams = teams.concat(parse_teams_from_spreadsheet(response)); @@ -684,6 +684,7 @@ function showschedule(page) get_group('Group B', cb); get_group('Group C', cb); get_group('Playoffs', cb); + get_group('Playoffs 9th-13th', cb); }; function do_series(series) @@ -705,11 +706,12 @@ function showcarousel() let games_per_group = []; let combined_teams = []; let combined_games = []; - let num_left = 4; + let num_left = 5; let cb = function(response, group_name) { let teams = parse_teams_from_spreadsheet(response); let games = parse_games_from_spreadsheet(response, group_name, true); + teams = filter_teams(teams, response); teams_per_group[group_name] = teams; games_per_group[group_name] = games; @@ -722,6 +724,8 @@ function showcarousel() [ 13000, function() { display_group_parsed(teams_per_group['Group B'], games_per_group['Group B'], 'Group B'); } ], [ 2000, function() { hidetable(); } ], [ 13000, function() { display_group_parsed(teams_per_group['Group C'], games_per_group['Group C'], 'Group C'); } ], + [ 2000, function() { hidetable(); } ], + [ 13000, function() { display_group_parsed(teams_per_group['Playoffs 9th-13th'], games_per_group['Playoffs 9th-13th'], 'Playoffs 9th–13th'); } ], [ 2000, function() { hidetable(); } ] ]; let num_pages = find_num_pages(combined_games); @@ -737,6 +741,7 @@ function showcarousel() get_group('Group A', cb); get_group('Group B', cb); get_group('Group C', cb); + get_group('Playoffs 9th-13th', cb); get_group('Playoffs', cb); };