1
0
Fork 0

Make scripts modules

This commit is contained in:
Mo 2023-11-22 03:05:09 +01:00
parent fdd22e00df
commit 20bcbb362f
2 changed files with 2 additions and 4 deletions

View file

@ -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", () => {

View file

@ -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);