This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
landing.a41866d03845c8d0e2b3.js
1 lines (1 loc) · 5.96 KB
/
landing.a41866d03845c8d0e2b3.js
1
!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t=n();for(var o in t)("object"==typeof exports?exports:e)[o]=t[o]}}(this,function(){return function(e){function n(o){if(t[o])return t[o].exports;var a=t[o]={exports:{},id:o,loaded:!1};return e[o].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}var t={};return n.m=e,n.c=t,n.p="/",n(0)}([function(e,n,t){"use strict";function o(e){var n=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return n.test(e)}var a=jQuery(document);a.ready(function(e){function n(){r.scrollTop()>50?u.addClass("NavBg"):u.removeClass("NavBg")}function t(n){var t=["twitter","facebook","googleplus","pinterest","email"],o={twitter:{via:"rdvoo",hashtags:"rdvoo"}},a="I just subscribed to this new app! We should use it next time we plan something!",i={url:"https://1pd8.app.link/cXtb501wVs",text:a,showLabel:!1,showCount:!1,shares:t.map(function(t){return e.extend({share:t,url:n[t]},o[t])})};return i}function o(e){return e.indexOf("facebook")>-1?"Facebook":e.indexOf("email")>-1?"Email":e.indexOf("pinterest")>-1?"Pinterest":e.indexOf("googleplus")>-1?"Google":e.indexOf("twitter")>-1?"Twitter":null}var i=new WOW({mobile:!1});i.init();var r=e(window);e(".page-scroll").on("click",function(n){var t=e(this);e("html, body").stop().animate({scrollTop:e(t.attr("href")).offset().top},1500,"easeInOutExpo"),n.preventDefault()}),a.on("click",".navbar-collapse.in",function(n){e(n.target).is("a")&&e(this).collapse("hide")}),a.on("click","#android",function(n){e(n.target).is("a")&&(e(this).collapse("hide"),e("#android").hide(),e(".waitinglistForm").fadeIn(1e3))});var u=e(".sticky-navigation");n(),r.scroll(n);var s=void 0,l=e("#scrollspy-nav");l.on("activate.bs.scrollspy",function(e){var n=l.find(".active a").attr("href");s&&(clearTimeout(s),s=null),s=setTimeout(function(){var e=l.find(".active a").attr("href");s=null,n===e&&window.ga("send","pageview",n)},300)}),a.on("click",".navbar-nav",function(n){window.ga("send","event","navigation",e(n.target).attr("href"))}),a.on("click","#download-top",function(e){window.ga("send","event","click","download","top")}),a.on("click","#download-bottom",function(e){window.ga("send","event","click","download","bottom")}),a.on("click","#android",function(e){window.ga("send","event","click","android-user")});var d={twitter:"https://1pd8.app.link/wLgpeU6nXs",facebook:"https://1pd8.app.link/ew3FgU6nXs",googleplus:"https://1pd8.app.link/DPS6fU6nXs",pinterest:"https://1pd8.app.link/kXF7dU6nXs",email:"https://1pd8.app.link/TW5PdU6nXs"},c={twitter:"https://1pd8.app.link/G7us6T6nXs",facebook:"https://1pd8.app.link/Jwh99T6nXs",googleplus:"https://1pd8.app.link/76tydU6nXs",pinterest:"https://1pd8.app.link/T5uS7T6nXs",email:"https://1pd8.app.link/G3R6fU6nXs"};e("#shareIconsCountInside").jsSocials(t(c)),e("#shareIconsAndroid").jsSocials(t(d));var F=function(n,t,i){var r=function(n){var a=e(n.target),r=a.parents(".jssocials-share"),u=r&&r[0]&&o(r[0].className);u&&window.ga("send","social",u,t,i[u.toLowerCase()])};a.on("click",n,r)};F("#shareIconsAndroid","share-android",d),F("#shareIconsCountInside","share",c)}),a.on("submit","#contactForm",function(e){e.preventDefault();var n=jQuery("#name").val(),t=jQuery("#email").val(),a=jQuery("#message").val(),i="https://api.letsroundup.com/feedback";return o(t)&&a.length>1&&n.length>1?(window.ga("send","event","click","send-feedback"),jQuery.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:i,data:JSON.stringify({name:n,email:t,message:a}),success:function(){jQuery(".success").fadeIn(1e3),jQuery(".error").hide()}})):(jQuery(".error").fadeIn(1e3),jQuery(".success").hide()),!1}),a.on("submit","#waitlisted",function(e){function n(e){jQuery(".subscription-success").html('<i class="icon_close_alt2"></i><br/>'+e).fadeIn(1e3),jQuery("#androidShare").fadeIn(1e3),jQuery(".subscription-error").hide()}function t(e){jQuery(".subscription-error").html('<i class="icon_close_alt2"></i><br/>'+e).fadeIn(1e3),jQuery("#androidShare").hide(),jQuery(".subscription-success").hide()}e.preventDefault();var a=jQuery("#subscriber-email").val();if(o(a)){window.ga("send","event","click","waitlist");var i="Thanks! We'll email you when the Android app is available.";n(i)}else t("The email is not valid.");return!1}),a.on("submit","#text-app",function(e){function n(e){jQuery(".download-success").html('<i class="icon_close_alt2"></i><br/>'+e).fadeIn(1e3),jQuery(".download-error").hide()}function t(e){jQuery(".download-error").html('<i class="icon_close_alt2"></i><br/>'+e).fadeIn(1e3),jQuery(".download-success").hide()}e.preventDefault();var o=jQuery("#download-phoneNumber").val(),a="https://api.letsroundup.com/textapp";return o?(window.ga("send","event","click","download","text"),jQuery.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:a,data:JSON.stringify({phoneNumber:o}),success:function(e){var t="Done. You should receive the link in the next minute.";n(t)},error:function(e){t(e&&e.responseJSON.error.indexOf("prop phoneNumber parse failed")>-1?"The phone number is not valid.":"Something went wrong. Try again later.")}})):t("The phone number is not valid."),!1})}])});