Commit Graph

90 Commits

Author SHA1 Message Date
Claude (via Marty) 63249c2b5d Referral-column toggle applied after tables render (headers+cells stay in sync); nginx no-cache on index.html so deploys reach browsers 2026-07-30 22:04:41 +00:00
Claude (via Marty) 4e2d97af56 Fix Phase-by-Phase money columns to phase totals (x cycles); null-guard removed heroSignupBtn that crashed init() on every load 2026-07-30 21:58:37 +00:00
Marty Bostick 7433b59a8f Fix: referral column visibility now respects checkbox, not just numPeople
- The second toggle block (lines 1718-1725) was overriding the checkbox state
- When numPeople > 0, it was showing sponsor columns regardless of checkbox
- Now uses  so both conditions must be met
- Referral columns stay hidden by default even when simulating a referral plan
2026-07-30 21:50:36 +00:00
Marty Bostick 69a6de26ef Fix: call updateAll() on page load so sponsor columns start hidden
- Added setTimeout(updateAll, 100) so the referral columns are hidden from the very first page render, not just after user interaction
- Without this, the <td> cells with .referral-col class were visible even though the checkbox was unchecked
2026-07-30 21:41:56 +00:00
Marty Bostick 8178b72df2 Fix: sponsor columns now properly hide when 'Show referral earnings' is off
- Added .referral-col class to overview body <td>s (10% and cumulative columns)
- Added .referral-col class to timeline body <td>s (commission and cumulative)
- Added .referral-col class to 'Sponsor's Cumulative' header in both overview and timeline tables
- All sponsor columns now hide/show together via the checkbox toggle
2026-07-30 21:39:16 +00:00
Marty Bostick bc002de22e Add 'Their Net Profit' column, rename labels for clarity
Phase table now has 7 columns:
- Their Gross Payout / Their Net Profit / Sponsor's 10% / Sponsor's Cumulative
- Timeline tab: 'Sponsor's Commission/Month' and 'Sponsor's Cumulative'
- Table-wrap overflow-x: auto for mobile scrollability
2026-07-30 21:25:18 +00:00
Marty Bostick b2b118a62f Fix hero stats: 56→40, ,268→,520 per PDF source of truth (10% fee was double-counted) 2026-07-30 21:11:35 +00:00
Marty Bostick 8b70b545a2 Fix: referral plan text now uses dynamic share URL with gift/self params instead of static bare link
When options change (gift level, self-fund level), the share link box and QR codes update correctly, but the plan text still showed the old bare referral link. Now the plan text uses the same getShareUrl() call that generates the custom share link, so the referral link in the plan text stays in sync with the selected options.
2026-07-30 18:45:58 +00:00
Marty Bostick 97e3f51ca9 Fix Phase-by-Phase Journey cumulative payout column
Bug: The 'Cumulative to You' column showed /usr/bin/bash.00 (no gift) or a frozen
value (with gift) instead of the actual running total of referral earnings.

Fix:
- Separate ROI tracking (cumulative until gift cost is recouped) from
  cumulative payout display (always accumulates across all phases)
- Use roiCum/roiRow for ROI tracking, cumRunning for display
- 3× L7 Endgame uses 1 cycle (not 0) so its contribution is counted
- Highlight phase where ROI is achieved (not the phase after it)

