diff options
| author | Joe Carstairs <me@joeac.net> | 2025-12-18 11:04:03 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2025-12-18 11:04:03 +0000 |
| commit | 46c9b7731622f1f4d0f6a03c3179e747e0ce065d (patch) | |
| tree | 71c60d9cf72797b06054a61990f7baa41db2e8a0 /website/src/scripts/contact/selectors.ts | |
| parent | 40d6c7f248c3fe506690ee3ccb3894f952e164ed (diff) | |
contact page
Diffstat (limited to 'website/src/scripts/contact/selectors.ts')
| -rw-r--r-- | website/src/scripts/contact/selectors.ts | 27 |
1 files changed, 27 insertions, 0 deletions
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<HTMLInputElement>; + 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; + }; +}; |
