Ihre unverbindliche Produktanfrage für:
Gesichtsschutz mit Kopfband und Visier klappbar
setTimeout(function() {
// check if reCAPTCHA is loaded
if (typeof grecaptcha === 'undefined') {
// create the warning
const notice = document.createElement('div');
notice.style.cssText = 'background:#f44; color:#fff; padding:12px; text-align:center; margin:0 0 20px 0; font-family:Arial, sans-serif; border-radius:4px;';
notice.innerHTML = 'Der Formularschutz ist blockiert. Bitte deaktivieren Sie Ihren Werbe-Blocker oder aktivieren Sie im Browser JavaScript und laden Sie diese Seite neu.';
// try to find the actual script tag
let scriptTag = document.currentScript;
// If currentScript is unavailable (e.g. for deletion of Ad Blocker), search for the script tag with the reCAPTCHA URL
if (!scriptTag) {
const scripts = document.querySelectorAll('script[src*="recaptcha/api.js"]');
scriptTag = scripts[scripts.length - 1]; // Get the last matching script tag
}
// insert the warning brvor the script tag
if (scriptTag) {
scriptTag.insertAdjacentElement('beforebegin', notice);
} else {
// Fallback: Insert at body if no script tag found
document.body.insertAdjacentElement('afterbegin', notice);
}
}
}, 2000);