about summary refs log tree commit diff
path: root/bh20simplewebuploader
diff options
context:
space:
mode:
authorBonfaceKilz2020-06-17 03:13:53 +0300
committerBonfaceKilz2020-06-17 03:13:53 +0300
commit967e1d56a81c184d3dc8d265dec13852eb8c90a6 (patch)
treec9c97d7747d42674a2cef99b1788c3f99c9c7e03 /bh20simplewebuploader
parentf08d4fab5bc8051324206995cad2b180bbf0aeb9 (diff)
downloadbh20-seq-resource-967e1d56a81c184d3dc8d265dec13852eb8c90a6.tar.gz
bh20-seq-resource-967e1d56a81c184d3dc8d265dec13852eb8c90a6.tar.lz
bh20-seq-resource-967e1d56a81c184d3dc8d265dec13852eb8c90a6.zip
Move leaflet CSS to the head section
Diffstat (limited to 'bh20simplewebuploader')
-rw-r--r--bh20simplewebuploader/templates/demo.html6
-rw-r--r--bh20simplewebuploader/templates/header.html6
2 files changed, 6 insertions, 6 deletions
diff --git a/bh20simplewebuploader/templates/demo.html b/bh20simplewebuploader/templates/demo.html
index b9df5dc..f3d2df5 100644
--- a/bh20simplewebuploader/templates/demo.html
+++ b/bh20simplewebuploader/templates/demo.html
@@ -1,9 +1,6 @@
 <!DOCTYPE html>
 <html>
   {% include 'header.html' %}
-    <link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
-          integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
-          crossorigin=""/>
   <body>
     {% include 'banner.html' %}
     {% include 'menu.html' %}
@@ -11,9 +8,6 @@
     {% include 'demo-run.html' %}
     {% include 'footer.html' %}
 
-    <script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
-              integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
-              crossorigin=""></script>
     <script type="text/javascript">
       let scriptRoot = {{ request.script_root|tojson|safe }}; // examples
 
diff --git a/bh20simplewebuploader/templates/header.html b/bh20simplewebuploader/templates/header.html
index 5c0e1a0..adb0fd8 100644
--- a/bh20simplewebuploader/templates/header.html
+++ b/bh20simplewebuploader/templates/header.html
@@ -7,4 +7,10 @@
         {% if blog %}
         <link rel="Blog stylesheet" type="text/css" href="/static/blog.css" />
         {% endif %}
+        <link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
+              integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
+              crossorigin=""/>
+        <script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
+                integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
+                crossorigin=""></script>
     </head>