diff --git a/index.html b/index.html index 61e893c..5d170bf 100644 --- a/index.html +++ b/index.html @@ -1343,16 +1343,17 @@
- +
- +
+
@@ -2112,6 +2113,21 @@ function updateROI() { const phase = document.getElementById('roiPhase').value; const cyclesDone = parseInt(document.getElementById('roiCyclesDone').value) || 0; + // If no inputs provided, show placeholder state + const hasInput = document.getElementById('roiDeposits').value.trim() !== '' || document.getElementById('roiTotalEarned').value.trim() !== ''; + + if (!hasInput) { + document.getElementById('roiStatROI').querySelector('.roi-stat-value').textContent = '—'; + document.getElementById('roiStatRecouped').querySelector('.roi-stat-value').textContent = '—'; + document.getElementById('roiStatRemaining').querySelector('.roi-stat-value').textContent = '—'; + document.getElementById('roiBarROI').style.width = '0%'; + document.getElementById('roiStatPhase').querySelector('.roi-stat-value').textContent = '—'; + document.getElementById('roiBarPhase').style.width = '0%'; + document.querySelectorAll('.roi-ladder-step').forEach(el => el.classList.remove('active', 'passed')); + document.getElementById('roiMilestones').innerHTML = '
Enter your numbers above to see your progress 🚀
'; + return; + } + // Phase data: [cycles_this_phase, cycles_needed_for_next, profit_per_cycle, next_phase_label] const PHASE_DATA = { l4l3: { cycles: 5, profitPer: 133.20, nextLabel: 'L5+L3', needsCapital: 660 },