Skip to content

Commit

Permalink
Add form success notification
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSCahill committed Dec 2, 2024
1 parent 9efbae9 commit 6a8d3c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/partials/bloblang-playground.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,11 @@ document.addEventListener("DOMContentLoaded", () => {
})
.then(() => {
console.log("Form submission success");
banner.style.display = "none";
localStorage.setItem("bloblangBannerDismissed", "true");
banner.innerHTML = "Thank you! Your email has been submitted.";
setTimeout(() => {
banner.style.display = "none";
localStorage.setItem("bloblangBannerDismissed", "true");
}, 3000);
})
.catch((error) => {
console.error("Form submission error:", error);
Expand Down

0 comments on commit 6a8d3c6

Please sign in to comment.