We’ll use the domain of your email address to identify your university or company so you can easily see how you rank against others in your organization. We’ll also email you about bot submission events like compilation errors. You can opt out of these at any time.
+
You need to choose your preferred email.
+
We’ll use the domain of your email address to identify your university or company (using this whitelist) so you can easily see how you rank against others in your organization. We’ll also email you about bot submission events like compilation errors. You can opt out of these at any time.
+
You have two options:
+
+
Or, choose a custom email:
+
-
+
Email Change
Please enter your preferred email.
We’ll use the domain of your email address to identify your university or company so you can easily see how you rank against others in your organization. We’ll also email you about bot submission events like compilation errors. You can opt out of these at any time.
+
-
-
-
-
-
-
-
+
We've sent you a verification email and are waiting for you to click the link in it. This email may land in your spam folder.
-
If you've already verified your email, head to our homepage. If you're having problems with registration, please email us at halite@halite.io.
+
If you've already verified your email, head to our homepage. If you're having problems with registration, please email us at halite@halite.io or switch to using your github email: .
+
-
+
diff --git a/website/includes/email_custom_form.php b/website/includes/email_custom_form.php
new file mode 100644
index 000000000..9e4a6f156
--- /dev/null
+++ b/website/includes/email_custom_form.php
@@ -0,0 +1,37 @@
+
+
+
+
diff --git a/website/includes/email_github_form.php b/website/includes/email_github_form.php
new file mode 100644
index 000000000..b1c7828f3
--- /dev/null
+++ b/website/includes/email_github_form.php
@@ -0,0 +1,24 @@
+
+
diff --git a/website/script/email.js b/website/script/email.js
index 81ce62b06..bbe552a2d 100644
--- a/website/script/email.js
+++ b/website/script/email.js
@@ -1,61 +1,26 @@
$(function() {
- var customEmailForm = {
- $firstField: $("#firstField"),
- $secondField: $("#secondField"),
- $messageBox: $("#messageBox"),
- $submitButton: $("#customSubmitButton"),
- init: function(submitCallback) {
- this.submitCallback = submitCallback;
- this.$submitButton.click(this, this.onClick.bind(this));
- this.$firstField.keypress(this, this.keypress.bind(this));
- this.$secondField.keypress(this, this.keypress.bind(this));
- },
- render: function() {
- this.$emailLoc.html(this.email);
- },
- onClick: function() {
- if(this.$firstField.val() != this.$secondField.val()) {
- this.displayMessage("Email Mismatch", "The two emails that you entered do not match.", false);
- } else if(this.$firstField.val() == "" || this.$secondField.val() == "") {
- this.displayMessage("Empty Fields", "Please fill your email twice in the boxes below.", false);
- } else {
- this.displayMessage("Success", "We've sent a verification email to "+this.$firstField.val()+".", true);
- this.submitCallback(this.$firstField.val());
- }
- },
- keypress: function(e) {
- if(e.which == 13) this.onClick();
- },
- displayMessage: function(title, message, isSuccess) {
- this.$messageBox.append($("