diff --git a/assets/js/bestellformular.js b/assets/js/bestellformular.js index 74876cc..9ab5568 100644 --- a/assets/js/bestellformular.js +++ b/assets/js/bestellformular.js @@ -1,6 +1,6 @@ window.onload = function () { - const FORMDEBUG = true; + const FORMDEBUG = false; // initieiere Zeitmessung zur Botprevention var startTime = Date.now(); @@ -26,6 +26,10 @@ window.onload = function () { const btn = document.getElementById('bestellformular-btn'); const zsrTooltip = document.getElementById('zsr-tooltip'); + // Spinner und button disabled anzeigen + + + var endTime = Date.now(); var timeSpent = (endTime - startTime) / 1000; // Zeit in Sekunden @@ -45,6 +49,21 @@ window.onload = function () { return; } + btn.innerHTML = ` + + + + + + ` + + btn.disabled = true; + if (FORMDEBUG) { console.log("userInteracted: " + userInteracted); console.log("timeSpent: " + timeSpent);