Skip to content

Commit

Permalink
confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonszelmann committed May 21, 2024
1 parent 66fbc79 commit 2cf1592
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ import SponsorTier from "../components/sponsor-tier.astro";
if (email_input === null) {
return;
}

await fetch(
`https://docs.google.com/forms/d/e/1FAIpQLSehxA98qwT-AILVWUoxOMTrYXfuphVas5o5WTazUGc3M1lH0Q/formResponse?&submit=Submit?usp=pp_url&entry.844319193=${(email_input as HTMLInputElement).value}`,
);
).catch(() => {});

document
.querySelectorAll("[signup-ok]")
.forEach((i) => (i.innerHTML = "signup ok"));
return false;
});
});
Expand Down Expand Up @@ -65,6 +68,7 @@ import SponsorTier from "../components/sponsor-tier.astro";
<button type="submit" class="button button-primary"
>Sign Up</button
>
<p signup-ok></p>
</form>
</p>
</div>
Expand Down

0 comments on commit 2cf1592

Please sign in to comment.