-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle mismatched .edu registrations.
- Loading branch information
Showing
4 changed files
with
179 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<img src="{{ school.logo.url }}" alt="{{ school.short_name }} {{ school.mascot }} logo" /> | ||
<p> | ||
<script> | ||
(function (self) { | ||
const schoolName = "{{ school.short_name }}"; | ||
const firstName = "{{ first_name }}"; | ||
const lastName = "{{ last_name }}"; | ||
let email = null; | ||
let count = 0; // give up after 3 tries | ||
while (email === null && count < 3) { | ||
email = prompt("Sorry, but we need your {{ school.short_name }} student email to continue. Please enter it below:"); | ||
count++; | ||
} | ||
if (email) { | ||
htmx.ajax("POST", "./finish/", { | ||
target: document.querySelector(".urgency"), | ||
values: { | ||
email: email, | ||
first_name: firstName, | ||
last_name: lastName, | ||
school: schoolName | ||
} | ||
}); | ||
} | ||
})(me()); | ||
</script> | ||
<b>We could not use your email</b>. Please use your {{ school.short_name }} student email. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
<img src="{{ school.logo.url }}" | ||
alt="{{ school.short_name }} {{ school.mascot }} logo" /> | ||
<p> | ||
<script> | ||
(function(self) { | ||
const fireworks = new Fireworks.default(document.querySelector('.fireworks')); | ||
fireworks.start(); | ||
setTimeout(() => fireworks.stop(), 10_000); | ||
})(me()); | ||
</script> | ||
<b>Please check your email</b>. We've sent you a link to claim your ${{ current_contest.amount }} gift card. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters