add Startkapital input for renter initial savings

This commit is contained in:
Johannes
2026-03-20 02:05:41 +01:00
parent 9b9fd6a76a
commit 1bf69a6043
3 changed files with 11 additions and 2 deletions

3
ui.js
View File

@@ -24,6 +24,7 @@ const get_params = () => ({
monthly_rent: +document.getElementById('monthly_rent').value,
rent_increase: +document.getElementById('rent_increase').value,
renters_ins: +document.getElementById('renters_ins').value,
start_capital: +document.getElementById('start_capital').value,
});
// ===== Charts =====
@@ -227,7 +228,7 @@ const SLIDER_IDS = [
SLIDER_IDS.forEach(wire_slider);
// wire plain number inputs (no slider)
['home_price', 'insurance', 'monthly_rent', 'renters_ins'].forEach((id) => {
['home_price', 'insurance', 'monthly_rent', 'renters_ins', 'start_capital'].forEach((id) => {
document.getElementById(id).addEventListener('input', recalc);
});