add Startkapital input for renter initial savings
This commit is contained in:
3
ui.js
3
ui.js
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user