From: gregor herrmann Date: Mon, 4 Jun 2018 19:46:16 +0000 (+0200) Subject: add buttons for day/week/month/year, + css and a js function X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/105e2625c0cacd63414fa47979f882672f633e35 add buttons for day/week/month/year, + css and a js function --- diff --git a/web/static/seepark_web.css b/web/static/seepark_web.css index d48e838..5cf1aad 100644 --- a/web/static/seepark_web.css +++ b/web/static/seepark_web.css @@ -13,3 +13,16 @@ .region-boiling { fill: red; } + +button { + color: inherit; + font: inherit; + margin: 0; + border: 1px solid; +} + +#buttonbar { + margin: 0 auto; + text-align: center; + padding-top: 1em; +} diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index eedcb44..73e9ac2 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -84,3 +84,9 @@ var chart = c3.generate({ ] }); +function loaddays(days) { + chart.load({ + url: '/data/' + days, + mimeType: 'json' + }); +} diff --git a/web/templates/seepark_web.html b/web/templates/seepark_web.html index b19635a..746e9a5 100644 --- a/web/templates/seepark_web.html +++ b/web/templates/seepark_web.html @@ -18,6 +18,12 @@

Daten zum Seepark Obsteig

+
+ + + + +