diff --git a/app/configManager.js b/app/configManager.js index 03c1986..4fbe210 100644 --- a/app/configManager.js +++ b/app/configManager.js @@ -313,6 +313,9 @@ const configManager = (() => { // open/close settings panel const iconColor = (getProp('BTTheme') == 'LIGHT') ? 'LIGHT' : 'DARK'; + const installDate = new Date(getProp('BTInstallDate')); + const today = new Date(); + const daysSinceInstall = Math.floor((today - installDate) / (24 * 60 * 60 * 1000)); if ($('#actions').is(':visible')) toggleActionsDisplay(); // can't have both open @@ -331,15 +334,16 @@ const configManager = (() => { $('#topBar img').removeClass(['DARK', 'LIGHT']).addClass('DARK'); $("#content").fadeOut(250); $("body").css("overflow", "hidden"); // don't allow table to be scrolled - /* !!!!!!! Temp remove supporter overlay !!!!!!!! */ + + // fade in and maybe out the overlay to shut off non-supporter features if not supporter if (BTId) return; + // No BTId but might be still in trial period. Fade in overlay setTimeout(() => { $("#youShallNotPass").fadeIn(); }, 1000); - setTimeout(() => { - $("#youShallNotPass").fadeOut(); - }, 20000); - /* !!!!!!! Temp remove supporter overlay !!!!!!!! */ + // fade out overlay if trial still on ie < 30 days since install + if (daysSinceInstall <= 30) + setTimeout(() => {$("#youShallNotPass").fadeOut();}, 10000); } } diff --git a/app/index.html b/app/index.html index 65f6ede..66e4e72 100644 --- a/app/index.html +++ b/app/index.html @@ -81,11 +81,8 @@ + ADD A NEW TOP LEVEL TOPIC -
+
- Reveal

Supporter
Zone

Close
You are using BrainTool for free.
Please consider supporting BrainTool with a purchase. Thank you!
- - - + + +
Coupons applied at checkout
diff --git a/app/subscriptionManager.js b/app/subscriptionManager.js index 3ff31b8..5aa363e 100644 --- a/app/subscriptionManager.js +++ b/app/subscriptionManager.js @@ -321,13 +321,12 @@ async function subscribe(productPrice) { } } -const ReleaseCandidate = true; async function purchase(productPrice) { // similar to above but One-Time-purchase const baseURL = window.location.href.split('?')[0]; // drop any preexisting '?purchase=xyz' arg const checkoutSession = { mode: "payment", - price: OTP, // One-time price created in Stripe + price: OTP, // One-time price created in Stripe allow_promotion_codes: true, success_url: baseURL+ '?purchase=' + encodeURIComponent('product'), cancel_url: baseURL + '?purchase=' + encodeURIComponent('cancelled'), @@ -344,7 +343,6 @@ async function purchase(productPrice) { if (sessionId) { // We have a session, let's redirect to Checkout // Init Stripe - if (ReleaseCandidate) {RCPurchase(sessionId); return;} // !!! REMOVE FROM PROD and update FB Rules!!! const stripeKey = configManager.getProp('STRIPE_KEY'); const stripe = Stripe(stripeKey); stripe.redirectToCheckout({ sessionId }); @@ -357,6 +355,7 @@ async function purchase(productPrice) { } } +/* async function RCPurchase(sessionId) { // Skip Stripe processing to allow free license for RC. Stripe won't charge 0 for a product or give 100% discount @@ -382,6 +381,7 @@ async function RCPurchase(sessionId) { updateLicenseSettings(); }); } +*/ async function getStripePortalURL() { // Billing portal handler diff --git a/extension/images/Overview.png b/extension/images/Overview.png deleted file mode 100644 index 8ec1375..0000000 Binary files a/extension/images/Overview.png and /dev/null differ diff --git a/extension/resources/gridBackground.png b/extension/resources/gridBackground.png deleted file mode 100644 index fc39d4b..0000000 Binary files a/extension/resources/gridBackground.png and /dev/null differ diff --git a/pricing.md b/pricing.md index 83d30cf..e90f6d3 100644 --- a/pricing.md +++ b/pricing.md @@ -91,6 +91,6 @@ Nag-free

-$1.33/M, $10.66/Y, $21 One-time +$1.33/M, $10.66/Y, $20.99 One-time