function iflyUpgrade() { (function($) { $('#iflyModal').modal('show'); })(jQuery); } function iflySelectPlan(plan) { (function($) { $('#iflySelectPlan').modal('show'); $('#' + plan + ' .header').addClass("currentplan") })(jQuery); } var monthly = '1'; var enterprise_plans = '1'; function planLink(plan){ var link = '0'; if(plan == '0'){ link = '0'; } else if(plan == '1'){ if(monthly == '1'){ link = 'basic-plan'; } else{ link = '8'; } } else if(plan == '2'){ if(monthly == '1'){ link = 'professional-plan'; } else{ link = '9'; } } else if(plan == '3'){ if(monthly == '1'){ link = 'enterprise-small-cap-plan'; } else{ link = '10'; } } else if(plan == '4'){ if(monthly == '1'){ if(enterprise_plans == '1'){ link = '7'; } else if(enterprise_plans == '2'){ link = '6'; } else if(enterprise_plans == '3'){ link = '5'; } } else{ if(enterprise_plans == '1'){ link = '13'; } else if(enterprise_plans == '2'){ link = '12'; } else if(enterprise_plans == '3'){ link = '11'; } } } if(link == '0'){ window.location.assign("http://internal.iflychat.com/user/login"); } else{ window.location.assign("http://internal.iflychat.com/dashboard/activate-trial?i=" + link); } } function chooseBlueChip(){ console.log('blue chip'); console.log(monthly); enterprise_plans = '1'; jQuery("#enterprise-plans button").html("2500") if(monthly == '1'){ console.log('blue chip 2'); jQuery("#enterprise-plans .price .amount").html(499); } else{ jQuery("#enterprise-plans .price .amount").html(449); } } function chooseLargeCap(){ enterprise_plans = '2'; jQuery("#enterprise-plans button").html("1400") if(monthly == '1'){ jQuery("#enterprise-plans .price .amount").html(349); } else{ jQuery("#enterprise-plans .price .amount").html(314); } } function chooseMidCap(){ enterprise_plans = '3'; jQuery("#enterprise-plans button").html("700") if(monthly == '1'){ jQuery("#enterprise-plans .price .amount").html(199); } else{ jQuery("#enterprise-plans .price .amount").html(179); } } function chooseMonthly(){ monthly = '1'; jQuery(".billed").html("Billed Monthly"); jQuery("#basic-plan .price .amount").html(19); jQuery("#professional-plan .price .amount").html(49); jQuery("#enterprise-small-plan .price .amount").html(99); if(enterprise_plans == '1'){ jQuery("#enterprise-plans .price .amount").html(499); } else if (enterprise_plans == '2'){ jQuery("#enterprise-plans .price .amount").html(349); } else{ jQuery("#enterprise-plans .price .amount").html(199); } } function chooseAnnual(){ monthly = '0'; jQuery(".billed").html("Billed Annually"); jQuery("#basic-plan .price .amount").html(17); jQuery("#professional-plan .price .amount").html(44); jQuery("#enterprise-small-plan .price .amount").html(89); if(enterprise_plans == '1'){ jQuery("#enterprise-plans .price .amount").html(449); } else if (enterprise_plans == '2'){ jQuery("#enterprise-plans .price .amount").html(319); } else{ jQuery("#enterprise-plans .price .amount").html(179); } } function initializePlan() { (function($) { $("body").append("