diff --git a/public/assets/plan-lab.js b/public/assets/plan-lab.js index b4fc5e8..ee8ce08 100644 --- a/public/assets/plan-lab.js +++ b/public/assets/plan-lab.js @@ -704,9 +704,12 @@ // in the story head, then every counter goes back to zero and members keep only the levels they actually bought. G.replay = { in: G.aud.spent, admin: G.aud.admin + G.aud.entryFee, you: G.you.cash + G.you.entry, youLevel: G.you.level }; for (const m of G.members) { m.cash = 0; m.entry = 0; m.pool = 0; m.spent = 0; m.dc = 0; m.lic = 0; m.licV = 0; m.level = m === G.you ? 1 : (m.seedLevel || 1); if (m !== G.you) for (let L = 1; L <= m.level; L++) m.spent += price(L); } // what their bought levels cost at these prices + // Your levels bought up front (Marty, 28 Sep): start the run holding them, paid with your own money before month 1. + const preSel = document.getElementById('gYouLevels'); G.youPre = Math.min(PLAN.maxL, Math.max(1, Number(preSel && preSel.value) || 1)); + G.you.level = G.youPre; G.you.spent = 0; for (let L = 1; L <= G.youPre; L++) G.you.spent += price(L); G.aud = { spent: 0, received: 0, admin: 0, entryFee: 0, above: 0, pool: 0 }; G.poolCarry = 0; gNewMonth(); G.rows.push(gSnap(0)); - const ol = document.getElementById('gStory'); if (ol) ol.innerHTML = '
  • ' + (seed === 'iap' ? 'Start: the InstantAdPay org today, placed 4-wide under each member\u2019s real recruiter: ' + cnt(G.members.length - 1) + ' members, ' + cnt(G.members.filter(x => x.level >= 2).length) + ' of them past level 1 (the levels they actually bought), ' + cnt(G.members.filter(x => x.directs >= 2).length) + ' qualified. Every counter starts at zero and counts only what happens from month 1. For reference, had these rules been running all along, their past purchases would have moved ' + $$(G.replay.in) + ', put ' + $$(G.replay.admin) + ' in the admin wallet and ' + $$(G.replay.you) + ' to you, funding you to level ' + G.replay.youLevel + '.' : 'Start: just you at level 1, nobody under you yet. In month 1 you recruit two people yourself (everyone needs two to receive cash at full reach); after that the org grows the way InstantAdPay’s did.') + ' Now run a month.
  • '; + const ol = document.getElementById('gStory'); if (ol) ol.innerHTML = '
  • ' + (seed === 'iap' ? 'Start: the InstantAdPay org today, placed 4-wide under each member\u2019s real recruiter: ' + cnt(G.members.length - 1) + ' members, ' + cnt(G.members.filter(x => x.level >= 2).length) + ' of them past level 1 (the levels they actually bought), ' + cnt(G.members.filter(x => x.directs >= 2).length) + ' qualified. Every counter starts at zero and counts only what happens from month 1. For reference, had these rules been running all along, their past purchases would have moved ' + $$(G.replay.in) + ', put ' + $$(G.replay.admin) + ' in the admin wallet and ' + $$(G.replay.you) + ' to you, funding you to level ' + G.replay.youLevel + '.' + (G.youPre > 1 ? ' You start at level ' + G.youPre + ', bought up front for ' + $$(G.you.spent) + '.' : '') : 'Start: just you at level ' + G.youPre + (G.youPre > 1 ? ' (bought up front for ' + $$(G.you.spent) + ')' : '') + ', nobody under you yet. In month 1 you recruit two people yourself (everyone needs two to receive cash at full reach); after that the org grows the way InstantAdPay’s did.') + ' Now run a month.
  • '; gRender(); window.growAudit = () => ({ spent: Math.round(G.aud.spent), received: Math.round(G.aud.received), ok: Math.abs(G.aud.spent - G.aud.received) <= 0.01 + 1e-9 * G.aud.spent }); } @@ -775,7 +778,7 @@ const s = G.rows[G.rows.length - 1]; document.getElementById('gMonth').textContent = G.month; document.getElementById('gMembers').textContent = cnt(s.members) + ' members'; document.getElementById('gLevel').textContent = s.youLevel; document.getElementById('gLevelS').textContent = 'reach = depth 1 to ' + s.youLevel + ' \u00b7 ' + s.youLic + ' licence' + (s.youLic === 1 ? '' : 's') + ' funded for you'; - document.getElementById('gYou').textContent = $$(s.toYou); document.getElementById('gYouS').textContent = 'cash ' + $$(G.you.cash) + ' + entries ' + $$(G.you.entry) + '; licences worth ' + $$(G.you.licV) + ' apart'; + document.getElementById('gYou').textContent = $$(s.toYou); document.getElementById('gYouS').textContent = 'cash ' + $$(G.you.cash) + ' + entries ' + $$(G.you.entry) + '; licences worth ' + $$(G.you.licV) + ' apart' + (G.you.spent ? ' \u00b7 paid ' + $$(G.you.spent) + (G.youPre > 1 ? ' up front for levels 1 to ' + G.youPre : ' for your entry') + ', net ' + (s.toYou - G.you.spent >= 0 ? '+' : '\u2212') + $$(Math.abs(s.toYou - G.you.spent)) : ''); document.getElementById('gAdmin').textContent = $$(G.aud.admin + G.aud.entryFee); document.getElementById('gPool').textContent = $$(G.members.reduce((a, x) => a + x.pool, 0)); document.getElementById('gPoolS').textContent = s.poolN ? 'this month ' + $$(s.poolPaid) + ' to ' + cnt(s.poolN) + ' active members' : (Math.round(PLAN.pool * 100)) + '% of every dollar, split by activity'; gVisuals(s); @@ -827,7 +830,9 @@ document.getElementById('gPoolPts').addEventListener('change', e => { PLAN.pool = Number(e.target.value); const a = document.getElementById('gAdmin'); if (a) a.nextElementSibling.textContent = Math.round((PLAN.fee - PLAN.pool) * 100) + '% of every dollar in'; }); // ── plan controls ── + function labelPre(){ const sel = document.getElementById('gYouLevels'); if (!sel) return; let sum = 0; for (const o of sel.options) { const n = Number(o.value); sum = 0; for (let L = 1; L <= n; L++) sum += price(L); o.textContent = (n === 1 ? 'Level 1 only' : n === PLAN.maxL ? 'All ' + n + ' levels' : 'Levels 1 to ' + n) + ' (' + $$(sum) + ')'; o.hidden = n > PLAN.maxL; } } function applyPlan(){ + labelPre(); PLAN.w = Number(document.getElementById('width').value); PLAN.maxL = Number(document.getElementById('levels').value); PLAN.shape = document.getElementById('shape').value; diff --git a/public/plan-lab.html b/public/plan-lab.html index 164d938..a9bdfea 100644 --- a/public/plan-lab.html +++ b/public/plan-lab.html @@ -221,6 +221,7 @@ details.adv.big summary{font-size:18px}
    +
    40%
    50%
    @@ -366,6 +367,6 @@ details.adv.big summary{font-size:18px}

    Unlisted working page for planning. Not a member page, not an offer. Every number here is a mechanic, not a prediction.

    - +