From 5c401526bb25f86784ddc3c5ae8e2ece436fb0bf Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Mon, 13 May 2024 12:17:54 +0200 Subject: [PATCH] fixed bestellformular --- assets/js/bestellformular.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/assets/js/bestellformular.js b/assets/js/bestellformular.js index b7c81c8..0467bdd 100644 --- a/assets/js/bestellformular.js +++ b/assets/js/bestellformular.js @@ -43,8 +43,6 @@ const captchaInput = document.querySelectorAll('.captcha-input') const captchaVerifyButton = document.querySelectorAll('.captcha-verify') // Form fields -const subjectField = document.getElementById('subject') -const messageField = document.getElementById('description') const botBadge = document.createElement('div') if (debugEnabled) { @@ -117,9 +115,6 @@ function validateZSRNumber(form) { function checkForBotBehavior() { let timeSpent = (Date.now() - startTime) / 1000 botDetected = - subjectField.value === "I promised." || -// or if messageField Has string "Hi, this is" in it - messageField.value.startsWith("Hi, this is") || !userInteracted || interactionCount === 0 || timeSpent < interactionThreshold ||