Make scripts modules
This commit is contained in:
parent
fdd22e00df
commit
20bcbb362f
2 changed files with 2 additions and 4 deletions
|
@ -53,9 +53,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script>
|
<script type="module">
|
||||||
"use strict";
|
|
||||||
|
|
||||||
const iframe = document.querySelector("#iframe");
|
const iframe = document.querySelector("#iframe");
|
||||||
|
|
||||||
iframe.addEventListener("load", () => {
|
iframe.addEventListener("load", () => {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ get_url(path='leaflet/leaflet.js') | safe }}?v={{ now(timestamp=true) }}"></script>
|
<script src="{{ get_url(path='leaflet/leaflet.js') | safe }}?v={{ now(timestamp=true) }}"></script>
|
||||||
<script>
|
<script type="module">
|
||||||
L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) | safe }}";
|
L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images/', trailing_slash=true) | safe }}";
|
||||||
|
|
||||||
var center = L.latLng(50.05427, 7.11814);
|
var center = L.latLng(50.05427, 7.11814);
|
||||||
|
|
Loading…
Reference in a new issue