Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% load staticfiles %}
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Sign up form | FOODMATTERS® TV</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0" />
- <script type="text/javascript">var jslang='EN';</script>
- <link href="//fonts.googleapis.com/css?family=Shadows+Into+Light|Open+Sans:400,600,700,800|Open+Sans+Condensed:700" rel="stylesheet" type="text/css" />
- <link href="{% static 'stylesheets/style.css' %}" rel="stylesheet" type="text/css" />
- <link href="{% static "css/columns.css" %}" rel="stylesheet" type="text/css" />
- <link href="{% static "css/base.css" %}" rel="stylesheet" type="text/css" />
- <link href="{% static "css/main.css" %}" rel="stylesheet" type="text/css" />
- <link href="{% static "stylesheets/join-today.css" %}" rel="stylesheet" type="text/css" />
- <link href="{% static "css/font-awesome.min.css" %}" rel="stylesheet">
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
- <script src="{% static 'js/modernizr-custom.js' %}"></script>
- <script src="{% static 'js/plugins.js' %}"></script>
- <!-- Start Visual Website Optimizer Synchronous Code -->
- <script type='text/javascript'>
- var _vis_opt_account_id = 67920;
- var _vis_opt_protocol = (('https:' == document.location.protocol) ? 'https://' : 'http://');
- document.write('<s' + 'cript src="' + _vis_opt_protocol +
- 'dev.visualwebsiteoptimizer.com/deploy/js_visitor_settings.php?v=1&a='+_vis_opt_account_id+'&url='
- +encodeURIComponent(document.URL)+'&random='+Math.random()+'" type="text/javascript">' + '<\/s' + 'cript>');
- </script>
- <script type='text/javascript'>
- if(typeof(_vis_opt_settings_loaded) == "boolean") { document.write('<s' + 'cript src="' + _vis_opt_protocol +
- 'd5phz18u4wuww.cloudfront.net/vis_opt.js" type="text/javascript">' + '<\/s' + 'cript>'); }
- // if your site already has jQuery 1.4.2, replace vis_opt.js with vis_opt_no_jquery.js above
- </script>
- <script type='text/javascript'>
- if(typeof(_vis_opt_settings_loaded) == "boolean" && typeof(_vis_opt_top_initialize) == "function") {
- _vis_opt_top_initialize(); vwo_$(document).ready(function() { _vis_opt_bottom_initialize(); });
- }
- </script>
- <!-- End Visual Website Optimizer Synchronous Code -->
- <style type="text/css">
- .form-control {
- height: auto;
- margin-bottom: 0;
- }
- a:active, a:hover, a:focus {
- outline: 0;
- color: #fff;
- }
- body {
- background: #edecec;
- }
- .nav_logo {
- height: 40px;
- margin: 0;
- vertical-align: middle;
- display: inline-block;
- }
- .wrap {
- width: 100%;
- padding: 0px;
- }
- #templateNoNav #pageHeader {
- height: 185px;
- }
- section#user-details, section#fmtv-plan, section#billing-details {
- padding: 40px 0px;
- }
- section#user-details {
- padding-top:15px;
- }
- .joinSubHead {
- margin-bottom: 20px;
- }
- .joinSubHead.step {
- margin-bottom: 0px;
- }
- @media (max-width:991px) {
- .joinSubHead {
- font-size: 1em;
- }
- #registration-page h2 {
- font-size: 30px;
- }
- .submit-section {
- margin-top: 10px;
- }
- }
- @media (max-width:767px) {
- #templateNoNav #pageHeader {
- height: 120px;
- }
- #pageHeader .icon-logo-fmtv {
- color: #fff;
- font-size: 123px;
- line-height: 70px;
- text-shadow: 0 0 10px rgba(0,0,0,.5);
- float: left;
- margin: 10px 0 10px;
- }
- #pageHeader .headRight {
- display: none;
- }
- section#user-details, section#fmtv-plan, section#billing-details {
- padding: 30px 0px;
- }
- #user-details h1 {
- margin-top: 0px
- }
- .form-part input {
- margin-bottom: 10px;
- padding: 10px;
- }
- .credit-card-wrap-inner {
- padding: 10px;
- }
- #formSubscribe .cardExpiry label, #formSubscribe .card-type label {
- padding: 14px 0px;
- }
- #saveSash {
- position: absolute;
- top: -11px;
- right: -11px;
- height: auto;
- width: 132px;
- }
- .a-btn {
- font-size: 20px;
- }
- #registration-page h2 {
- font-size: 30px;
- }
- form#formSubscribe #user-details input[type="text"], form#formSubscribe #user-details input[type="password"], form#formSubscribe #billing-details input[type="text"] {
- float: none;
- padding: 12px;
- margin-bottom: 0;
- }
- #formSubscribe > div .cardNum {
- width: 75%;
- }
- .card-ccv {
- width: 25%;
- }
- .top_nav a {
- height: 50px;
- line-height: 50px;
- }
- }
- .ad-text-inactive {
- color:#8e8e8e !important;
- }
- .general-form-errors ul.errorlist:after {
- display: none;
- }
- .general-form-errors ul.errorlist {
- padding: 5px 14px;
- background: transparent;
- }
- .general-form-errors ul.errorlist li {
- color: #B65357 !important;
- text-align: center;
- margin-bottom: 10px;
- font-size: 14px;
- border: 1px solid;
- font-weight: 600;
- padding: 5px;
- }
- ul.errorlist {
- position: relative;
- margin: 0px 0px -3px 0px;
- padding: 2px 14px;
- list-style: none;
- background: #B65357;
- color: #F2E9E9 !important;
- border-radius: 3px 3px 0 0px;
- width: 90;
- font-size: 11px;
- float: left;
- width: 100%;
- }
- ul.errorlist li {
- color: #F2E9E9 !important;
- }
- ul.errorlist:after {
- display: block;
- position: absolute;
- bottom: -10px;
- width: 0;
- height: 0;
- content: '';
- border: 5px solid transparent;
- border-top-color: #B65357;
- }
- ul.errorlist + input {
- border: 1px solid #B65357 !important;
- }
- section#billing-details {
- box-shadow: none;
- }
- .one-col.ad-section img {
- padding: 20px;
- }
- .annualBonusOffer:last-child:before {
- font-family: FontAwesome;
- font-weight: normal;
- font-style: normal;
- display: inline-block;
- text-decoration: inherit;
- content: "\f067";
- position: absolute;
- left: -3%;
- bottom: 45%;
- font-size: 2em;
- color: #3f9911;
- }
- .congratulationWrap {
- font-size: 1.3em;
- border-bottom: 1px solid #eee;
- }
- .top_nav_margin {
- margin-top: 60px
- }
- @media (max-width:767px) {
- .top_nav_margin {
- margin-top: 0px
- }
- .congratulationWrap {
- font-size: 1em;
- }
- }
- .error {
- border: 1px solid #B65357 !important;
- }
- body.modal-open {
- height: 100%;
- }
- #email_taken {
- padding: 10px;
- background: #B65357;
- margin-bottom: 10px;
- position: relative;
- }
- #email_taken:after {
- display: block;
- position: absolute;
- bottom: -16px;
- left: 20px;
- width: 0;
- height: 0;
- content: '';
- border: 8px solid transparent;
- border-top-color: #B65357;
- }
- .text-link-white {
- color:#fff;
- font-weight: 600;
- text-decoration: underline;
- }
- ul#id_payment_option {
- list-style: none;
- padding: 10px;
- background: #fff;
- border-radius: 5px;
- border: 1px solid #ccc;
- }
- #id_payment_option li {
- display: inline-block;
- width: 48%;
- vertical-align: top;
- }
- #id_payment_option label{
- float:none;
- color: #484141;
- }
- #id_payment_option input {
- float:none;
- margin: 0 10px 0 0;
- margin-top: 10px !important;
- }
- ul#id_payment_option label {
- width: 100%;
- position: relative;
- height: 50px;
- color: #fff;
- color: transparent;
- }
- label[for="id_payment_option_0"] {
- content: '';
- }
- label[for="id_payment_option_0"]:before {
- /* cc */
- {# content:url('/static/img/assets/acceptedCards.png');#}
- {# position: absolute;#}
- {# top: 0;#}
- background-image: url('/static/img/assets/acceptedCards.png');
- background-repeat: no-repeat;
- background-size: 100%;
- display: inline-block;
- width: 100px;
- height: 100%;
- content:"";
- }
- label[for="id_payment_option_1"]:before {
- /* ppal */
- content:url('/static/img/assets/acceptedPaypal.png');
- position: absolute;
- top: 7px;
- background-image: url('/static/img/assets/acceptedPaypal.png');
- background-repeat: no-repeat;
- background-size: 100%;
- display: inline-block;
- width: 80px;
- height: 100%;
- content:"";
- }
- </style>
- </head>
- <body class="desktop" id="templateNoNav">
- {% include 'includes/scripts_social_top.html' %}
- <div id="fb-root"></div>
- <script>
- window.fbAsyncInit = function() {
- FB.init({
- appId : '175431905984077', // App ID
- channelUrl : '//fmtv.com/channel.html', // Channel File
- status : true, // check login status
- cookie : true, // enable cookies to allow the server to access the session
- xfbml : true // parse XFBML
- });
- FB.getLoginStatus(function(response) {
- if (response.status === 'connected') {
- var FBid = response.authResponse.userID;
- var accessToken = response.authResponse.accessToken;
- jQuery('#FBStatus').text(FBid);
- jQuery('#profilePic').append('<img src="http://graph.facebook.com/' + FBid + '/picture?width=200&height=200" />');
- }
- });
- // Additional initialization code here
- };
- // Load the SDK Asynchronously
- (function(d){
- var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
- if (d.getElementById(id)) {return;}
- js = d.createElement('script'); js.id = id; js.async = true;
- js.src = "//connect.facebook.net/en_US/all.js";
- ref.parentNode.insertBefore(js, ref);
- }(document));
- </script>
- {# <div id="pageHeader" class="stylehead1">#}
- {# <div class="container clearfix">#}
- {# <div class="headLogo">#}
- {# <a href="/"><span class="icon-logo-fmtv"></span></a>#}
- {# <p id="tagline" style="margin-top:-15px;">Health & wellness on demand.</p>#}
- {# </div>#}
- {# <div class="headRight">#}
- {# <div class="fb-like" data-href="https://.facebook.com/FMTV" data-layout="button_count" data-action="like"#}
- {# data-show-faces="true" data-share="true" style="height: 21px;"></div>#}
- {# </div>#}
- {# </div>#}
- {# </div>#}
- <nav class="top_nav">
- <div class="top_nav_inner">
- <div class="col-sm-4 col-xs-3">
- <a href="/" class="" style="padding-right:0;" ><img src="{% static 'img/layout/fmtv-logo.svg' %}" class="img-responsive nav_logo" alt=""/></a>
- </div>
- <div class="col-sm-8 col-xs-9">
- <a class="pull-right c-green top_nav_link" href="/giftcard">REDEEM A GIFT CARD</a>
- </div>
- </div>
- </nav>
- {#change#}
- <div class="top_nav_margin" style="">
- <!-- Facebook Conversion Code for FMTV June Special - Purchases -->
- <script>
- (function() {
- var _fbq = window._fbq || (window._fbq = []);
- if (!_fbq.loaded) {
- var fbds = document.createElement('script');
- fbds.async = true;
- fbds.src = '//connect.facebook.net/en_US/fbds.js';
- var s = document.getElementsByTagName('script')[0];
- s.parentNode.insertBefore(fbds, s);
- _fbq.loaded = true;
- }
- })();
- window._fbq = window._fbq || [];
- window._fbq.push(['track', '6015218278143', {'value':'0.01','currency':'AUD'}]);
- </script>
- <noscript>
- <img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6015218278143&cd[value]=0.01&cd[currency]=AUD&noscript=1" />
- </noscript>
- <form method="post" id="formSubscribe" onsubmit="return disableSubmit();">
- {% csrf_token %}
- {{ signup_form.affiliate_id }}
- <div id="registration-page">
- <section id="user-details">
- <div class="container">
- <div class="congratulationWrap">
- <h1 style="color:#3f9911;text-align: center; margin-bottom: 0px; line-height: 1; padding-bottom: 0;">CONGRATULATIONS!!</h1>
- <h3 class="joinSubHead" style="color: #3a3a3a;">You're only three simple steps away from changing your life.</h3>
- </div>
- <div class="col-xs-12 col-sm-12 col-md-8 col-md-offset-2">
- <h1 style="text-align: center; margin-bottom: 0px; line-height: 1;">ENTER YOUR DETAILS BELOW</h1>
- <h3 class="joinSubHead step" style="">Step 1 of 3</h3>
- <h3 class="joinSubHead" style="">Enter your email and choose a password.</h3>
- <div class="general-form-errors"> <!-- renders things like non-matching email and confirm email error -->
- {{ signup_form.non_field_errors }}
- </div>
- <div class="form-part clearfix">
- <div class="col-sm-6 form-wrap">
- <label style="display:none;" for="FirstName">First Name</label>
- {{ signup_form.firstname.errors }}
- {{ signup_form.firstname }}
- </div>
- <div class="col-sm-6 form-wrap">
- <label style="display:none;" for="LastName">Last Name</label>
- {{ signup_form.lastname.errors }}
- {{ signup_form.lastname }}
- </div>
- <div style="clear: both;"></div>
- <div style="position: relative">
- <div class="col-sm-12">
- <div id="email_taken" class="hidden">
- <p style="margin: 0; color: #fff;">This email is already in use. Please use an alternative email or reactivate this account by going to your account page <a href="{% url 'user_account' %}" class="text-link-white">here</a> {% if not user.is_authenticated %}(You will be prompted to log in first){% endif %}.
- </p>
- </div>
- </div>
- <div class="col-sm-6 form-wrap">
- <label style="display:none;" for="EmailAddress">Email Address</label>
- {{ signup_form.email.errors }}
- {{ signup_form.email }}
- </div>
- <div class="col-sm-6 form-wrap">
- <label style="display:none;" for="EmailAddress">Confirm Email <span></span></label>
- {{ signup_form.confirm_email.errors }}
- {{ signup_form.confirm_email }}
- </div>
- </div>
- <div style="clear: both;"></div>
- <div class="col-sm-12 form-wrap">
- <label style="display:none;" for="Password">Password (6+ characters)</label>
- {{ signup_form.password.errors }}
- {{ signup_form.password }}
- </div>
- <a class="email-privacy" href="{% url 'legal' %}" target="_blank">We respect your email privacy.</a>
- </div>
- <div style="text-align: center;">
- <a href="#fmtv-plan" class="a-btn grn-btn a-btn-lg step-1">CONTINUE ></a>
- </div>
- <!-- <h3 class="joinSubHead" style="font-size:13px;">*You will get a {{ days_free }} day trial account.</h3> -->
- <div style="clear:both;"></div>
- </div>
- </div>
- </section>
- <section id="fmtv-plan">
- <div class="container clearfix">
- <h1 class="active_heading">Select your fmtv plan</h1>
- <h3 class="joinSubHead step" style="">Step 2 of 3</h3>
- <div class="fmtv-plan-hidden">
- <h3 class="joinSubHead" style="">There is NO RISK and you can cancel anytime with a single click from
- your dashboard.
- </h3>
- <div class="col-xs-12 col-sm-6">
- <div class="monthly-wrap">
- <label for="MONTHLY" class="clearfix">
- <h2 class="joinh2 orng">Monthly</h2>
- <h2 class="trial-fmtv">{{ days_free }} DAYS FREE</h2>
- <h2 class="price-fmtv">then ${{ product1.usd_price }} / month</h2>
- <span class="bst-val"></span>
- <h3 class="joinSubHead">(Cancel at any time)</h3>
- <span class="a-btn orng-btn a-btn-md no-link" id="monthly_plan_radio">
- {{signup_form.plan_type.0.tag}}
- Monthly</span>
- </label>
- </div>
- </div>
- <div class="col-xs-12 col-sm-6">
- <div class="annual-wrap checked">
- <label for="YEARLY" class="clearfix selected">
- <img alt="" src="{% static "img/launch/save-sash-launch.png" %}" id="saveSash"/>
- <h2 class="joinh2">Annual</h2>
- <h2 class="trial-fmtv">{{ days_free }} DAYS FREE</h2>
- <h2 class="price-fmtv">then ${{ product2.usd_price }} / year</h2>
- <span class="bst-val">BEST VALUE</span>
- <h3 class="joinSubHead">(12 months for the price of 10)</h3>
- <span class="a-btn grn-btn a-btn-md no-link" id="yearly_plan_radio">
- {{signup_form.plan_type.1.tag}}
- Annual</span>
- </label>
- </div>
- </div>
- <div style="clear:both"></div>
- {# <div class="one-col ad-section">#}
- {# <h4 class="ad-text">Every Annual Account Instantly ReceiveS Over $100 in Bonuses.</h4>#}
- {# <h4 class="ad-text ad-text-black">PLUS YOU WILL Go in the draw to win over $20,000 in Prizes.</h4>#}
- {# <h4 class="ad-text">OFFER ENDS MIDNIGHT, MARCH 31, 2015</h4>#}
- {# <div class="row">#}
- {# <div class="col-xs-12 col-sm-5 annualBonusOffer">#}
- {# <div class="bonusInactive"><img src="/static/img/launch/live/bonus_sales_page_image-bw.jpg" class="img-responsive" /></div>#}
- {# <div class="bonusActive"><img src="/static/img/launch/live/bonus_sales_page_image.jpg" class="img-responsive" /></div>#}
- {# <!-- <p>$100 Free Bonuses (Instant Download)</p> -->#}
- {# </div>#}
- {# <div class="col-xs-12 col-sm-7 annualBonusOffer">#}
- {# <div class="bonusInactive"><img src="/static/img/launch/live/prize_sales_page_image-bw.jpg" class="img-responsive" /></div>#}
- {# <div class="bonusActive"><img src="/static/img/launch/live/prize_sales_page_image.jpg" class="img-responsive" /></div>#}
- {# <!-- <p>$10,000 Prize Pool (Shipped worldwide)</p> -->#}
- {# </div>#}
- {# </div>#}
- {# </div>#}
- <!-- a change -->
- <div style="text-align: center;">
- <a href="#billing-details" class="a-btn grn-btn a-btn-lg step-2">CONTINUE ></a>
- </div>
- </div>
- </div>
- </section>
- <section id="billing-details">
- <div class="container clearfix">
- <h1 class="active_heading">Billing and Payment details</h1>
- <h3 class="joinSubHead step" style="">Step 3 of 3</h3>
- <div class="billing-details-hidden">
- <h3 class="joinSubHead" style="">
- Why do we need your card details for a free trial? <br />It's because we need to securely
- protect all the films against piracy and to ensure this is a real and valid account.
- </h3>
- <div class="col-xs-12 col-sm-6">
- <h2 class="joinh2 drkgray">Billing Address</h2>
- <h3 class="joinSubHead">Please enter your billing address below</h3>
- <div class="form-part clearfix">
- <div class="col-sm-12 form-wrap">
- <label style="display:none;" for="BillingAddress">Street Adress</label>
- {{signup_form.billing_address.errors}}
- {{signup_form.billing_address}}
- </div>
- <div class="col-sm-12 form-wrap">
- <label style="display:none;" for="BillingCity">City</label>
- {{signup_form.billing_city.errors}}
- {{signup_form.billing_city}}
- </div>
- <div class="col-sm-6 form-wrap">
- <label style="display:none;" for="BillingState">State</label>
- {{signup_form.billing_state.errors}}
- {{signup_form.billing_state}}
- </div>
- <div class="col-sm-6 form-wrap">
- <label style="display:none;" for="BillingZip">Zipcode</label>
- {{signup_form.billing_postcode.errors}}
- {{signup_form.billing_postcode}}
- </div>
- <div class="col-sm-12 form-wrap">
- <label style="display:none;" for="BillingCountry">Country</label>
- {{signup_form.billing_country.errors}}
- {{signup_form.billing_country}}
- </div>
- </div>
- </div>
- <div class="col-xs-12 col-sm-6">
- <h2 class="joinh2 drkgray">Payment Details</h2>
- <h3 class="joinSubHead">Please enter your credit or debit card details below</h3>
- <div class="">
- {{ signup_form.payment_option }}
- </div>
- <div id="paypal-payment">
- <div style="padding: 10px;background: #fff;border-radius: 5px;border: 1px solid #ccc;">
- <img src="{% static 'img/assets/pay-pal-page-icon.svg' %}" alt="Paypal" class="img-responsive" style="max-width: 50%; padding: 12px 0;"/>
- <p style="color: #666;">
- Please click <b>ACTIVATE MY ACCOUNT</b> and you will be redirected to PayPal to securely create a <em>subscription agreement</em>.
- </p>
- <p style="color: #666;">
- You can cancel your subscription agreement at anytime from within PayPal or FMTV.
- </p>
- <p style="color: #666;">
- From PayPal you will be returned to FMTV to finalize the sign-up process.
- </p>
- </div>
- </div>
- <div class="credit-card-wrap-outer clearfix" id="credit-card-payment">
- <span></span>
- <div class="credit-card-wrap-inner clearfix">
- <div class="card-type">
- <div style="display:none;">
- <img alt="" src="{% static "img/assets/acceptedCards.png" %}" />
- </div>
- <div>
- <label for="CardType">Card Type</label>
- {{ signup_form.card_type.errors }}
- {{ signup_form.card_type }}
- </div>
- </div>
- <div class="cardNum">
- <label style="display:none;" for="CardNumber">Card Number</label>
- {{ signup_form.card_number.errors }}
- {{ signup_form.card_number }}
- </div>
- <div class="card-ccv">
- <label style="display:none;" for="CardCCV">CCV</label>
- {{ signup_form.card_CVV.errors }}
- {{ signup_form.card_CVV }}
- </div>
- <div class="cardExpiry">
- <label>Card Expiry</label>
- {{ signup_form.card_expiry.errors }}
- {{ signup_form.card_expiry }}
- </div>
- <div style="float: left; width: 100%;">
- <label style="display:none;" for="CardName">Name on Card</label>
- {{ signup_form.card_name.errors }}
- {{ signup_form.card_name }}
- </div>
- </div>
- </div>
- <div id="sslInfo">
- <div class="sslExplain">
- Your payment is secured by advanced encryption technology that safeguards your personal information and guarantees privacy.
- </div>
- </div>
- </div>
- <div style="clear: both;"></div>
- <div class="one-col submit-section">
- <h3 class="joinSubHead checkout-text">You have selected the <span class="m_or_y">year</span>ly and will be billed</h3>
- <h2 class="price-fmtv price-fmtv-bottom"><span class="finalPrice">$79.00</span> <span class="drop-text">USD</span> / <span class="m_or_y">year</span> after the {{ days_free }} days.</h2>
- <div style="text-align: center;">
- <div id="form-submit-button">
- <input class="a-btn grn-btn a-btn-lg formSub" type="submit" value="ACTIVATE MY ACCOUNT" id="catwebformbutton" />
- </div>
- </div>
- </div> <!-- billing-details-hidden -->
- </div>
- </div>
- </section>
- </div>
- <script type="text/javascript">
- (function ($) {
- 'use strict';
- $(function () {
- if (!Modernizr.input.placeholder) {
- $('[placeholder]')
- .focus(function () {
- var input = $(this);
- if (input.val() === input.attr('placeholder')) {
- input.val('').removeClass('placeholder');
- }
- })
- .blur(function () {
- var input = $(this);
- if (input.val() === '' || input.val() === input.attr('placeholder')) {
- input.addClass('placeholder').val(input.attr('placeholder'));
- }
- })
- .blur()
- .parents('form').submit(function () {
- $(this).find('[placeholder]').each(function () {
- var input = $(this);
- if (input.val() === input.attr('placeholder')) {
- input.val('');
- }
- });
- });
- }
- });
- })(jQuery);
- if ( jQuery('input#id_payment_option_1').is(':checked') ) {
- jQuery('#credit-card-payment').hide()
- jQuery('#paypal-payment').show()
- } else {
- jQuery('#paypal-payment').hide()
- jQuery('#credit-card-payment').show()
- }
- jQuery('input.payment_option').on('change', function(e){
- switch(jQuery(this).val()) {
- case '0':
- console.log("cc");
- jQuery('#credit-card-payment').show()
- jQuery('#paypal-payment').hide()
- break;
- case '1':
- console.log("paypal");
- jQuery('#credit-card-payment').hide()
- jQuery('#paypal-payment').show()
- break;
- }
- });
- jQuery('#id_email').on('input', function() {
- jQuery(this).removeClass('error')
- jQuery('#email_taken').addClass('hidden')
- });
- jQuery('#id_email').on('change', function() {
- var input = this
- var username = this.value
- jQuery.ajax({
- method: "POST",
- url: "/subscriptions/reactivation-lookup",
- data: { username: username}
- })
- .done(function( data ) {
- if (data.result == 'reactivate') {
- jQuery(input).addClass('error')
- jQuery('#email_taken').removeClass('hidden')
- }
- });
- });
- var form_error = '{{ gateway_error }}';
- var active_heading = jQuery('.active_heading'),
- payment_sections = jQuery('#fmtv-plan, #billing-details');
- if(form_error === 'False'){
- jQuery(payment_sections).addClass('inactive_section');
- jQuery(active_heading).addClass('inactive_heading');
- jQuery('.fmtv-plan-hidden').slideUp();
- jQuery('.billing-details-hidden').slideUp();
- }
- jQuery('.step-1').click(function() {
- jQuery(payment_sections).removeClass('inactive_section');
- jQuery(active_heading).removeClass('inactive_heading');
- jQuery('.fmtv-plan-hidden').slideDown('slow');
- //jQuery('.billing-details-hidden').delay(1000).slideDown('slow');
- });
- jQuery('.step-2').click(function() {
- jQuery(payment_sections).removeClass('inactive_section');
- jQuery(active_heading).removeClass('inactive_heading');
- jQuery('.billing-details-hidden').slideDown('slow');
- });
- function goToByScroll(id){
- // Remove "link" from the ID
- // Scroll
- jQuery('html,body').animate({
- scrollTop: jQuery("#"+id).offset().top-30
- },'slow');
- }
- jQuery('.monthly-wrap').on('click', function(){
- jQuery('#monthly_plan_radio input').prop("checked",true)
- jQuery('.annual-wrap').removeClass('checked').css({opacity: 0.4});
- jQuery(this).addClass('checked').css({opacity: 1});
- var monthly = jQuery('.monthly-wrap.checked').length;
- //if monthly is checked do:
- if (monthly === 1) {
- jQuery('.m_or_y').text('month');
- jQuery('.finalPrice').text('$7.95');
- //console.log('if' + monthly)
- //jQuery('.bonusInactive').fadeTo('slow',1);
- //jQuery('.ad-text').addClass('ad-text-inactive');
- } else {
- jQuery('.m_or_y').text('year');
- jQuery('.finalPrice').text('$79.00');
- //console.log('else' + monthly)
- //jQuery('.bonusInactive').fadeTo('slow',0);
- //jQuery('.ad-text').removeClass('ad-text-inactive');
- }
- });
- jQuery('.annual-wrap').on('click', function(){
- jQuery('#yearly_plan_radio input').prop("checked",true)
- jQuery(this).addClass('checked').css({opacity: 1});
- jQuery('.monthly-wrap').removeClass('checked').css({opacity: 0.4});
- var monthly = jQuery('.monthly-wrap.checked').length;
- //if monthly is checked do:
- if (monthly === 1) {
- jQuery('.m_or_y').text('month');
- jQuery('.finalPrice').text('$7.95');
- //console.log('if' + monthly)
- //jQuery('.bonusInactive').fadeTo('slow',1);
- //jQuery('.ad-text').addClass('ad-text-inactive');
- } else {
- jQuery('.m_or_y').text('year');
- jQuery('.finalPrice').text('$79.00');
- //console.log('else' + monthly)
- //jQuery('.bonusInactive').fadeTo('slow',0);
- //jQuery('.ad-text').removeClass('ad-text-inactive');
- }
- });
- if ( jQuery('#id_billing_country').val() == 'AU' ) {
- jQuery('.drop-text').text('AUD')
- }
- jQuery('#id_billing_country').change(function() {
- if(jQuery(this).val() === 'AU') {
- jQuery('.drop-text').text('AUD')
- } else {
- jQuery('.drop-text').text('USD')
- }
- })
- function disableSubmit(){
- jQuery('#formSubscribe input[type="submit"]').replaceWith('<img id="processing-gif" src="/static/images/processing-better.gif"/>');
- setTimeout(
- function (){
- jQuery('#form-submit-button').append('<input class="a-btn grn-btn a-btn-lg formSub" type="submit" value="FORM NOT SUBMITTED. PLEASE CLICK ME AGAIN" id="catwebformbutton" />');
- jQuery('#processing-gif').remove();
- }, 10000
- );
- return true;
- }
- jQuery('#formSubscribe').on('submit', function() {
- if(jQuery(this).val() === 'AU') {
- jQuery('.drop-text').text('AUD')
- } else {
- jQuery('.drop-text').text('USD')
- }
- })
- </script>
- </form>
- </div>
- <div style="clear: both;"></div>
- <script src="{% static 'js/jquery.mmenu.min.js' %}"></script>
- <script src="{% static 'js/smooth-scroll.js' %}"></script>
- <script src="{% static 'js/masonry.js' %}"></script>
- <script src="{% static 'js/scriptsv3.js' %}"></script>
- <script type="text/javascript">
- var __lc = {};
- __lc.license = 4458521;
- (function() {
- var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
- lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
- })();
- </script>
- <script src="{% static "js/jquery.gritter.js" %}"></script>
- <script type="text/javascript">
- {% if messages %}
- {% for message in messages %}
- jQuery.gritter.add({
- {% if message.tags == "error" %}
- title: '<i class="fa fa-times-circle"></i> Error:',
- class_name: 'error_gritter',
- {% else %}
- title: '<i class="fa fa-check-circle"></i> Success:',
- class_name: 'success_gritter',
- {% endif %}
- text: '{{ message }}',
- sticky: true
- });
- {% endfor %}
- {% endif %}
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment