aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/js/map.js1
-rw-r--r--templates/index.html6
2 files changed, 5 insertions, 2 deletions
diff --git a/static/js/map.js b/static/js/map.js
index d379ffb..ec6d9b4 100644
--- a/static/js/map.js
+++ b/static/js/map.js
@@ -4,7 +4,6 @@ InitializeMap({
latitude: 42.8864,
longitude: -78.8784
});
-const cities = JSON.parse('{{cities_list | tojson}}');
for (var i in cities) {
var select = document.getElementById("city_list");
var option = document.createElement("option");
diff --git a/templates/index.html b/templates/index.html
index ad489d9..65068a9 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -6,6 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Analyzing Climate Change using Earth Surface Temperature Visualization</title>
+ <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="{{url_for('static',filename='css/style.css')}}">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
@@ -67,6 +68,9 @@
</main>
</div>
</body>
-<script src="{{url_for('static',filename='js/map.js')}}"></script>
+<script type="text/javascript">
+ const cities = JSON.parse('{{cities_list | tojson}}');
+</script>
+<script src="../static/js/map.js" defer></script>
</html> \ No newline at end of file