11 lines
372 B
JavaScript
11 lines
372 B
JavaScript
(function () {
|
|
"use strict";
|
|
const form = document.getElementById("contact-form");
|
|
const confirmBox = document.getElementById("contact-confirmation");
|
|
form?.addEventListener("submit", (e) => {
|
|
e.preventDefault();
|
|
form.hidden = true;
|
|
confirmBox?.classList.add("show");
|
|
confirmBox?.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
});
|
|
})(); |