diff --git a/.gitignore b/.gitignore index 0c14a96..4b1dc5b 100755 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,7 @@ resources jsconfig.json hugo_stats.json go.sum -yarn.lock \ No newline at end of file +yarn.lock + +# don't ignore public/php +!public/php \ No newline at end of file diff --git a/assets/js/bestellformular.js b/assets/js/bestellformular.js index f907f5e..74876cc 100644 --- a/assets/js/bestellformular.js +++ b/assets/js/bestellformular.js @@ -1,6 +1,6 @@ window.onload = function () { - const FORMDEBUG = false; + const FORMDEBUG = true; // initieiere Zeitmessung zur Botprevention var startTime = Date.now(); @@ -22,18 +22,17 @@ window.onload = function () { e.preventDefault(); const form = e.target; - const data = new FormData(form); const notification = document.getElementById('notification'); const btn = document.getElementById('bestellformular-btn'); const zsrTooltip = document.getElementById('zsr-tooltip'); - + var endTime = Date.now(); var timeSpent = (endTime - startTime) / 1000; // Zeit in Sekunden - + // Setze die Werte für die Botvalidierung zum Auswerten in PHP document.getElementById("age").value = timeSpent; document.getElementById("hobbies").value = userInteracted ? "true" : "false"; - + // Validierung der ZSR-Nummer const zsrNummer = form.elements['zsr_nummer'].value; const isNumberOrBeantragt = /^\d+$|^beantragt$/i.test(zsrNummer); @@ -45,7 +44,7 @@ window.onload = function () { zsrTooltip.scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" }); return; } - + if (FORMDEBUG) { console.log("userInteracted: " + userInteracted); console.log("timeSpent: " + timeSpent); @@ -53,8 +52,9 @@ window.onload = function () { console.log("age: " + document.getElementById("age").value); console.log("verify_email(honeypot): " + document.getElementById("verify_email").value); } - + // Formulardaten an den Server senden + const data = new FormData(form); fetch(form.action, { method: 'POST', mode: 'cors', diff --git a/content/german/bestellung/zusatzmodule-freiberufliche.md b/content/german/bestellung/zusatzmodule-freiberufliche.md index b65e765..dc69014 100644 --- a/content/german/bestellung/zusatzmodule-freiberufliche.md +++ b/content/german/bestellung/zusatzmodule-freiberufliche.md @@ -21,7 +21,6 @@ title = 'Zusatzmodule Freiberufliche' {{% /aligncenter %}}
-
@@ -47,14 +46,14 @@ title = 'Zusatzmodule Freiberufliche'
- +
- +
@@ -69,35 +68,32 @@ title = 'Zusatzmodule Freiberufliche'
- +
-
- +


+
Welche Erweiterungen möchten Sie hinzubuchen?

- +
- +
- +
- +
-
-
- - -
- - -
+


+
+ + +