update maitre logic on form submit
This commit is contained in:
parent
c8fab0ec6b
commit
b6b9a0f205
|
@ -1316,10 +1316,8 @@ a.maitre-widget-social {
|
|||
font-weight: 400;
|
||||
font-size: 1.1em; }
|
||||
#maitre-content p[data-maitre-instructions] {
|
||||
margin-top: 20px;
|
||||
color: #999;
|
||||
font-weight: 300;
|
||||
font-size: 1em; }
|
||||
margin-top: 12px;
|
||||
color: #808591; }
|
||||
#maitre-content div[data-maitre-share-container] {
|
||||
padding-top: 50px; }
|
||||
|
||||
|
|
|
@ -1367,10 +1367,8 @@ a.maitre-widget-social {
|
|||
font-size: 1.1em;
|
||||
}
|
||||
p[data-maitre-instructions] {
|
||||
margin-top: 20px;
|
||||
color: #999;
|
||||
font-weight: 300;
|
||||
font-size: 1em;
|
||||
margin-top: 12px;
|
||||
color: #808591;
|
||||
}
|
||||
div[data-maitre-share-container] {
|
||||
padding-top: 50px;
|
||||
|
|
|
@ -100,6 +100,9 @@
|
|||
},
|
||||
|
||||
afterSuccess: function(data, form) {
|
||||
console.log(data);
|
||||
|
||||
jQuery("#maitre-people-behind-number").html("0");
|
||||
|
||||
jQuery("#maitre-share-plain-url").on('click', function () {
|
||||
var link = document.createRange();
|
||||
|
@ -117,16 +120,21 @@
|
|||
});
|
||||
|
||||
if (data.response == "subscriber_created") {
|
||||
|
||||
jQuery(".status-text").removeClass('shown');
|
||||
jQuery("#maitre-verification").html(
|
||||
"Remember to confirm your email to be added to the signup queue. <br /> Improve your position by referring your friends and spreading the word.");
|
||||
jQuery("#maitre-people-behind-number").html("0");
|
||||
jQuery("#maitre-share-plain-url").html("https://status.im/invite/" + data.code)
|
||||
jQuery("#maitre-share-plain-url").html("https://status.im/invite/" + data.code);
|
||||
jQuery(".gradient-text").empty();
|
||||
|
||||
ga('send', 'event', 'Waitlist', 'Sign Up', 'Waitlist');
|
||||
}
|
||||
|
||||
if (data.response == "subscriber_retrieved") {
|
||||
jQuery(".status-text").removeClass('shown');
|
||||
jQuery("#maitre-header").html("You're already on the Waitlist!");
|
||||
jQuery("#maitre-instructions").html("You'll be notifed when Status is ready to launch.<br> Your position on the waitlist is shown below. Get access sooner by spreading the word!");
|
||||
jQuery("#maitre-share-plain-url").html("https://status.im/invite/" + data.code);
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
|
@ -97,13 +97,13 @@
|
|||
<h1>Thanks for confirming your email.</h1>
|
||||
|
||||
<p>You'll be notifed when Status is ready to launch.<br /> Help us spread the word by inviting your friends! The more friends you invite, the sooner you'll get access: </p>
|
||||
|
||||
|
||||
<div class="footer-icons-social">
|
||||
<a id="emailLink" href="#" class="footer-icon icon-email" target="_blank"></a>
|
||||
|
||||
<a id="twitterLink" href="#" target="_blank" class="footer-icon icon-twitter"></a>
|
||||
|
||||
<a id="facebookLink" href="#" class="footer-icon icon-facebook"></a>
|
||||
<a id="facebookLink" href="#" target="_blank" class="footer-icon icon-facebook"></a>
|
||||
</div>
|
||||
|
||||
<p>Or share your unique link:</p><br/>
|
||||
|
|
Loading…
Reference in New Issue