diff --git a/index.html b/index.html
index bf95fd3..6100a03 100644
--- a/index.html
+++ b/index.html
@@ -1205,7 +1205,7 @@
@@ -1628,7 +1628,7 @@ const SCENARIOS = buildSCENARIOS();
let chart1 = null, chart2 = null, chart3 = null;
function updateAll() {
- const numPeople = parseInt(document.getElementById('numPeople').value) || 1;
+ const numPeople = parseInt(document.getElementById('numPeople').value) || 0;
const commPct = parseFloat(document.getElementById('commissionPct').value) || 10;
const giftLevel = parseInt(document.getElementById('giftLevel').value);
const selfLevel = parseInt(document.getElementById('selfFundLevel').value);
@@ -1694,24 +1694,35 @@ function updateAll() {
Time to 3× L7
~${totalMonths} months
+${numPeople > 0 ? `
Year 1 Referral Earnings
$${yr1Cum.toLocaleString()}
${numPeople > 1 ? `$${yr1PerPerson.toLocaleString()} / person` : ''}
-
+ ` : ''}
ROI on Gift
${roiText}
${roiSub || (giftCost > 0 ? '' : 'no gift cost')}
+${numPeople > 0 ? `
Monthly Passive (3× L7)
$${monthlyPassive.toLocaleString()}
${numPeople > 1 ? `$${Math.round(monthlyPassive / numPeople).toLocaleString()} / person` : 'per month'}
-
+ ` : ''}
`;
document.getElementById('summaryCards').innerHTML = summaryHtml;
+ // Toggle referral columns when no people in downline
+ for (const id of ['headerYourCut','headerCumulative','headerTimelineComm','headerTimelineCum']) {
+ const el = document.getElementById(id);
+ if (el) el.style.display = numPeople > 0 ? '' : 'none';
+ }
+ for (const el of document.querySelectorAll('.referral-col')) {
+ el.style.display = numPeople > 0 ? '' : 'none';
+ }
+
let cumRunning = 0;
let roiHit = false;
let rows = '';
@@ -1763,16 +1774,18 @@ function updateAll() {
type: 'line',
data: {
labels: chartLabels,
- datasets: [{
- label: `${numPeople > 1 ? `Total (${numPeople} people)` : 'Your'} Cumulative Referral Earnings`,
- data: numPeople > 1 ? chartValues.map(v => v * numPeople) : chartValues,
- borderColor: '#6c5ce7',
- backgroundColor: 'rgba(108,92,231,0.1)',
- fill: true,
- tension: 0.3,
- pointRadius: 3,
- pointHoverRadius: 5,
- }]
+ datasets: [
+ ${numPeople > 0 ? `{
+ label: `${numPeople > 1 ? `Total (${numPeople} people)` : 'Your'} Cumulative Referral Earnings`,
+ data: numPeople > 1 ? chartValues.map(v => v * numPeople) : chartValues,
+ borderColor: '#6c5ce7',
+ backgroundColor: 'rgba(108,92,231,0.1)',
+ fill: true,
+ tension: 0.3,
+ pointRadius: 3,
+ pointHoverRadius: 5,
+ },` : ''}
+ {
},
options: {
responsive: true,
@@ -2066,7 +2079,7 @@ function updateHeroSignupBtn() {
// ─── Shareable Plan Generator ───────────────────────────────
function generatePlan() {
- const numPeople = parseInt(document.getElementById('numPeople').value) || 1;
+ const numPeople = parseInt(document.getElementById('numPeople').value) || 0;
const giftLevel = parseInt(document.getElementById('giftLevel').value);
const selfLevel = parseInt(document.getElementById('selfFundLevel').value);
const refUser = getRefFromURL() || 'cryptoteambuild';