improve investment input field
This commit is contained in:
parent
e4ba1378b6
commit
adc3a6b905
3 changed files with 91 additions and 10 deletions
|
|
@ -27,6 +27,8 @@ function updateCalculations() { window.ROICalculatorApp?.updateCalculations(); }
|
|||
function exportToPDF() { window.ROICalculatorApp?.exportToPDF(); }
|
||||
function exportToCSV() { window.ROICalculatorApp?.exportToCSV(); }
|
||||
function handleInvestmentAmountInput(input) { InputUtils.handleInvestmentAmountInput(input); }
|
||||
function handleInvestmentAmountFocus(input) { InputUtils.handleInvestmentAmountFocus(input); }
|
||||
function handleInvestmentAmountBlur(input) { InputUtils.handleInvestmentAmountBlur(input); }
|
||||
function updateInvestmentAmount(value) { window.ROICalculatorApp?.updateInvestmentAmount(value); }
|
||||
function updateRevenuePerInstance(value) { window.ROICalculatorApp?.updateRevenuePerInstance(value); }
|
||||
function updateServalaShare(value) { window.ROICalculatorApp?.updateServalaShare(value); }
|
||||
|
|
@ -139,7 +141,9 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
<input type="text" class="form-control" id="investment-amount"
|
||||
data-value="500000" value="500,000"
|
||||
oninput="handleInvestmentAmountInput(this)"
|
||||
onchange="updateCalculations()">
|
||||
onfocus="handleInvestmentAmountFocus(this)"
|
||||
onblur="handleInvestmentAmountBlur(this)"
|
||||
placeholder="Enter amount (100,000 - 2,000,000)">
|
||||
</div>
|
||||
<input type="range" class="form-range mt-3" id="investment-slider"
|
||||
min="100000" max="2000000" step="50000" value="500000"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue