add buttons for day/week/month/year, + css and a js function
[chrisu/seepark.git] / web / templates / seepark_web.html
index b19635a3df05a9cf16d42ce90c5ac3ded550c569..746e9a5ce5cd8e134e4233d1a78b5537bd827fb3 100644 (file)
        <body>
                <h1>Daten zum Seepark Obsteig</h1>
                <div id="chart"></div>
+               <div id="buttonbar">
+                       <button onclick="loaddays(1)">Tag</button>
+                       <button onclick="loaddays(7)">Woche</button>
+                       <button onclick="loaddays(30)">Monat</button>
+                       <button onclick="loaddays(365)">Jahr</button>
+               </div>
 
                <!-- Load own javascript code -->
                <script src="{{url_for('static', filename='seepark_web.js')}}"></script>