Forum-Breadcrumbs - Du bist hier:ATSTransport ForumATSTransport: Gewerbe TransportTransport Anfragen
Bitte Anmelden oder Registrieren, um Beiträge und Themen zu erstellen.
Transport Anfragen
Alexander@admin
25 Beiträge
#1 · 30. Oktober 2025, 21:34
Zitat von Alexander am 30. Oktober 2025, 21:34 UhrHier ist Ihre Anfrage
[contact-form-7 id="4b6ddd0" title="Neue Transportanfrage"]
<script> document.addEventListener('DOMContentLoaded', function() { const distanceField = document.querySelector('input[name="distance"]'); const priceSpan = document.getElementById('calculated-price'); const pricePerKm = 1.20; // € pro km – можно изменить тариф if (distanceField && priceSpan) { distanceField.addEventListener('input', function() { const km = parseFloat(this.value); if (!isNaN(km) && km > 0) { const total = (km * pricePerKm).toFixed(2); priceSpan.textContent = total + ' €'; } else { priceSpan.textContent = '–'; } }); } }); </script>
Hier ist Ihre Anfrage
<script>
document.addEventListener('DOMContentLoaded', function() {
const distanceField = document.querySelector('input[name="distance"]');
const priceSpan = document.getElementById('calculated-price');
const pricePerKm = 1.20; // € pro km – можно изменить тариф
if (distanceField && priceSpan) {
distanceField.addEventListener('input', function() {
const km = parseFloat(this.value);
if (!isNaN(km) && km > 0) {
const total = (km * pricePerKm).toFixed(2);
priceSpan.textContent = total + ' €';
} else {
priceSpan.textContent = '–';
}
});
}
});
</script>
Anklicken für Daumen nach unten.0Anklicken für Daumen nach oben.0
