aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix.sipma@no-log.org>2018-02-07 19:00:09 +0100
committerFélix Sipma <felix.sipma@no-log.org>2018-02-07 19:00:09 +0100
commit89eac82b370611c845ff53f8b761beba0db05cb1 (patch)
tree2af1f416fa06990b32aef3936ec41b4b58fe81bd
parentdedae11a00f5377bac446d5e0b16792830734f69 (diff)
js: handle collapse
-rw-r--r--Makefile4
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/index.html3
3 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7782062..b60f1e9 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,10 @@ css:
js:
mkdir -p $(DIST_STATIC)/js && cp node_modules/leaflet/dist/leaflet.js $(DIST_STATIC)/js/
+ cp node_modules/jquery/dist/jquery.min.js $(DIST_STATIC)/js/
+ cp node_modules/popper.js/dist/umd/popper.min.js $(DIST_STATIC)/js/
+ cp node_modules/bootstrap/js/dist/util.js $(DIST_STATIC)/js/
+ cp node_modules/bootstrap/js/dist/collapse.js $(DIST_STATIC)/js/
cp $(STATIC)/js/* $(DIST_STATIC)/js
fonts:
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 88fabf2..9408829 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -35,6 +35,10 @@
{{ block "main" . }}
{{ end }}
</div>
+ <script src="{{ .Site.BaseURL }}js/jquery.min.js"></script>
+ <script src="{{ .Site.BaseURL }}js/popper.min.js"></script>
+ <script src="{{ .Site.BaseURL }}js/util.js"></script>
+ <script src="{{ .Site.BaseURL }}js/collapse.js"></script>
{{ block "footer" . }}
{{ end }}
</body>
diff --git a/layouts/index.html b/layouts/index.html
index 74c4d99..402a290 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -17,6 +17,9 @@
});
</script>
<script src="{{ .Site.BaseURL }}js/leaflet.js"></script>
+<script src="{{ .Site.BaseURL }}js/jquery.min.js"></script>
+<script src="{{ .Site.BaseURL }}js/util.js"></script>
+<script src="{{ .Site.BaseURL }}js/dropdown.js"></script>
<script src="{{ .Site.BaseURL }}js/fournil-map.js"></script>
{{ end }}