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-weight: 400;
|
||||||
font-size: 1.1em; }
|
font-size: 1.1em; }
|
||||||
#maitre-content p[data-maitre-instructions] {
|
#maitre-content p[data-maitre-instructions] {
|
||||||
margin-top: 20px;
|
margin-top: 12px;
|
||||||
color: #999;
|
color: #808591; }
|
||||||
font-weight: 300;
|
|
||||||
font-size: 1em; }
|
|
||||||
#maitre-content div[data-maitre-share-container] {
|
#maitre-content div[data-maitre-share-container] {
|
||||||
padding-top: 50px; }
|
padding-top: 50px; }
|
||||||
|
|
||||||
|
|
|
@ -1367,10 +1367,8 @@ a.maitre-widget-social {
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
}
|
}
|
||||||
p[data-maitre-instructions] {
|
p[data-maitre-instructions] {
|
||||||
margin-top: 20px;
|
margin-top: 12px;
|
||||||
color: #999;
|
color: #808591;
|
||||||
font-weight: 300;
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
}
|
||||||
div[data-maitre-share-container] {
|
div[data-maitre-share-container] {
|
||||||
padding-top: 50px;
|
padding-top: 50px;
|
||||||
|
|
|
@ -100,6 +100,9 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
afterSuccess: function(data, form) {
|
afterSuccess: function(data, form) {
|
||||||
|
console.log(data);
|
||||||
|
|
||||||
|
jQuery("#maitre-people-behind-number").html("0");
|
||||||
|
|
||||||
jQuery("#maitre-share-plain-url").on('click', function () {
|
jQuery("#maitre-share-plain-url").on('click', function () {
|
||||||
var link = document.createRange();
|
var link = document.createRange();
|
||||||
|
@ -117,16 +120,21 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
if (data.response == "subscriber_created") {
|
if (data.response == "subscriber_created") {
|
||||||
|
|
||||||
jQuery(".status-text").removeClass('shown');
|
jQuery(".status-text").removeClass('shown');
|
||||||
jQuery("#maitre-verification").html(
|
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.");
|
"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();
|
jQuery(".gradient-text").empty();
|
||||||
|
|
||||||
ga('send', 'event', 'Waitlist', 'Sign Up', 'Waitlist');
|
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);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
<a id="twitterLink" href="#" target="_blank" class="footer-icon icon-twitter"></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>
|
</div>
|
||||||
|
|
||||||
<p>Or share your unique link:</p><br/>
|
<p>Or share your unique link:</p><br/>
|
||||||
|
|
Loading…
Reference in New Issue