re-added new schedule
This commit is contained in:
1 parent
de0b35f476
commit
a0ae5e89b7
2 files changed
+239
-231
No files matched your search
+229
-226
@@ -1,227 +1,230 @@
|
|||||||
---
|
---
|
||||||
[]
|
-
|
||||||
# -
|
date: 2016/5/12 # year/month/day
|
||||||
# date: 2016/5/12 # year/month/day
|
time: "18:45"
|
||||||
# time: "18:45"
|
away: jaune
|
||||||
# away: jaune
|
home: rouge
|
||||||
# home: rouge
|
home_points: ~
|
||||||
# home_points: ~
|
away_points: ~
|
||||||
# away_points: ~
|
rain: true
|
||||||
#
|
|
||||||
# -
|
-
|
||||||
# date: 2016/5/12 # year/month/day
|
date: 2016/5/12 # year/month/day
|
||||||
# time: "20:20"
|
time: "20:20"
|
||||||
# away: gris
|
away: gris
|
||||||
# home: bleu
|
home: bleu
|
||||||
# home_points: ~
|
home_points: ~
|
||||||
# away_points: ~
|
away_points: ~
|
||||||
#
|
rain: true
|
||||||
# -
|
|
||||||
# date: 2016/5/19 # year/month/day
|
-
|
||||||
# time: "18:45"
|
date: 2016/5/19 # year/month/day
|
||||||
# away: rouge
|
time: "18:45"
|
||||||
# home: gris
|
away: rouge
|
||||||
# home_points: ~
|
home: gris
|
||||||
# away_points: ~
|
home_points: ~
|
||||||
#
|
away_points: ~
|
||||||
# -
|
rain: true
|
||||||
# date: 2016/5/19 # year/month/day
|
|
||||||
# time: "20:20"
|
-
|
||||||
# away: bleu
|
date: 2016/5/19 # year/month/day
|
||||||
# home: jaune
|
time: "20:20"
|
||||||
# home_points: ~
|
away: bleu
|
||||||
# away_points: ~
|
home: jaune
|
||||||
#
|
home_points: ~
|
||||||
# -
|
away_points: ~
|
||||||
# date: 2016/5/26 # year/month/day
|
rain: true
|
||||||
# time: "18:45"
|
|
||||||
# away: gris
|
-
|
||||||
# home: jaune
|
date: 2016/5/26 # year/month/day
|
||||||
# home_points: ~
|
time: "18:45"
|
||||||
# away_points: ~
|
away: gris
|
||||||
#
|
home: jaune
|
||||||
# -
|
home_points: ~
|
||||||
# date: 2016/5/26 # year/month/day
|
away_points: ~
|
||||||
# time: "20:20"
|
rain: true
|
||||||
# away: rouge
|
|
||||||
# home: bleu
|
-
|
||||||
# home_points: ~
|
date: 2016/5/26 # year/month/day
|
||||||
# away_points: ~
|
time: "20:20"
|
||||||
#
|
away: rouge
|
||||||
# -
|
home: bleu
|
||||||
# date: 2016/6/2 # year/month/day
|
home_points: ~
|
||||||
# time: "18:45"
|
away_points: ~
|
||||||
# away: bleu
|
rain: true
|
||||||
# home: gris
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/2 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: bleu
|
||||||
# date: 2016/6/2 # year/month/day
|
home: gris
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: rouge
|
away_points: ~
|
||||||
# home: jaune
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/2 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: rouge
|
||||||
# date: 2016/6/9 # year/month/day
|
home: jaune
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: jaune
|
away_points: ~
|
||||||
# home: bleu
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/9 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: jaune
|
||||||
# date: 2016/6/9 # year/month/day
|
home: bleu
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: gris
|
away_points: ~
|
||||||
# home: rouge
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/9 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: gris
|
||||||
# date: 2016/6/16 # year/month/day
|
home: rouge
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: bleu
|
away_points:
|
||||||
# home: rouge
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/16 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: bleu
|
||||||
# date: 2016/6/16 # year/month/day
|
home: rouge
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: jaune
|
away_points: ~
|
||||||
# home: gris
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/16 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: jaune
|
||||||
# date: 2016/6/23 # year/month/day
|
home: gris
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: jaune
|
away_points: ~
|
||||||
# home: rouge
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/23 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: jaune
|
||||||
# date: 2016/6/23 # year/month/day
|
home: rouge
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: gris
|
away_points: ~
|
||||||
# home: bleu
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/23 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: gris
|
||||||
# date: 2016/6/30 # year/month/day
|
home: bleu
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: rouge
|
away_points: ~
|
||||||
# home: gris
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/30 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: rouge
|
||||||
# date: 2016/6/30 # year/month/day
|
home: gris
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: bleu
|
away_points: ~
|
||||||
# home: jaune
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/6/30 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: bleu
|
||||||
# date: 2016/7/7 # year/month/day
|
home: jaune
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: gris
|
away_points: ~
|
||||||
# home: jaune
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/7/7 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: gris
|
||||||
# date: 2016/7/7 # year/month/day
|
home: jaune
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: rouge
|
away_points: ~
|
||||||
# home: bleu
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/7/7 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: rouge
|
||||||
# date: 2016/7/14 # year/month/day
|
home: bleu
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: bleu
|
away_points: ~
|
||||||
# home: gris
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/7/14 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: bleu
|
||||||
# date: 2016/7/14 # year/month/day
|
home: gris
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: rouge
|
away_points: ~
|
||||||
# home: jaune
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/7/14 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: rouge
|
||||||
# date: 2016/7/21 # year/month/day
|
home: jaune
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: jaune
|
away_points: ~
|
||||||
# home: bleu
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/7/21 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: jaune
|
||||||
# date: 2016/7/21 # year/month/day
|
home: bleu
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: gris
|
away_points: ~
|
||||||
# home: rouge
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/7/21 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: gris
|
||||||
# date: 2016/7/28 # year/month/day
|
home: rouge
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: bleu
|
away_points: ~
|
||||||
# home: rouge
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/7/28 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: bleu
|
||||||
# date: 2016/7/28 # year/month/day
|
home: rouge
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: jaune
|
away_points: ~
|
||||||
# home: gris
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/7/28 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: jaune
|
||||||
# date: 2016/8/4 # year/month/day
|
home: gris
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: jaune
|
away_points: ~
|
||||||
# home: rouge
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/8/4 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: jaune
|
||||||
# date: 2016/8/4 # year/month/day
|
home: rouge
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: gris
|
away_points: ~
|
||||||
# home: bleu
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/8/4 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
# -
|
away: gris
|
||||||
# date: 2016/8/11 # year/month/day
|
home: bleu
|
||||||
# time: "18:45"
|
home_points: ~
|
||||||
# away: rouge
|
away_points: ~
|
||||||
# home: gris
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/8/11 # year/month/day
|
||||||
#
|
time: "18:45"
|
||||||
# -
|
away: rouge
|
||||||
# date: 2016/8/11 # year/month/day
|
home: gris
|
||||||
# time: "20:20"
|
home_points: ~
|
||||||
# away: bleu
|
away_points: ~
|
||||||
# home: jaune
|
|
||||||
# home_points: ~
|
-
|
||||||
# away_points: ~
|
date: 2016/8/11 # year/month/day
|
||||||
#
|
time: "20:20"
|
||||||
#
|
away: bleu
|
||||||
|
home: jaune
|
||||||
|
home_points: ~
|
||||||
|
away_points: ~
|
||||||
@@ -30,10 +30,16 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar
|
|||||||
.then(games)
|
.then(games)
|
||||||
.then(resultParser.getNightGames)
|
.then(resultParser.getNightGames)
|
||||||
.then(function(nightGames){
|
.then(function(nightGames){
|
||||||
return nightGames[0].games;
|
return nextGameDaySchedule._getNextNightGame(nightGames, _.now()).games;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nextGameDaySchedule._getNextNightGame = function(games, date){
|
||||||
|
return _.first(_.filter(games, function(game){
|
||||||
|
return game.jsDate.getTime() > date;
|
||||||
|
}));
|
||||||
|
};
|
||||||
|
|
||||||
nextGameDaySchedule._getTableHead = function(){
|
nextGameDaySchedule._getTableHead = function(){
|
||||||
return m('thead', m('tr', [
|
return m('thead', m('tr', [
|
||||||
m('td', 'Date'),
|
m('td', 'Date'),
|
||||||
@@ -83,12 +89,11 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar
|
|||||||
var mainMap = {};
|
var mainMap = {};
|
||||||
|
|
||||||
mainMap.getMap = function(){
|
mainMap.getMap = function(){
|
||||||
var iframeUrl = "//www.openstreetmap.org/export/embed.html?bbox=-73.55889558792114%2C45.53089890181621%2C-73.55181455612183%2C45.53426212742867&layer=mapnik";
|
var iframeUrl = "//www.openstreetmap.org/export/embed.html?bbox=-73.63646507263184%2C45.56388364174337%2C-73.60814094543457%2C45.57732744542051&layer=mapnik&marker=45.570605945819395%2C-73.6223030090332";
|
||||||
var externalLink = "http://www.openstreetmap.org/#map=18/45.53258/-73.55536";
|
var externalLink = "http://www.openstreetmap.org/#map=18/45.56830/-73.61476";
|
||||||
var iframeParams = {
|
var iframeParams = {
|
||||||
style: {border: '1px solid black', 'min-height': '300px'},
|
style: {border: '1px solid black', 'min-height': '300px'},
|
||||||
width: '100%',
|
width: '100%',
|
||||||
// height: '100%',
|
|
||||||
frameborder: 0,
|
frameborder: 0,
|
||||||
scrolling: 'no',
|
scrolling: 'no',
|
||||||
marginheight: 0,
|
marginheight: 0,
|
||||||
@@ -106,7 +111,7 @@ define(['m', '_', 'util', 'resultParser', 'views/topNavBar', 'views/footer', 'ar
|
|||||||
m('div.uk-panel-badge.uk-badge', [
|
m('div.uk-panel-badge.uk-badge', [
|
||||||
m('i.fa.fa-map-o', {style: {'font-size': '1.7em'}})
|
m('i.fa.fa-map-o', {style: {'font-size': '1.7em'}})
|
||||||
]),
|
]),
|
||||||
m('h3.uk-panel-title', 'Parc Walter-Stewart'),
|
m('h3.uk-panel-title', 'Parc George-Vernot'),
|
||||||
mainMap.getMap()
|
mainMap.getMap()
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user