From 813836fbba884388e6013e9fd377430ef33b6c8d Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 4 Jun 2026 15:15:02 +0100 Subject: http: adds scripts --- http/public/scripts/contact/selectors.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 http/public/scripts/contact/selectors.js (limited to 'http/public/scripts/contact/selectors.js') diff --git a/http/public/scripts/contact/selectors.js b/http/public/scripts/contact/selectors.js new file mode 100644 index 0000000..7676414 --- /dev/null +++ b/http/public/scripts/contact/selectors.js @@ -0,0 +1,25 @@ +/** + * @typedef {Object} Selectors + * @property {Object} contactForm + * @property {() => HTMLInputElement} contactForm.emailElem + * @property {() => Element | null} contactForm.errorElem + * @property {() => HTMLInputElement} contactForm.nameElem + * @property {() => HTMLTextAreaElement} contactForm.messageElem + * @property {() => HTMLFormElement | null} contactForm.self + * @property {() => HTMLInputElement | null} contactForm.submitButton + * @property {Object} otpDialog + * @property {() => NodeListOf} otpDialog.allOtpInputs + * @property {() => Element | null} otpDialog.errorElem + * @property {() => HTMLInputElement | null} otpDialog.firstOtpInput + * @property {() => HTMLFormElement | null} otpDialog.otpForm + * @property {() => Element | null} otpDialog.otpRecipient + * @property {() => Element | null} otpDialog.otpValidUntil + * @property {() => HTMLButtonElement | null} otpDialog.resendButton + * @property {() => HTMLDialogElement} otpDialog.self + * @property {() => HTMLInputElement | null} otpDialog.submitButton + * @property {Object} successSection + * @property {() => Element | null} successSection.email + * @property {() => Element | null} successSection.message + * @property {() => Element | null} successSection.name + * @property {() => Element | null} successSection.self + */ -- cgit v1.2.3