From 46c9b7731622f1f4d0f6a03c3179e747e0ce065d Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Thu, 18 Dec 2025 11:04:03 +0000 Subject: contact page --- website/src/scripts/contact/selectors.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 website/src/scripts/contact/selectors.ts (limited to 'website/src/scripts/contact/selectors.ts') diff --git a/website/src/scripts/contact/selectors.ts b/website/src/scripts/contact/selectors.ts new file mode 100644 index 0000000..5c30f9c --- /dev/null +++ b/website/src/scripts/contact/selectors.ts @@ -0,0 +1,27 @@ +export type Selectors = { + contactForm: { + emailElem: () => HTMLInputElement; + errorElem: () => Element | null; + nameElem: () => HTMLInputElement; + messageElem: () => HTMLTextAreaElement; + self: () => HTMLFormElement | null; + submitButton: () => HTMLInputElement | null; + }; + otpDialog: { + allOtpInputs: () => NodeListOf; + errorElem: () => Element | null; + firstOtpInput: () => HTMLInputElement | null; + otpForm: () => HTMLFormElement | null; + otpRecipient: () => Element | null; + otpValidUntil: () => Element | null; + resendButton: () => HTMLButtonElement | null; + self: () => HTMLDialogElement; + submitButton: () => HTMLInputElement | null; + }; + successSection: { + email: () => Element | null; + message: () => Element | null; + name: () => Element | null; + self: () => Element | null; + }; +}; -- cgit v1.2.3