Compare commits

..

No commits in common. "8445bb23ab771dd631b94c8e83c97ea99289c7ef" and "13608bc09551dfa8e711859ef77c43bfb3446d6c" have entirely different histories.

4 changed files with 8 additions and 20 deletions

View file

@ -4,7 +4,6 @@ on:
push:
branches:
- main
- kontaktformular-filter-spam
jobs:
buildAndDeploy:

View file

@ -1,5 +1,5 @@
// Configuration and Messages
const debugEnabled = true
const debugEnabled = false
const mouseDebugEnabled = false
const zsrCheckEnabled = false
const interactionThreshold = 15 // Time in seconds
@ -43,11 +43,6 @@ const captcha = document.querySelectorAll('.captcha')
const captchaInput = document.querySelectorAll('.captcha-input')
const captchaVerifyButton = document.querySelectorAll('.captcha-verify')
const botBadge = document.createElement('div')
// Form fields
const subjectField = document.getElementById('subject')
const messageField = document.getElementById('description')
if (debugEnabled) {
botBadge.className = 'bot-badge'
document.body.appendChild(botBadge)
@ -107,9 +102,6 @@ function handleMouseMove(event) {
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 ||
honeypotInput1.value !== '' ||
@ -139,11 +131,7 @@ function checkForBotBehavior() {
' honeypotInput2:' +
honeypotInput2.value +
' verifyEmailInput:' +
verifyEmailInput.value +
' subjectField:' +
subjectField.value +
' messageField:' +
messageField.value
verifyEmailInput.value
)
}
function handleSubmit(e) {
@ -156,6 +144,7 @@ function handleSubmit(e) {
fakeOut()
return false
}
const formData = new FormData(form)
const formDataEncoded = new URLSearchParams(formData).toString()
const formURL = form.action + '.json'

View file

@ -21,7 +21,7 @@ CH-8253 Diessenhofen
079 393 86 83
support"at"verua.ch
support@verua.ch
 
 

View file

@ -19,7 +19,7 @@ CH-8253 Diessenhofen
079 393 86 83
support"at"verua.ch
support@verua.ch