function upgrade(why, what) { var exists = $('#__ug_modal'); if (exists.length) exists.remove(); $('body').append("
<\/p>\n
Billed monthly<\/p>\n\t\t\t <\/div>\n\t\t\t <\/label>\n\t\t\t\t\t\t\t \n\t\t\t \n\t\t\t \n\t\t\t\t \n\t\t\t\t Equals $99\/mo!<\/span>\n\t\t\t\t Yearly Deck<\/h3>\n\t\t\t\t \n\t\t\t\t <\/div>\n\t\t\t\t <\/div>\n\t\t\t\t \n\t\t\t\t\t $ 1188 \/ year<\/span><\/span><\/h4>\n\t\t\t\t\t\t\n\t\t\t\t\t Billed yearly<\/p>\n\t\t\t\t <\/div>\n\t\t\t\t\t\t\t\t\t \n\t\t\t <\/label>\n\t\t <\/div>\n\t\t <\/fieldset>\n\t\t \n \n\t\t \n\t\t Enter Payment Details:<\/h2>\t\n <\/div>\n <\/div>\n\t\t <\/div>\n \n\t \n\t\t\t\t\t\t \n\t\t\t\t\t\tHave a Promo Code?<\/h3>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tApply<\/a>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t \t \n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSubscribe & Go\n\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tLoading...<\/span>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<\/button>\n\t\t\n\t\t\t\t\t<\/span>Secured proudly by Stripe.<\/p>\n <\/div> \n\t <\/form>\n \n\t\t \n\t \n\t\t\t\tPlans include all<\/u> features. Cancel Anytime.<\/h3> \n\t\t\t\t\n\t\t\t\t\t<\/i>Unlimited Meetings<\/p> \n\t\t\t\t\t<\/i>Meeting Ratings<\/p>\n\t\t\t\t\t<\/i>Deck Analytics<\/p>\n\t\t\t\t\t\t\t<\/i>Booking Analytics<\/p>\n\t\t\t\t\t<\/i>Card Tagging<\/p>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\t<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t\t<\/i>Custom Tags<\/p>\n\t\t\t\t\t<\/i>Data Export<\/p>\n\t\t\t\t\t<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t\t<\/i>Automatic Reminders<\/p>\n\t\t\t\t<\/div>\n\t <\/div>\n\t <\/div>\n <\/div>\n <\/div>\n\t\t \n \n \n\t\t\tYour Deck is Upgraded!<\/h1>\n\t\t\t×<\/span>\n\t\t\t<\/button>\n\t\t<\/div> \n\n\t\t\n\t\t\tAll features are unlocked with this subscription<\/h3> \n\t\t\t\n\t\t\t\t<\/i>Unlimited Meetings<\/p> \n\t\t\t\t<\/i>Meeting Ratings<\/p>\n\t\t\t\t<\/i>Deck Analytics<\/p>\n\t\t\t\t\t\t<\/i>Booking Analytics<\/p>\n\t\t\t\t<\/i>Card Tagging<\/p>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t<\/i>Custom Tags<\/p>\n\t\t\t\t<\/i>Data Export<\/p>\n\t\t\t\t<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t<\/i>Automatic Reminders<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t\n\t\t\tOk, let's go!<\/a>\n\t\t<\/div>\n \n <\/div>\n<\/div>\n"); $('#__ug_why').text(why); var stripe = Stripe('pk_live_nYXSnmxlEmBldgJ0JHFT59ot'); var elements = stripe.elements(); var style = { base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', }, base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', } }; var cardElement = elements.create('card', { style: style }); cardElement.mount('#__ug_stripe'); var resultContainer = document.getElementById('__ug_stripe-error'); cardElement.addEventListener('change', function(event) { if (event.error) { resultContainer.innerHTML = event.error.message; } else { resultContainer.innerHTML = ''; } }); $('input[name="plan"]').change(function () { $('#__ug_promoinfo').text(''); $('#__ug_price10').text('$149'); $('#__ug_price11').text('$1188'); $('#__ug_price11b').text('$1188'); $('#__ug_pricetag').show(); }); document.getElementById('__ug_apply').addEventListener('click', function (e) { try { e.preventDefault(); var promocode = document.getElementById('__ug_promocode'); var code = promocode.value; var price = document.getElementById('__ug_price'+ $('[name="plan"]:checked').val()); var info = document.getElementById('__ug_priceinfo'); var promoinfo = document.getElementById('__ug_promoinfo'); promoinfo.classList.remove('alert'); promoinfo.classList.remove('alert-danger'); if (!code) { alert('You must enter a promo code.'); return; } fetch ('/pay/code/'+code+'/'+$('[name="plan"]:checked').val()) .then(function (res) { return res.json(); }) .then(function (data) { promoinfo.innerHTML = ''; info.innerHTML = ''; if (data.invalid) { promoinfo.classList.add('alert'); promoinfo.classList.add('alert-danger'); promoinfo.innerHTML = 'Invalid promo code.'; promocode.value = ''; } else { price.innerHTML = '$'+parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); var baseprice = parseFloat(data.baseprice).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); $('#__ug_price'+$('[name="plan"]:checked').val()+'b').text(parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2})); if (data.cycles == -1) { info.innerHTML = 'Promotional price applies forever.'; } else if (data.cycles == 1) { info.innerHTML = 'Promotional price applies for first month, then ' + baseprice + ' / month'; } else { info.innerHTML = 'Promotional price applies for '+data.cycles+' months, then ' + baseprice + ' / month'; } $('#__ug_pricetag').hide() } }); } catch (e) { alert(e); } }); var form = document.getElementById('__ug_pay-form'); form.addEventListener('submit', function(e) { e.preventDefault(); document.getElementById('__ug_pay_button').style.display='none'; document.getElementById('__ug_spinner').style.display=''; stripe.createToken(cardElement).then(function(result) { if (result.error) { // Inform the user if there was an error resultContainer.innerHTML = result.error.message; document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; } else { document.getElementById('__ug_token').value = result.token.id $.post('/upgrade-deck', {token: result.token.id, tier: $('[name="plan"]:checked').val(), promocode: $('#__ug_promocode').val() }, function (errors) { if (errors.length) { document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; resultContainer.innerHTML = errors.join(""); //alert(errors.join("\n")); } else { $('#__ug_step1').hide(); $('#__ug_step2').fadeIn(); } gtag("event", "deck_upgrade_complete", { "event_category" : "deck_pay", "event_label" : "added_payment", }); },'json'); } }); }); // scroll to top of page $('html, body').animate({ scrollTop: 0 }, 'fast'); $('#__ug_modal').modal('show'); } document.write('');
Billed yearly<\/p>\n\t\t\t\t <\/div>\n\t\t\t\t\t\t\t\t\t \n\t\t\t <\/label>\n\t\t <\/div>\n\t\t <\/fieldset>\n\t\t \n \n\t\t
<\/span>Secured proudly by Stripe.<\/p>\n <\/div> \n\t <\/form>\n \n\t\t \n\t \n\t\t\t\tPlans include all<\/u> features. Cancel Anytime.<\/h3> \n\t\t\t\t\n\t\t\t\t\t<\/i>Unlimited Meetings<\/p> \n\t\t\t\t\t<\/i>Meeting Ratings<\/p>\n\t\t\t\t\t<\/i>Deck Analytics<\/p>\n\t\t\t\t\t\t\t<\/i>Booking Analytics<\/p>\n\t\t\t\t\t<\/i>Card Tagging<\/p>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\t<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t\t<\/i>Custom Tags<\/p>\n\t\t\t\t\t<\/i>Data Export<\/p>\n\t\t\t\t\t<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t\t<\/i>Automatic Reminders<\/p>\n\t\t\t\t<\/div>\n\t <\/div>\n\t <\/div>\n <\/div>\n <\/div>\n\t\t \n \n \n\t\t\tYour Deck is Upgraded!<\/h1>\n\t\t\t×<\/span>\n\t\t\t<\/button>\n\t\t<\/div> \n\n\t\t\n\t\t\tAll features are unlocked with this subscription<\/h3> \n\t\t\t\n\t\t\t\t<\/i>Unlimited Meetings<\/p> \n\t\t\t\t<\/i>Meeting Ratings<\/p>\n\t\t\t\t<\/i>Deck Analytics<\/p>\n\t\t\t\t\t\t<\/i>Booking Analytics<\/p>\n\t\t\t\t<\/i>Card Tagging<\/p>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t<\/i>Custom Tags<\/p>\n\t\t\t\t<\/i>Data Export<\/p>\n\t\t\t\t<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t<\/i>Automatic Reminders<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t\n\t\t\tOk, let's go!<\/a>\n\t\t<\/div>\n \n <\/div>\n<\/div>\n"); $('#__ug_why').text(why); var stripe = Stripe('pk_live_nYXSnmxlEmBldgJ0JHFT59ot'); var elements = stripe.elements(); var style = { base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', }, base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', } }; var cardElement = elements.create('card', { style: style }); cardElement.mount('#__ug_stripe'); var resultContainer = document.getElementById('__ug_stripe-error'); cardElement.addEventListener('change', function(event) { if (event.error) { resultContainer.innerHTML = event.error.message; } else { resultContainer.innerHTML = ''; } }); $('input[name="plan"]').change(function () { $('#__ug_promoinfo').text(''); $('#__ug_price10').text('$149'); $('#__ug_price11').text('$1188'); $('#__ug_price11b').text('$1188'); $('#__ug_pricetag').show(); }); document.getElementById('__ug_apply').addEventListener('click', function (e) { try { e.preventDefault(); var promocode = document.getElementById('__ug_promocode'); var code = promocode.value; var price = document.getElementById('__ug_price'+ $('[name="plan"]:checked').val()); var info = document.getElementById('__ug_priceinfo'); var promoinfo = document.getElementById('__ug_promoinfo'); promoinfo.classList.remove('alert'); promoinfo.classList.remove('alert-danger'); if (!code) { alert('You must enter a promo code.'); return; } fetch ('/pay/code/'+code+'/'+$('[name="plan"]:checked').val()) .then(function (res) { return res.json(); }) .then(function (data) { promoinfo.innerHTML = ''; info.innerHTML = ''; if (data.invalid) { promoinfo.classList.add('alert'); promoinfo.classList.add('alert-danger'); promoinfo.innerHTML = 'Invalid promo code.'; promocode.value = ''; } else { price.innerHTML = '$'+parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); var baseprice = parseFloat(data.baseprice).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); $('#__ug_price'+$('[name="plan"]:checked').val()+'b').text(parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2})); if (data.cycles == -1) { info.innerHTML = 'Promotional price applies forever.'; } else if (data.cycles == 1) { info.innerHTML = 'Promotional price applies for first month, then ' + baseprice + ' / month'; } else { info.innerHTML = 'Promotional price applies for '+data.cycles+' months, then ' + baseprice + ' / month'; } $('#__ug_pricetag').hide() } }); } catch (e) { alert(e); } }); var form = document.getElementById('__ug_pay-form'); form.addEventListener('submit', function(e) { e.preventDefault(); document.getElementById('__ug_pay_button').style.display='none'; document.getElementById('__ug_spinner').style.display=''; stripe.createToken(cardElement).then(function(result) { if (result.error) { // Inform the user if there was an error resultContainer.innerHTML = result.error.message; document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; } else { document.getElementById('__ug_token').value = result.token.id $.post('/upgrade-deck', {token: result.token.id, tier: $('[name="plan"]:checked').val(), promocode: $('#__ug_promocode').val() }, function (errors) { if (errors.length) { document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; resultContainer.innerHTML = errors.join(""); //alert(errors.join("\n")); } else { $('#__ug_step1').hide(); $('#__ug_step2').fadeIn(); } gtag("event", "deck_upgrade_complete", { "event_category" : "deck_pay", "event_label" : "added_payment", }); },'json'); } }); }); // scroll to top of page $('html, body').animate({ scrollTop: 0 }, 'fast'); $('#__ug_modal').modal('show'); } document.write('');
<\/i>Unlimited Meetings<\/p> \n\t\t\t\t\t
<\/i>Meeting Ratings<\/p>\n\t\t\t\t\t
<\/i>Deck Analytics<\/p>\n\t\t\t\t\t\t\t
<\/i>Booking Analytics<\/p>\n\t\t\t\t\t
<\/i>Card Tagging<\/p>\n\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\t<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t\t<\/i>Custom Tags<\/p>\n\t\t\t\t\t<\/i>Data Export<\/p>\n\t\t\t\t\t<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t\t<\/i>Automatic Reminders<\/p>\n\t\t\t\t<\/div>\n\t <\/div>\n\t <\/div>\n <\/div>\n <\/div>\n\t\t \n \n \n\t\t\tYour Deck is Upgraded!<\/h1>\n\t\t\t×<\/span>\n\t\t\t<\/button>\n\t\t<\/div> \n\n\t\t\n\t\t\tAll features are unlocked with this subscription<\/h3> \n\t\t\t\n\t\t\t\t<\/i>Unlimited Meetings<\/p> \n\t\t\t\t<\/i>Meeting Ratings<\/p>\n\t\t\t\t<\/i>Deck Analytics<\/p>\n\t\t\t\t\t\t<\/i>Booking Analytics<\/p>\n\t\t\t\t<\/i>Card Tagging<\/p>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t<\/i>Custom Tags<\/p>\n\t\t\t\t<\/i>Data Export<\/p>\n\t\t\t\t<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t<\/i>Automatic Reminders<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t\n\t\t\tOk, let's go!<\/a>\n\t\t<\/div>\n \n <\/div>\n<\/div>\n"); $('#__ug_why').text(why); var stripe = Stripe('pk_live_nYXSnmxlEmBldgJ0JHFT59ot'); var elements = stripe.elements(); var style = { base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', }, base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', } }; var cardElement = elements.create('card', { style: style }); cardElement.mount('#__ug_stripe'); var resultContainer = document.getElementById('__ug_stripe-error'); cardElement.addEventListener('change', function(event) { if (event.error) { resultContainer.innerHTML = event.error.message; } else { resultContainer.innerHTML = ''; } }); $('input[name="plan"]').change(function () { $('#__ug_promoinfo').text(''); $('#__ug_price10').text('$149'); $('#__ug_price11').text('$1188'); $('#__ug_price11b').text('$1188'); $('#__ug_pricetag').show(); }); document.getElementById('__ug_apply').addEventListener('click', function (e) { try { e.preventDefault(); var promocode = document.getElementById('__ug_promocode'); var code = promocode.value; var price = document.getElementById('__ug_price'+ $('[name="plan"]:checked').val()); var info = document.getElementById('__ug_priceinfo'); var promoinfo = document.getElementById('__ug_promoinfo'); promoinfo.classList.remove('alert'); promoinfo.classList.remove('alert-danger'); if (!code) { alert('You must enter a promo code.'); return; } fetch ('/pay/code/'+code+'/'+$('[name="plan"]:checked').val()) .then(function (res) { return res.json(); }) .then(function (data) { promoinfo.innerHTML = ''; info.innerHTML = ''; if (data.invalid) { promoinfo.classList.add('alert'); promoinfo.classList.add('alert-danger'); promoinfo.innerHTML = 'Invalid promo code.'; promocode.value = ''; } else { price.innerHTML = '$'+parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); var baseprice = parseFloat(data.baseprice).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); $('#__ug_price'+$('[name="plan"]:checked').val()+'b').text(parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2})); if (data.cycles == -1) { info.innerHTML = 'Promotional price applies forever.'; } else if (data.cycles == 1) { info.innerHTML = 'Promotional price applies for first month, then ' + baseprice + ' / month'; } else { info.innerHTML = 'Promotional price applies for '+data.cycles+' months, then ' + baseprice + ' / month'; } $('#__ug_pricetag').hide() } }); } catch (e) { alert(e); } }); var form = document.getElementById('__ug_pay-form'); form.addEventListener('submit', function(e) { e.preventDefault(); document.getElementById('__ug_pay_button').style.display='none'; document.getElementById('__ug_spinner').style.display=''; stripe.createToken(cardElement).then(function(result) { if (result.error) { // Inform the user if there was an error resultContainer.innerHTML = result.error.message; document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; } else { document.getElementById('__ug_token').value = result.token.id $.post('/upgrade-deck', {token: result.token.id, tier: $('[name="plan"]:checked').val(), promocode: $('#__ug_promocode').val() }, function (errors) { if (errors.length) { document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; resultContainer.innerHTML = errors.join(""); //alert(errors.join("\n")); } else { $('#__ug_step1').hide(); $('#__ug_step2').fadeIn(); } gtag("event", "deck_upgrade_complete", { "event_category" : "deck_pay", "event_label" : "added_payment", }); },'json'); } }); }); // scroll to top of page $('html, body').animate({ scrollTop: 0 }, 'fast'); $('#__ug_modal').modal('show'); } document.write('');
<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t\t
<\/i>Custom Tags<\/p>\n\t\t\t\t\t
<\/i>Data Export<\/p>\n\t\t\t\t\t
<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t\t
<\/i>Automatic Reminders<\/p>\n\t\t\t\t<\/div>\n\t <\/div>\n\t <\/div>\n <\/div>\n <\/div>\n\t\t \n \n \n\t\t\tYour Deck is Upgraded!<\/h1>\n\t\t\t×<\/span>\n\t\t\t<\/button>\n\t\t<\/div> \n\n\t\t\n\t\t\tAll features are unlocked with this subscription<\/h3> \n\t\t\t\n\t\t\t\t<\/i>Unlimited Meetings<\/p> \n\t\t\t\t<\/i>Meeting Ratings<\/p>\n\t\t\t\t<\/i>Deck Analytics<\/p>\n\t\t\t\t\t\t<\/i>Booking Analytics<\/p>\n\t\t\t\t<\/i>Card Tagging<\/p>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t<\/i>Custom Tags<\/p>\n\t\t\t\t<\/i>Data Export<\/p>\n\t\t\t\t<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t<\/i>Automatic Reminders<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t\n\t\t\tOk, let's go!<\/a>\n\t\t<\/div>\n \n <\/div>\n<\/div>\n"); $('#__ug_why').text(why); var stripe = Stripe('pk_live_nYXSnmxlEmBldgJ0JHFT59ot'); var elements = stripe.elements(); var style = { base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', }, base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', } }; var cardElement = elements.create('card', { style: style }); cardElement.mount('#__ug_stripe'); var resultContainer = document.getElementById('__ug_stripe-error'); cardElement.addEventListener('change', function(event) { if (event.error) { resultContainer.innerHTML = event.error.message; } else { resultContainer.innerHTML = ''; } }); $('input[name="plan"]').change(function () { $('#__ug_promoinfo').text(''); $('#__ug_price10').text('$149'); $('#__ug_price11').text('$1188'); $('#__ug_price11b').text('$1188'); $('#__ug_pricetag').show(); }); document.getElementById('__ug_apply').addEventListener('click', function (e) { try { e.preventDefault(); var promocode = document.getElementById('__ug_promocode'); var code = promocode.value; var price = document.getElementById('__ug_price'+ $('[name="plan"]:checked').val()); var info = document.getElementById('__ug_priceinfo'); var promoinfo = document.getElementById('__ug_promoinfo'); promoinfo.classList.remove('alert'); promoinfo.classList.remove('alert-danger'); if (!code) { alert('You must enter a promo code.'); return; } fetch ('/pay/code/'+code+'/'+$('[name="plan"]:checked').val()) .then(function (res) { return res.json(); }) .then(function (data) { promoinfo.innerHTML = ''; info.innerHTML = ''; if (data.invalid) { promoinfo.classList.add('alert'); promoinfo.classList.add('alert-danger'); promoinfo.innerHTML = 'Invalid promo code.'; promocode.value = ''; } else { price.innerHTML = '$'+parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); var baseprice = parseFloat(data.baseprice).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); $('#__ug_price'+$('[name="plan"]:checked').val()+'b').text(parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2})); if (data.cycles == -1) { info.innerHTML = 'Promotional price applies forever.'; } else if (data.cycles == 1) { info.innerHTML = 'Promotional price applies for first month, then ' + baseprice + ' / month'; } else { info.innerHTML = 'Promotional price applies for '+data.cycles+' months, then ' + baseprice + ' / month'; } $('#__ug_pricetag').hide() } }); } catch (e) { alert(e); } }); var form = document.getElementById('__ug_pay-form'); form.addEventListener('submit', function(e) { e.preventDefault(); document.getElementById('__ug_pay_button').style.display='none'; document.getElementById('__ug_spinner').style.display=''; stripe.createToken(cardElement).then(function(result) { if (result.error) { // Inform the user if there was an error resultContainer.innerHTML = result.error.message; document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; } else { document.getElementById('__ug_token').value = result.token.id $.post('/upgrade-deck', {token: result.token.id, tier: $('[name="plan"]:checked').val(), promocode: $('#__ug_promocode').val() }, function (errors) { if (errors.length) { document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; resultContainer.innerHTML = errors.join(""); //alert(errors.join("\n")); } else { $('#__ug_step1').hide(); $('#__ug_step2').fadeIn(); } gtag("event", "deck_upgrade_complete", { "event_category" : "deck_pay", "event_label" : "added_payment", }); },'json'); } }); }); // scroll to top of page $('html, body').animate({ scrollTop: 0 }, 'fast'); $('#__ug_modal').modal('show'); } document.write('');
<\/i>Unlimited Meetings<\/p> \n\t\t\t\t
<\/i>Meeting Ratings<\/p>\n\t\t\t\t
<\/i>Deck Analytics<\/p>\n\t\t\t\t\t\t
<\/i>Booking Analytics<\/p>\n\t\t\t\t
<\/i>Card Tagging<\/p>\n\t\t\t<\/div>\n\t\t\t\n\t\t\t\t<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t<\/i>Custom Tags<\/p>\n\t\t\t\t<\/i>Data Export<\/p>\n\t\t\t\t<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t<\/i>Automatic Reminders<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t\n\t\t\tOk, let's go!<\/a>\n\t\t<\/div>\n \n <\/div>\n<\/div>\n"); $('#__ug_why').text(why); var stripe = Stripe('pk_live_nYXSnmxlEmBldgJ0JHFT59ot'); var elements = stripe.elements(); var style = { base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', }, base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', } }; var cardElement = elements.create('card', { style: style }); cardElement.mount('#__ug_stripe'); var resultContainer = document.getElementById('__ug_stripe-error'); cardElement.addEventListener('change', function(event) { if (event.error) { resultContainer.innerHTML = event.error.message; } else { resultContainer.innerHTML = ''; } }); $('input[name="plan"]').change(function () { $('#__ug_promoinfo').text(''); $('#__ug_price10').text('$149'); $('#__ug_price11').text('$1188'); $('#__ug_price11b').text('$1188'); $('#__ug_pricetag').show(); }); document.getElementById('__ug_apply').addEventListener('click', function (e) { try { e.preventDefault(); var promocode = document.getElementById('__ug_promocode'); var code = promocode.value; var price = document.getElementById('__ug_price'+ $('[name="plan"]:checked').val()); var info = document.getElementById('__ug_priceinfo'); var promoinfo = document.getElementById('__ug_promoinfo'); promoinfo.classList.remove('alert'); promoinfo.classList.remove('alert-danger'); if (!code) { alert('You must enter a promo code.'); return; } fetch ('/pay/code/'+code+'/'+$('[name="plan"]:checked').val()) .then(function (res) { return res.json(); }) .then(function (data) { promoinfo.innerHTML = ''; info.innerHTML = ''; if (data.invalid) { promoinfo.classList.add('alert'); promoinfo.classList.add('alert-danger'); promoinfo.innerHTML = 'Invalid promo code.'; promocode.value = ''; } else { price.innerHTML = '$'+parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); var baseprice = parseFloat(data.baseprice).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); $('#__ug_price'+$('[name="plan"]:checked').val()+'b').text(parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2})); if (data.cycles == -1) { info.innerHTML = 'Promotional price applies forever.'; } else if (data.cycles == 1) { info.innerHTML = 'Promotional price applies for first month, then ' + baseprice + ' / month'; } else { info.innerHTML = 'Promotional price applies for '+data.cycles+' months, then ' + baseprice + ' / month'; } $('#__ug_pricetag').hide() } }); } catch (e) { alert(e); } }); var form = document.getElementById('__ug_pay-form'); form.addEventListener('submit', function(e) { e.preventDefault(); document.getElementById('__ug_pay_button').style.display='none'; document.getElementById('__ug_spinner').style.display=''; stripe.createToken(cardElement).then(function(result) { if (result.error) { // Inform the user if there was an error resultContainer.innerHTML = result.error.message; document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; } else { document.getElementById('__ug_token').value = result.token.id $.post('/upgrade-deck', {token: result.token.id, tier: $('[name="plan"]:checked').val(), promocode: $('#__ug_promocode').val() }, function (errors) { if (errors.length) { document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; resultContainer.innerHTML = errors.join(""); //alert(errors.join("\n")); } else { $('#__ug_step1').hide(); $('#__ug_step2').fadeIn(); } gtag("event", "deck_upgrade_complete", { "event_category" : "deck_pay", "event_label" : "added_payment", }); },'json'); } }); }); // scroll to top of page $('html, body').animate({ scrollTop: 0 }, 'fast'); $('#__ug_modal').modal('show'); } document.write('');
<\/i>Custom Logo<\/p>\n\t\t\t\t\t\t
<\/i>Custom Tags<\/p>\n\t\t\t\t
<\/i>Data Export<\/p>\n\t\t\t\t
<\/i>Mentee\/Visitor Data<\/p>\n\t\t\t\t
<\/i>Automatic Reminders<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t\n\t\t\tOk, let's go!<\/a>\n\t\t<\/div>\n \n <\/div>\n<\/div>\n"); $('#__ug_why').text(why); var stripe = Stripe('pk_live_nYXSnmxlEmBldgJ0JHFT59ot'); var elements = stripe.elements(); var style = { base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', }, base: { fontWeight: 400, fontFamily: 'Roboto, Open Sans, Segoe UI, sans-serif', fontSize: '16px', lineHeight: '1.4', color: '#555', backgroundColor: '#fff', '::placeholder': { color: '#888', }, }, invalid: { color: '#eb1c26', } }; var cardElement = elements.create('card', { style: style }); cardElement.mount('#__ug_stripe'); var resultContainer = document.getElementById('__ug_stripe-error'); cardElement.addEventListener('change', function(event) { if (event.error) { resultContainer.innerHTML = event.error.message; } else { resultContainer.innerHTML = ''; } }); $('input[name="plan"]').change(function () { $('#__ug_promoinfo').text(''); $('#__ug_price10').text('$149'); $('#__ug_price11').text('$1188'); $('#__ug_price11b').text('$1188'); $('#__ug_pricetag').show(); }); document.getElementById('__ug_apply').addEventListener('click', function (e) { try { e.preventDefault(); var promocode = document.getElementById('__ug_promocode'); var code = promocode.value; var price = document.getElementById('__ug_price'+ $('[name="plan"]:checked').val()); var info = document.getElementById('__ug_priceinfo'); var promoinfo = document.getElementById('__ug_promoinfo'); promoinfo.classList.remove('alert'); promoinfo.classList.remove('alert-danger'); if (!code) { alert('You must enter a promo code.'); return; } fetch ('/pay/code/'+code+'/'+$('[name="plan"]:checked').val()) .then(function (res) { return res.json(); }) .then(function (data) { promoinfo.innerHTML = ''; info.innerHTML = ''; if (data.invalid) { promoinfo.classList.add('alert'); promoinfo.classList.add('alert-danger'); promoinfo.innerHTML = 'Invalid promo code.'; promocode.value = ''; } else { price.innerHTML = '$'+parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); var baseprice = parseFloat(data.baseprice).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2}); $('#__ug_price'+$('[name="plan"]:checked').val()+'b').text(parseFloat(data.price).toLocaleString(undefined, {'minimumFractionDigits':2,'maximumFractionDigits':2})); if (data.cycles == -1) { info.innerHTML = 'Promotional price applies forever.'; } else if (data.cycles == 1) { info.innerHTML = 'Promotional price applies for first month, then ' + baseprice + ' / month'; } else { info.innerHTML = 'Promotional price applies for '+data.cycles+' months, then ' + baseprice + ' / month'; } $('#__ug_pricetag').hide() } }); } catch (e) { alert(e); } }); var form = document.getElementById('__ug_pay-form'); form.addEventListener('submit', function(e) { e.preventDefault(); document.getElementById('__ug_pay_button').style.display='none'; document.getElementById('__ug_spinner').style.display=''; stripe.createToken(cardElement).then(function(result) { if (result.error) { // Inform the user if there was an error resultContainer.innerHTML = result.error.message; document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; } else { document.getElementById('__ug_token').value = result.token.id $.post('/upgrade-deck', {token: result.token.id, tier: $('[name="plan"]:checked').val(), promocode: $('#__ug_promocode').val() }, function (errors) { if (errors.length) { document.getElementById('__ug_pay_button').style.display=''; document.getElementById('__ug_spinner').style.display='none'; resultContainer.innerHTML = errors.join(""); //alert(errors.join("\n")); } else { $('#__ug_step1').hide(); $('#__ug_step2').fadeIn(); } gtag("event", "deck_upgrade_complete", { "event_category" : "deck_pay", "event_label" : "added_payment", }); },'json'); } }); }); // scroll to top of page $('html, body').animate({ scrollTop: 0 }, 'fast'); $('#__ug_modal').modal('show'); } document.write('');