diff --git a/.gitignore b/.gitignore index e37f0cc..fdd0ea3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/* lib/* css/* +/api/resultats.json diff --git a/bower.json b/bower.json index 304f05b..65ef559 100644 --- a/bower.json +++ b/bower.json @@ -20,6 +20,7 @@ "dependencies": { "uikit": "~2.24.3", "mithril": "~0.2.1", - "lodash": "~4.2.1" + "lodash": "~4.2.1", + "almond": "~0.3.1" } } diff --git a/build.js b/build.js new file mode 100644 index 0000000..86f7430 --- /dev/null +++ b/build.js @@ -0,0 +1,11 @@ +({ + baseUrl: "script", + paths: { + m: '../lib/mithril/mithril.min', + _: '../lib/lodash/dist/lodash.min', + requireLib: '../lib/requirejs/require' + }, + include: 'main', + name: "../lib/almond/almond", + out: "main-built.js" +}) diff --git a/data/resultats.yaml b/data/resultats.yaml index 6831714..aa1476e 100644 --- a/data/resultats.yaml +++ b/data/resultats.yaml @@ -6,8 +6,8 @@ name: Jeudi 2 juin home: gris away: jaune - home_points: ~ - away_points: ~ + home_points: 6 + away_points: 7 - date: 2016/06/02 # year/month/day @@ -15,16 +15,16 @@ name: Jeudi 2 juin home: bleu away: rouge - home_points: ~ - away_points: ~ + home_points: 9 + away_points: 2 - date: 2016/06/09 # year/month/day time: "18:00" name: Jeudi 9 juin home: bleu away: jaune - home_points: ~ - away_points: ~ + home_points: 7 + away_points: 6 - date: 2016/06/09 # year/month/day @@ -32,16 +32,16 @@ name: Jeudi 9 juin home: gris away: rouge - home_points: ~ - away_points: ~ + home_points: 4 + away_points: 8 - date: 2016/06/16 # year/month/day time: "18:00" name: Jeudi 16 juin home: bleu away: jaune - home_points: ~ - away_points: ~ + home_points: 4 + away_points: 7 - date: 2016/06/16 # year/month/day diff --git a/index.html b/index.html index e86515c..5dd5c31 100644 --- a/index.html +++ b/index.html @@ -6,16 +6,8 @@ - +
- - - - - - - -