L1 Only: 5.48, L2+L1: 3.04, L3+L1: 47.68, L4+L3: 39.28,
L5+L4: 05.84, L6: ,527.92, L7: ,795.92, 3×L7: ,767.92
2026-07-30 18:36:15 +00:00
Marty Bostick b4cc75e8ac Fix scenario comparison chart showing zeros — use actualPeople for compare chart data 2026-07-29 22:38:26 +00:00
Marty Bostick 1f670b454e Fix scenario comparison table showing zeros — use actualPeople instead of numPeople on yr1/totalEG/monthly columns 2026-07-29 22:33:54 +00:00
Marty Bostick f694910785 Fix profit timeline chart bars showing zero — remove numPeople multiplier on bar datasets 2026-07-29 22:32:35 +00:00
Marty Bostick d537d166e2 Fix profit timeline showing all zeros for referrals — show actual profit/commission instead of multiplying by numPeople=0 2026-07-29 22:30:39 +00:00
Marty Bostick ae858d65a1 Remove chartProfitData reference that didn't exist — chart1 only shows referral dataset 2026-07-29 22:24:16 +00:00
Marty Bostick ec908668e8 Fix nested backtick syntax bug killing entire JS runtime — build referral chart dataset as JS object not template literal 2026-07-29 22:21:49 +00:00
Marty Bostick 85854fcbd8 Default numPeople to 0, hide referral cards & columns until they set people in downline 2026-07-29 22:13:26 +00:00
Marty Bostick 77d24b2657 Fix summary labels: 'Sponsor Covers' and 'Your Cost' instead of 'Your Cost' and 'Their Cost' 2026-07-29 22:06:46 +00:00
Marty Bostick e02193faae Fix tab button JS: revert erroneous IIFE invocation that broke event wiring 2026-07-29 22:02:18 +00:00
Marty Bostick 5da48ae59e Encode gift/self-fund in share URL so recipients see the exact plan 2026-07-29 21:56:13 +00:00
Marty Bostick 565d34c199 Show exact cycles to reach 0 minimum withdrawal per phase in plan 2026-07-29 21:41:42 +00:00
Marty Bostick 872a645b27 Fix: call generatePlan() from within updateAll() so referral plan preview populates on every change 2026-07-29 21:25:31 +00:00
Marty Bostick e7ddf5b11d Add Open Graph, Twitter Card, SEO meta tags, and canonical URL for social preview 2026-07-29 20:57:56 +00:00
Marty Bostick 4666e2076c Add mobile-only QR code under hero buttons for on-the-spot recruiting, update ref dynamically 2026-07-29 20:50:46 +00:00
Marty Bostick af79853142 Fix: call updateSharedLinkBox when calculator section expands so shared link populates 2026-07-29 20:47:35 +00:00
Marty Bostick f192957f2d Merge login button into hero-ctas row — both buttons now truly side-by-side, same class 2026-07-29 20:36:12 +00:00
Marty Bostick 90136372db Match login button to hero-btn dimensions, place side-by-side with Try the Profit Calculator 2026-07-29 20:34:38 +00:00
Marty Bostick 3cf5309b25 Turn hero login link into a proper button matching hero-btn-secondary style 2026-07-29 20:33:01 +00:00
Marty Bostick 03fdbe87e6 Add responsive hero banner: mobile image on screens < 768px, desktop on larger 2026-07-29 20:31:09 +00:00
Marty Bostick e2aed5bf88 Fix calc signup: inline script sets ref dynamically, no hardcoded href 2026-07-29 20:27:39 +00:00
Marty Bostick dae8ff17b4 Fix Sign Up button — add default href so it's clickable even before JS runs 2026-07-29 20:25:18 +00:00
Marty Bostick 9e43b35552 Add inline script after banner link to set ref immediately on DOM parse — fixes race condition 2026-07-29 20:21:51 +00:00
Marty Bostick 029ed9f9c1 Fix: call updateSharedLinkBox on page load so banner ref link is dynamic from first render 2026-07-29 20:20:01 +00:00
Marty Bostick c9195cfdec Make banner referral link dynamic — uses ?ref= param instead of hardcoded cryptoteambuild 2026-07-29 20:18:30 +00:00
Marty Bostick 87dbd12340 Remove left Join the Team button, center single Profit Calculator button 2026-07-29 20:16:22 +00:00
Marty Bostick 4b637f8f6e Switch hero image src to Gitea raw URL — bypasses Coolify static file serving issue 2026-07-29 20:03:57 +00:00
Marty Bostick 3b7fd83a71 Replace hero headline/badge/CBP logo with Marty's banner image — clean hero with just the image + CTAs below 2026-07-29 19:57:58 +00:00
Marty Bostick ef931aad5d Remove redundant banner below CTAs — CBP logo bar at top handles brand identity, no need for duplicate CTBN banner 2026-07-29 19:53:08 +00:00
Marty Bostick 62ee9b9227 Add CBP logo bar at top of hero — cyan/purple ClickBaitPays brand badge with 'Team Project' label, above CTBN badge 2026-07-29 19:51:08 +00:00
Marty Bostick 39b023ef80 Fix banner messaging: CTBN as the brand, CBP as the team project, CTA makes it clear 2026-07-29 19:47:01 +00:00
Marty Bostick 1eb08bd020 Add hero banner strip — 'JOIN THE CRYPTO TEAM BUILD NETWORK' with gold CTA button, dyn referral link 2026-07-29 19:43:42 +00:00
Marty Bostick 22c8c10cc0 Rename calculator CTA to '🧮 Try the Profit Calculator' 2026-07-29 19:38:43 +00:00
Marty Bostick 055f926e3b Rebrand to match CBP's cyberpunk palette — #080015 bg, cyan accents, magenta highlights, Orbitron font, HUD-style cards 2026-07-29 19:33:46 +00:00
Marty Bostick a1edd9221d Make 'Explore the Calculator' button pop with frosted glass effect — brighter border and subtle blur 2026-07-29 19:17:24 +00:00
Marty Bostick 68a3cf44fb Switch headline from purple tint to warm gold/amber — contrasts better against dark page 2026-07-29 19:15:43 +00:00
Marty Bostick cdbefaa716 Swap primary CTAs from purple to gold — much better contrast against dark purple background 2026-07-29 19:14:30 +00:00
Marty Bostick 67fd804ee0 Add '📌 You are here — L4+L3 Hybrid' badge above ladder on My Progress tab 2026-07-29 16:18:50 +00:00
Marty Bostick 772b617fe0 ROI turns green (#22c55e) when it hits 100%+ breakeven 2026-07-29 16:10:14 +00:00
Marty Bostick 81ffdb6dc5 Add hint under Earnings field showing where to find the numbers on CBP dashboard 2026-07-29 16:09:07 +00:00
Marty Bostick 1b4ca9ba2e Uncap ROI display — shows over 100%, labels switch to pure profit past breakeven 2026-07-29 16:08:46 +00:00
Marty Bostick 8ad8375448 Rename 'Member Login' to 'Log into ClickBaitPays' for clarity 2026-07-29 16:01:53 +00:00