]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/templates/seepark_web.html
Merge branch 'web'
[chrisu/seepark.git] / web / templates / seepark_web.html
index 09f17dc316e9e954476309f231803ffa5864de37..c6d34d3ae8876fb3235c7bb8e67feb5c1c2c022c 100644 (file)
@@ -1,6 +1,8 @@
 <!DOCTYPE html>
 <html lang="de">
        <head>
 <!DOCTYPE html>
 <html lang="de">
        <head>
+               <title>Seepark Obsteig</title>
+
                <!-- mobile first, yeah -->
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
                <!-- mobile first, yeah -->
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
@@ -20,9 +22,8 @@
                <script src="{{url_for('static', filename='c3.min.js')}}"></script>
                <script src="{{url_for('static', filename='strftime-min.js')}}"></script>
 
                <script src="{{url_for('static', filename='c3.min.js')}}"></script>
                <script src="{{url_for('static', filename='strftime-min.js')}}"></script>
 
-               <!-- here the owm script will be appended -->
-
-               <title>Seepark Obsteig</title>
+               <!-- Load owm script -->
+               <script async="true" charset="utf-8" src="//openweathermap.org/themes/openweathermap/assets/vendor/owm/js/weather-widget-generator.js"></script>
        </head>
        <body>
                <h1>Daten zum Seepark Obsteig</h1>
        </head>
        <body>
                <h1>Daten zum Seepark Obsteig</h1>
                        containerid: 'openweathermap-widget-15',
                        lang: 'de',
                });
                        containerid: 'openweathermap-widget-15',
                        lang: 'de',
                });
-               (function() {
-                       var script = document.createElement('script');
-                       script.async = true;
-                       script.charset = "utf-8";
-                       script.src = "//openweathermap.org/themes/openweathermap/assets/vendor/owm/js/weather-widget-generator.js";
-                       var s = document.getElementsByTagName('title')[0];
-                       s.parentNode.insertBefore(script, s);
-               })();
                </script>
 
                <!-- windy widget -->
                </script>
 
                <!-- windy widget -->
@@ -83,7 +76,7 @@
 
                <hr />
                <p><small><a href="https://git.toastfreeware.priv.at/chrisu/seepark.git">Source code</a></small></p>
 
                <hr />
                <p><small><a href="https://git.toastfreeware.priv.at/chrisu/seepark.git">Source code</a></small></p>
-               
+
                <!-- Load own javascript code -->
                <script src="{{url_for('static', filename='seepark_web.js')}}"></script>
 
                <!-- Load own javascript code -->
                <script src="{{url_for('static', filename='seepark_web.js')}}"></script>