]> git.sesse.net Git - ultimatescore/commitdiff
Indent fixes.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 19 Oct 2017 16:28:33 +0000 (18:28 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 19 Oct 2017 16:28:33 +0000 (18:28 +0200)
carousel.js

index 4a71ce6834c39fa2e7bcfe7d9bc4d78e15f4f40d..8f57ff3376fb26cf6259d559c303b0eed494a440 100644 (file)
@@ -238,22 +238,22 @@ req.onload = function(e) {
        var teams = [];
        for (var i = 2; response.values[i].length >= 1; ++i) {
                teams.push({
-                               "name": response.values[i][0],
-                               "shortname": response.values[i][1],
-                               "nplayed": parseInt(response.values[i][2]),
-                               "gd": parseInt(response.values[i][3].replace(/−/, '-')),
-                               "pts": parseInt(response.values[i][4])
-                               });
+                       "name": response.values[i][0],
+                       "shortname": response.values[i][1],
+                       "nplayed": parseInt(response.values[i][2]),
+                       "gd": parseInt(response.values[i][3].replace(/−/, '-')),
+                       "pts": parseInt(response.values[i][4])
+               });
        }
        var games = [];
        for (var i = 12; response.values[i] !== undefined && response.values[i].length >= 1; ++i) {
                if (response.values[i][2] && response.values[i][3]) {
                        games.push({
-                                       "name1": response.values[i][0],
-                                       "name2": response.values[i][1],
-                                       "score1": parseInt(response.values[i][2]),
-                                       "score2": parseInt(response.values[i][3])
-                                       });
+                               "name1": response.values[i][0],
+                               "name2": response.values[i][1],
+                               "score1": parseInt(response.values[i][2]),
+                               "score2": parseInt(response.values[i][3])
+                       });
                }
        }
        console.log(games);