Merge branch 'web' into owm
[chrisu/seepark.git] / web / templates / seepark_web.html
1 <!DOCTYPE html>
2 <html lang="de">
3         <head>
4                 <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
6                 <!-- Load c3.css -->
7                 <link href="{{url_for('static', filename='c3.css')}}" rel="stylesheet">
8
9                 <!-- Load own css -->
10                 <link href="{{url_for('static', filename='seepark_web.css')}}" rel="stylesheet">
11
12                 <!-- Load d3.js and c3.js -->
13                 <script src="{{url_for('static', filename='d3.js')}}" charset="utf-8"></script>
14                 <script src="{{url_for('static', filename='c3.js')}}"></script>
15
16                 <title>Seepark Obsteig</title>
17         </head>
18         <body>
19                 <h1>Daten zum Seepark Obsteig</h1>
20                 <div id="chart"></div>
21                 <div id="buttonbar">
22                         <button onclick="loaddays(1)">Tag</button>
23                         <button onclick="loaddays(7)">Woche</button>
24                         <button onclick="loaddays(30)">Monat</button>
25                         <button onclick="loaddays(365)">Jahr</button>
26                 </div>
27
28                 <!-- openweathermap widget -->
29                 <div id="openweathermap-widget-15"></div>
30                 <script>
31                 window.myWidgetParam ? window.myWidgetParam : window.myWidgetParam = [];
32                 window.myWidgetParam.push({
33                         id: 15,
34                         cityid: '3319578',
35                         appid: '{{ apikey }}',
36                         units: 'metric',
37                         containerid: 'openweathermap-widget-15',
38                         lang: 'de',
39                 });
40                 (function() {
41                         var script = document.createElement('script');
42                         script.async = true;
43                         script.charset = "utf-8";
44                         script.src = "//openweathermap.org/themes/openweathermap/assets/vendor/owm/js/weather-widget-generator.js";
45                         var s = document.getElementsByTagName('script')[0];
46                         s.parentNode.insertBefore(script, s);
47                 })();
48                 </script>
49
50                 <!-- Load own javascript code -->
51                 <script src="{{url_for('static', filename='seepark_web.js')}}"></script>
52
53         </body>
54 </html>