]> git.sesse.net Git - ultimatescore/commitdiff
More tweaks for Group L.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 19 Feb 2020 23:15:20 +0000 (00:15 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 19 Feb 2020 23:15:20 +0000 (00:15 +0100)
carousel.js
config.js
score.html
update_sheets.js

index 6240c7b91f6658018fb132ffaef83f9346b217c6..98724729d5e050bb00f2f8e4d262b3802b88a58e 100644 (file)
@@ -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,7 +706,7 @@ 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);
@@ -723,6 +724,8 @@ function showcarousel()
                                [ 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);
                        for (let page = 0; page < num_pages; ++page) {
@@ -737,6 +740,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);
 };
 
index 090919fd343e3b22e8c18482f118f8efb2dd24ea..ee9a763638d17638ff59389f030cfe41fe6cfe91 100644 (file)
--- a/config.js
+++ b/config.js
@@ -31,7 +31,7 @@ var ultimateconfig = {
                        'ranking_list_start_row': 15,
                        'ranking_list_explain_row': 21
                },
-               'Group L': {
+               'Playoffs 9th-13th': {
                        // Rank, name, points.
                        'score_sheet_cols': [ 'Results!S', 'Results!T', 'Results!U' ],
                        'point_total_start_row': null,
index 5bbaddf49e7528195e9c7c76c4c75afbf0658459..fe2fe2de5252a197308ddaab1c195c886dff9701 100644 (file)
@@ -98,7 +98,7 @@
         <a href="javascript:stopcarousel();showgroup('Group A')">show group A</a>
         <a href="javascript:stopcarousel();showgroup('Group B')">show group B</a>
         <a href="javascript:stopcarousel();showgroup('Group C')">show group C</a>
-        <a href="javascript:stopcarousel();showgroup('Group L')">show group L</a>
+        <a href="javascript:stopcarousel();showgroup('Playoffs 9th-13th')">show group L</a>
         <a href="javascript:stopcarousel();showschedule()">show schedule</a>
         <a href="javascript:stopcarousel();showcarousel()">show carousel</a>
         <a href="javascript:stopcarousel();hidetable()">table out</a>
index abaccf8ab60780a65762195f3a51f6be827381d4..a656c89286f944211048ef070daf8ecb07fe7366 100644 (file)
@@ -361,7 +361,7 @@ function fill_playoff(replacements, teams) {
                };
                possibly_update_oauth_key(function() {
                        post_json('https://sheets.googleapis.com/v4/spreadsheets/' + ultimateconfig['score_sheet_id'] + '/values:batchUpdate?key=' + ultimateconfig['api_key'], json, function(response) {
-                               get_group('Group L', function(response_l) { publish_group_rank(response_l, 'Group L'); });
+                               get_group('Playoffs 9th-13th', function(response_l) { publish_group_rank(response_l, 'Playoffs 9th-13th'); });
                        }, current_oauth_access_token);
                        post_json('https://sheets.googleapis.com/v4/spreadsheets/' + ultimateconfig['score_sheet_id'] + ':batchUpdate?key=' + ultimateconfig['api_key'], meta_json, function(response) {}, current_oauth_access_token);
                });