diff --git a/assets/js/bestellformular.js b/assets/js/bestellformular.js index bd72886..3566f48 100644 --- a/assets/js/bestellformular.js +++ b/assets/js/bestellformular.js @@ -41,15 +41,6 @@ const textInputs = document.querySelectorAll('input[type="text"]') const captcha = document.querySelectorAll('.captcha') const captchaInput = document.querySelectorAll('.captcha-input') const captchaVerifyButton = document.querySelectorAll('.captcha-verify') -const botBadge = document.createElement('div') -if (debugEnabled) { - botBadge.className = 'bot-badge' - document.body.appendChild(botBadge) - botBadge.setAttribute( - 'style', - 'position: fixed; top: 0; right: 0; z-index: 9999; background-color: red; color: white; font-weight: bold; height:20px; width:20px' - ) -} // Utility variables let startTime = Date.now() @@ -80,7 +71,6 @@ function setUserInteracted() { lastInteractionTime = currentTime userInteracted = true interactionCount++ - checkForBotBehavior() } function handleMouseMove(event) { @@ -120,31 +110,26 @@ function checkForBotBehavior() { honeypotInput2.value !== '' || verifyEmailInput.value !== '' if (debugEnabled) - if (!botDetected) { - botBadge.style.backgroundColor = 'green' - } else { - botBadge.style.backgroundColor = 'red' - } - console.log( - 'Bot Detected: ' + - botDetected + - ' userInteracted:' + - userInteracted + - ' interactionCount:' + - interactionCount + - ' timeSpent:' + - timeSpent + - ' isStraightLine:' + - isStraightLine + - ' mousePositions:' + - mousePositions.length + - ' honeypotInput1:' + - honeypotInput1.value + - ' honeypotInput2:' + - honeypotInput2.value + - ' verifyEmailInput:' + - verifyEmailInput.value - ) + console.log( + 'Bot Detected: ' + + botDetected + + ' userInteracted:' + + userInteracted + + ' interactionCount:' + + interactionCount + + ' timeSpent:' + + timeSpent + + ' isStraightLine:' + + isStraightLine + + ' mousePositions:' + + mousePositions.length + + ' honeypotInput1:' + + honeypotInput1.value + + ' honeypotInput2:' + + honeypotInput2.value + + ' verifyEmailInput:' + + verifyEmailInput.value + ) } function handleSubmit(e) { e.preventDefault() diff --git a/content/german/bestellung/freiberufliche.md b/content/german/bestellung/freiberufliche.md index 01b3624..793d032 100644 --- a/content/german/bestellung/freiberufliche.md +++ b/content/german/bestellung/freiberufliche.md @@ -73,7 +73,7 @@ kommentar = 'age und hobbies sind honeypots'