Fix contact-form on www.
This commit is contained in:
parent
1b3499ad51
commit
8e8b84377d
4 changed files with 14 additions and 20 deletions
|
@ -3,9 +3,7 @@
|
|||
<div class="container text-center">
|
||||
<h1 class="h1">Seite nicht gefunden</h1>
|
||||
|
||||
<img src="{{ get_url(path='images/404/bot.svg') }}"
|
||||
class="img-fluid"
|
||||
width="300"/>
|
||||
<img src="/images/404/bot.svg" class="img-fluid" width="300"/>
|
||||
|
||||
<div class="d-grid gap-2 pt-3">
|
||||
<a class="btn btn-dark" href="/" role="button">Zurück zur Startseite</a>
|
||||
|
|
|
@ -48,10 +48,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<iframe id="iframe"
|
||||
src="{{ get_url(path='/contact-form') }}"
|
||||
width="100%"
|
||||
title="Kontakt-Formular"></iframe>
|
||||
<iframe id="iframe" src="/contact-form" width="100%" title="Kontakt-Formular"></iframe>
|
||||
|
||||
<div class="alert alert-warning mt-2" role="alert">
|
||||
<h5 class="alert-heading">Bitte beachten Sie:</h5>
|
||||
|
@ -64,9 +61,9 @@
|
|||
{% block scripts %}
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
|
||||
const iframe = document.querySelector("#iframe");
|
||||
|
||||
|
||||
iframe.addEventListener("load", () => {
|
||||
iframe.style.height = iframe.contentDocument.body.scrollHeight + 50 + "px";
|
||||
});
|
||||
|
|
|
@ -17,18 +17,17 @@
|
|||
{% set image = resize_image(path=config.extra.logo_path, width=32, height=32, op="fill") %}
|
||||
<link rel="icon" type="image/x-icon" href="{{ image.url }}" />
|
||||
|
||||
<link href="{{ get_url(path='bootstrap/bootstrap.min.css') }}"
|
||||
rel="stylesheet"/>
|
||||
<link href="/bootstrap/bootstrap.min.css" rel="stylesheet"/>
|
||||
|
||||
<style>
|
||||
.grow-on-hover {
|
||||
transition: all .3s ease-in-out;
|
||||
}
|
||||
|
||||
|
||||
.grow-on-hover:hover {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
|
||||
.underline-on-hover:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
@ -55,7 +54,7 @@
|
|||
{% include "partials/footer.tera.html" %}
|
||||
</footer>
|
||||
|
||||
<script src="{{ get_url(path='bootstrap/bootstrap.bundle.min.js') }}"></script>
|
||||
<script src="/bootstrap/bootstrap.bundle.min.js"></script>
|
||||
|
||||
{% block scripts %}
|
||||
{% endblock scripts %}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "base.tera.html" %}
|
||||
|
||||
{% block styles %}<link rel="stylesheet" href="{{ get_url(path='leaflet/leaflet.css') }}"/>{% endblock %}
|
||||
{% block styles %}<link rel="stylesheet" href="/leaflet/leaflet.css"/>{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row pb-3">
|
||||
|
@ -23,23 +23,23 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ get_url(path='leaflet/leaflet.js') }}"></script>
|
||||
<script src="/leaflet/leaflet.js"></script>
|
||||
<script>
|
||||
L.Icon.Default.imagePath = "{{ get_url(path='leaflet/images', trailing_slash=true) }}";
|
||||
|
||||
L.Icon.Default.imagePath = "/leaflet/images/";
|
||||
|
||||
var center = L.latLng(50.05635, 7.12507);
|
||||
var map = L.map('map', {
|
||||
center: center,
|
||||
zoom: 17,
|
||||
scrollWheelZoom: false,
|
||||
});
|
||||
|
||||
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
minZoom: 5,
|
||||
maxZoom: 19,
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
||||
}).addTo(map);
|
||||
|
||||
|
||||
L.marker(center).addTo(map).bindPopup("{{ config.extra.address }}").openPopup();
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue