mirror of
https://github.com/System-End/daydream-phoenix.git
synced 2026-04-19 22:05:07 +00:00
redirect to the fillout form only for the suceava city
This commit is contained in:
parent
e81895b6b8
commit
0288692aea
1 changed files with 16 additions and 16 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue