From c8fab0ec6b62389be0ec418b30aebe0e21e74867 Mon Sep 17 00:00:00 2001 From: G14 Date: Sun, 18 Sep 2016 21:43:08 +0500 Subject: [PATCH] replace maitre link url with status on waitlist --- src/waitlist.html | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/src/waitlist.html b/src/waitlist.html index 4e3838b..7c25a30 100644 --- a/src/waitlist.html +++ b/src/waitlist.html @@ -101,29 +101,30 @@ afterSuccess: function(data, form) { + jQuery("#maitre-share-plain-url").on('click', function () { + var link = document.createRange(); + link.selectNode(this); + document.getSelection().addRange(link); + var copied = document.execCommand('copy'); + var text = this.innerHTML; + if(copied) { + var copytext = 'Copied to clipboard'; + jQuery("#maitre-share-plain-url").html(copytext); + setTimeout(function(){ + jQuery("#maitre-share-plain-url").html(text); + },500) + } + }); + 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.
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(".gradient-text").empty(); - jQuery("#maitre-share-plain-url").on('click', function () { - var link = document.createRange(); - link.selectNode(this); - document.getSelection().addRange(link); - var copied = document.execCommand('copy'); - var text = this.innerHTML; - if(copied) { - var copytext = 'Copied to clipboard'; - jQuery("#maitre-share-plain-url").html(copytext); - setTimeout(function(){ - jQuery("#maitre-share-plain-url").html(text); - },1000) - } - }); - ga('send', 'event', 'Waitlist', 'Sign Up', 'Waitlist'); } },