]> ToastFreeware Gitweb - chrisu/seepark.git/blobdiff - web/templates/seepark_web.html
source code beautification
[chrisu/seepark.git] / web / templates / seepark_web.html
index 3f29501be7ee50ea198ceabbeb10e8e442062dec..09f17dc316e9e954476309f231803ffa5864de37 100644 (file)
@@ -20,6 +20,8 @@
                <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>
        </head>
        <body>
@@ -69,7 +71,7 @@
                        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('script')[0];
+                       var s = document.getElementsByTagName('title')[0];
                        s.parentNode.insertBefore(script, s);
                })();
                </script>