diff weather_server/templates/location.html @ 19:47987502bf4c

Add graph, make it public, and bump the version. This checks in the tsc-compiled JS files because idklol.
author Paul Fisher <paul@pfish.zone>
date Sun, 13 Oct 2019 18:22:06 -0400
parents 9d07dc5c3340
children a7fe635d1c88
line wrap: on
line diff
--- a/weather_server/templates/location.html	Sat Oct 12 21:02:02 2019 -0400
+++ b/weather_server/templates/location.html	Sun Oct 13 18:22:06 2019 -0400
@@ -7,10 +7,10 @@
             rel="stylesheet"
             href="{{ url_for('static', filename='style.css') }}">
     </head>
-    <body>
+    <body class="plain">
         <h1><span>{{ location.name }} conditions</span></h1>
         {% if last_reading %}
-            <p class="plain important" id="temp">
+            <p class="important" id="temp">
                 <span class="key">Temperature</span>
                 <span class="value">
                     <span class="pad"> </span>
@@ -20,7 +20,7 @@
                     <span class="unit">&deg;F</span>
                 </span>
             </p>
-            <p class="plain important" id="dewpoint">
+            <p class="important" id="dewpoint">
                 <span class="key">Dew point</span>
                 <span class="value">
                     <span class="pad"> </span>
@@ -39,15 +39,14 @@
         {% else %}
             <p id="big-question-mark">?</p>
         {% endif %}
-        <!--
-            <script src="{{ url_for('static', filename='amd/mad.js') }}"></script>
-            <script>new MADRegistry().install(self);</script>
-            <script src="{{ url_for('static', filename='graph.js') }}"></script>
-            <script>
-                require('graph').setUp(
-                    document.getElementById('temp'),
-                    document.getElementById('dewpoint'));
-            </script>
-        <!-- -->
+        <script src="{{ url_for('static', filename='amd/mad.js') }}"></script>
+        <script>new MADRegistry().install(self);</script>
+        <script src="{{ url_for('static', filename='graph.js') }}"></script>
+        <script>
+            require('graph').setUp(
+                document.body,
+                document.getElementById('temp'),
+                document.getElementById('dewpoint'));
+        </script>
     </body>
 </html>