-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
79 lines (79 loc) · 2.91 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Loan Calculator</title>
</head>
<body>
<main id="app">
<ui5-title level="H1">Loan Calculator</ui5-title>
<ui5-panel
fixed accessible-role="Complementary"
header-text="Basic Information">
<div id="error"></div>
<form>
<div>
<ui5-label class="label" for="startDate" required>Start Date:</ui5-label>
<ui5-date-picker class="field" id="startDate" format-pattern="dd/MM/yyyy"></ui5-date-picker>
</div>
<div>
<ui5-label for="loanAmount" required>Loan Amount:</ui5-label>
<ui5-input type="number" id="loanAmount" placeholder="Enter loan amount" value="100000"></ui5-input>
</div>
<div>
<ui5-label for="interestRate" required>Interest Rate (%):</ui5-label>
<ui5-input type="number" id="interestRate" placeholder="Enter interest rate" value="3"></ui5-input>
</div>
<div>
<ui5-label for="loanTerm" required>Loan Term (months):</ui5-label>
<ui5-input type="number" id="loanTerm" placeholder="Enter loan term" value="180"></ui5-input>
</div>
<div class="hidden">
<ui5-slider id="loanTermSlider" step="1" min="0" max="30" value="15" show-tooltip show-tickmarks label-interval="2"></ui5-slider>
</div>
<div>
<ui5-checkbox id="fixedPrincipal" text="Fixed principal" ></ui5-checkbox>
</div>
<div class="table-container">
<div>
<ui5-panel
accessible-role="Complementary"
header-text="Advanced settings"
collapsed >
<div id="extraPayments"></div>
<ui5-button id="addExtraPayment">Add extra payment</ui5-button>
<div id="interestChanges"></div>
<ui5-button id="addInterestChange">Add Interest Rate Change</ui5-button>
</ui5-panel>
</div>
</div>
<div>
<ui5-button id="calcBtn" design="Emphasized">Calculate</ui5-button>
</div>
</form>
</ui5-panel>
<ui5-panel
fixed accessible-role="Complementary"
header-text="Payment Information"
class="hidden"
id="chartsPanel">
<div>
<section id="info"></section>
<section id="charts">
<div id="lineChart"></div>
<div id="pieChart"></div>
</section>
</div>
</ui5-panel>
<ui5-panel
accessible-role="Complementary"
header-text="Payments per month"
expanded
class="hidden">
<div id="table"></div>
</ui5-panel>
</main>
<script type="module" src="/src/js/main.js"></script>
</body>
</html>