redirect to the fillout form only for the suceava city

This commit is contained in:
xndadelin 2025-08-08 20:56:36 +03:00
parent e81895b6b8
commit 0288692aea

View file

@ -22,22 +22,22 @@
console.warn('Failed to save email:', error);
});
window.location.href = `https://forms.fillout.com/t/wABjdnkgLWus?email=${encodeURIComponent(email)}`;
submitted = true;
// Clear the input box while the green overlay is showing
emailInput.value = '';
setTimeout(() => {
fadeOut = true;
}, 1500);
// Reset to original position after fade out completes
setTimeout(() => {
submitted = false;
fadeOut = false;
}, 1500 + 500);
if (city === 'suceava') {
window.location.href = `https://forms.fillout.com/t/wABjdnkgLWus?email=${encodeURIComponent(email)}`;
} else {
submitted = true;
emailInput.value = '';
setTimeout(() => {
fadeOut = true;
}, 1500);
setTimeout(() => {
submitted = false;
fadeOut = false;
}, 1500 + 500);
}
}
</script>