12 lines
375 B
JavaScript
12 lines
375 B
JavaScript
import { sendFormAsync } from "./shared.js";
|
|
|
|
async function signupAsync(params) {
|
|
const form = document.getElementById('signupForm');
|
|
await sendFormAsync(form);
|
|
}
|
|
|
|
const signupForm = document.getElementById('signupForm');
|
|
signupForm.addEventListener('submit', async (event) => {
|
|
event.preventDefault(); // Prevent the default form submission
|
|
await signupAsync();
|
|
}); |