From 39cde030dd0367903a713bfe679b0f983c17a7ad Mon Sep 17 00:00:00 2001 From: didier amyot Date: Thu, 16 May 2019 09:34:57 -0400 Subject: [PATCH] fixed away/home --- Makefile | 2 ++ script/views/calendarPage.js | 8 ++++---- script/views/mainPage.js | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a561739 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +dev: + node_modules/.bin/gulp dev diff --git a/script/views/calendarPage.js b/script/views/calendarPage.js index 1919fd9..7e4194e 100644 --- a/script/views/calendarPage.js +++ b/script/views/calendarPage.js @@ -150,11 +150,11 @@ define(['m', '_', 'util', 'resultParser', 'teams', 'views/topNavBar', 'views/foo return m('tr',[ m('td', schedulView._gameName(game)), - m('td', schedulView._getTeamTag(game.home)), - m('td', schedulView._asGamePoints(game.home_points)), - m('td', 'vs'), m('td', schedulView._getTeamTag(game.away)), - m('td', schedulView._asGamePoints(game.away_points)) + m('td', schedulView._asGamePoints(game.away_points)), + m('td', 'vs'), + m('td', schedulView._getTeamTag(game.home)), + m('td', schedulView._asGamePoints(game.home_points)) ]); }; diff --git a/script/views/mainPage.js b/script/views/mainPage.js index d0bf241..a535b06 100644 --- a/script/views/mainPage.js +++ b/script/views/mainPage.js @@ -75,8 +75,8 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar util.formatDateSmall(game.jsDate), game.rain)), m('td', game.time), - m('td', game.away), - m('td', game.home) + m('td', game.home), + m('td', game.away) ]); };