-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
347 lines (312 loc) · 16.2 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- SEO related tags -->
<meta name="description"
content="Use this Loan Repayment Planner to calculate your monthly payments, interest, and more.">
<meta name="keywords" content="loan, repayment, planner, interest, calculator, amortization, part payment, part, emi">
<meta name="author" content="Jabadurai Selvaraj">
<title>LoanEase - Jabadurai Selvaraj</title>
<!-- Favicon -->
<link rel="icon" href="img/favicon.ico" type="image/x-icon">
<!-- Stylesheets -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.10.0/css/bootstrap-datepicker.min.css"
integrity="sha512-34s5cpvaNG3BknEWSuOncX28vz97bRI59UnVtEEpFX536A7BtZSJHsDyFoCl8S7Dt2TPzcrCEoHBGeM4SUBDBw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="./css/style.css" type="text/css">
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
<!-- Preconnects -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Orbitron&family=Righteous&display=swap" rel="stylesheet">
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels"></script>
</head>
<body class="bg-secondary">
<div class="container">
<div class="sticky-top d-flex justify-content-between" style="height: 0;">
<div>
<small><span class="badge bg-secondary"><i class="fas fa-code-branch"></i> 1.8</span></small>
</div>
<div class="mr-3 mt-3" id="defaultValuesButton">
<a href="#" onclick="setDefaultValues();" class="btn btn-secondary"><i class="fas fa-redo"></i></a>
</div>
</div>
<div class="text-center">
<h2 class="display-4 p-3 app-title"><i class="fas fa-hand-holding-usd"></i> LoanEase</h2>
<h4 class="text-secondary">Your Personal Loan Repayment Schedule Planner</h4>
<header>
<div class="card">
<div class="card-header">
<h1 class="card-title text-center">Welcome to LoanEase</h1>
</div>
<div class="card-body">
<h3 class="card-text text-center">
<i class="fas fa-user"></i>
Hello, <strong class="text-secondary">Savvy Planner!</strong>
</h3>
<p class="card-text text-center">
Looking to master the art of loan repayment?
You're at the right place! <i class="fas fa-smile"></i>
</p>
<p class="card-text text-center">
At <strong class="text-secondary">LoanEase</strong>, we understand that managing loan repayments can be
challenging. Be it mortgages, student loans, car loans, or personal loans, we help you strategize your
repayments effectively and efficiently. With <strong class="text-secondary">LoanEase</strong>, make your
loan repayment journey exciting and stress-free! <i class="fas fa-thumbs-up"></i>
</p>
</div>
</div>
</header>
</div>
<hr>
<main>
<div class="">
<div class="mr-2">
<div class="m-1">
<div class="container-fluid text-center">
<!-- First Row -->
<div class="row">
<div class="col-md-12 border pb-3">
<h6 class="card-title m-2"><i class="fas fa-wallet"></i> Principal Loan Amount</h6>
<div class="input-group btn-group app-input" id="loan_amount_group">
<div class="input-group-text">
$
</div>
<input id="loan_amount" type="text" class="app-input form-control numeric" />
</div>
<input type="range" class="form-range" min="0" max="100000" step="500" id="loan_amount_range">
<div class="form-range-ticks loan_amount_ticks"></div>
</div>
</div>
<!-- Row Two -->
<div class="row">
<div class="col-md-6 border pb-3">
<h6 class="card-title m-2"><i class="fas fa-list-ol"></i> Annual Interest Rate</h6>
<input id="interest_rate" type="text" class="app-input btn-group form-control align-middle numeric" />
<input type="range" class="form-range" min="0" max="25" step="0.1" id="interest_rate_range">
<div class="form-range-ticks interest_rate_ticks"></div>
</div>
<div class="col-md-6 border pb-3">
<h6 class="card-title m-2"><i class="fas fa-donate"></i> Loan Term (Years)</h6>
<input id="loan_period" type="text" class="app-input btn-group form-control align-middle numeric" />
<input type="range" class="form-range" min="0" max="15" step="1" id="loan_period_range">
<div class="form-range-ticks loan_period_ticks"></div>
</div>
</div>
<!-- Row Three -->
<div class="row">
<div class="col-md-3 border pb-3">
<h6 class="card-title m-2"><i class="fas fa-calendar-alt"></i> Loan Start Date</h6>
<div class="input-group date btn-group app-input" id="load_start_date_group">
<div class="input-group-text">
<i class="fas fa-calendar-alt"></i>
</div>
<input id="loan_start_date" type="text" class="form-control form-control-sm monthpicker date"
readonly data-bs-toggle="popover" data-bs-title="Loan Start Date"
data-bs-content="The date the loan starts. By default, the current month and year are selected." />
</div>
</div>
<div class="col-md-6 border pb-3">
<h6 class="card-title m-2"><i class="fas fa-check-square"></i> Part Payments</h6>
<div id="part_payment_selector" class="btn-group" role="group"
aria-label="Basic radio toggle button group">
<input type="radio" class="btn-check" name="part_payments" onchange="calculateEmiAmount()"
value="off" id="off" autocomplete="off" checked>
<label class="btn btn-secondary" for="off">None</label>
<input type="radio" class="btn-check" name="part_payments" onchange="calculateEmiAmount()"
value="monthly" id="monthly" autocomplete="off" checked>
<label class="btn btn-secondary" for="monthly">Monthly</label>
<input type="radio" class="btn-check" name="part_payments" onchange="calculateEmiAmount()"
value="quarterly" id="quarterly" autocomplete="off">
<label class="btn btn-secondary" for="quarterly">Quarterly</label>
<input type="radio" class="btn-check" name="part_payments" onchange="calculateEmiAmount()"
value="yearly" id="yearly" autocomplete="off">
<label class="btn btn-secondary" for="yearly">Yearly</label>
<input type="radio" class="btn-check" name="part_payments" onchange="calculateEmiAmount()"
value="custom" id="custom" autocomplete="off">
<label class="btn btn-secondary" for="custom">Custom</label>
</div>
</div>
<div class="col-md-3 border pb-3">
<h6 class="card-title m-2"><i class="fas fa-coins"></i> Part Payment Per Installment</h6>
<div class="input-group btn-group app-input">
<div class="input-group-text">
$
</div>
<input id="part_payment_installment" type="text" class="form-control form-control-sm numeric" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<hr>
<section id="early_payments_section">
<div class="container text-center py-3">
<div class="row align-items-end">
<div class="col pb-3">
<div class="card border-secondary">
<div class="card-header bg-secondary text-white">
<h6 class="m-2"><i class="fas fa-hand-holding-usd text-white"></i> Total <br>Prepayments</h6>
</div>
<div class="card-body">
<h4 class="card-subtitle mb-2 text-secondary">$<span id="total_prepayments_made"></span></h4>
</div>
</div>
</div>
<div class="col pb-3">
<div class="card border-dark-subtle">
<div class="card-header bg-dark-subtle text-dark">
<h6 class="m-2"><i class="fas fa-percent text-dark"></i> Interest <br>Payable</h6>
</div>
<div class="card-body">
<h4 class="card-subtitle mb-2 text-dark">$<span id="total_interest_payable"></span></h4>
</div>
</div>
</div>
<div class="col pb-3">
<div class="card border-success">
<div class="card-header bg-success text-white">
<h6 class="m-2"><i class="fas fa-check-circle text-white"></i> Completed <br>Installments</h6>
</div>
<div class="card-body">
<h4 class="card-subtitle mb-2 text-success"><span id="actual_installments_made"></span></h4>
</div>
</div>
</div>
<div class="col pb-3">
<div class="card border-info">
<div class="card-header bg-info text-dark">
<h6 class="m-2"><i class="fas fa-coins text-dark"></i> Savings <br>Accumulated</h6>
</div>
<div class="card-body">
<h4 class="card-subtitle mb-2 text-dark">$<span id="total_savings"></span></h4>
</div>
</div>
</div>
<div class="col pb-3">
<div class="card border-danger">
<div class="card-header bg-danger text-white">
<h6 class="m-2"><i class="fas fa-wallet text-white"></i> Monthly <br>Installment</h6>
</div>
<div class="card-body">
<h4 class="card-subtitle mb-2 text-danger">$<span id="monthly_installment"></span></h4>
</div>
</div>
</div>
<div class="col pb-3">
<div class="card border-primary">
<div class="card-header bg-primary text-white">
<h6 class="m-2"><i class="fas fa-credit-card text-white"></i> Total <br>Repayments</h6>
</div>
<div class="card-body">
<h4 class="card-subtitle mb-2 text-primary"><span id="total_amount_paid"></span></h4>
</div>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="chart-container ml-5 mr-5 bg-light">
<div id="bar-chart-container" class="border">
<canvas id="bar-chart-area" />
</div>
<div id="pie-chart-container" class="border">
<canvas id="pie-chart-area" />
</div>
</div>
</section>
<hr>
<section>
<div id="amortization_table" class="align-middle">
<table class="table table-sm table-bordered table-striped" id="schedule">
<thead class="table-light">
<tr>
<th class="text-center align-middle">#</th>
<th class="text-center align-middle">Month</th>
<th class="text-center align-middle detailed-info">Opening <br>Balance</th>
<th class="text-center hide align-middle">Scheduled Payment</th>
<th class="text-center align-middle bg-success text-light">Principal<br> <span class="">(A)</span></th>
<th class="text-center align-middle bg-danger text-light">Interest <br> <span class="">(B)</span></th>
<th class="text-center align-middle bg-info text-light" id="part_payment_hdr">Part Payment <br> (C)</th>
<th class="text-center align-middle bg-secondary text-light">Total Payment<br> <span
id="total_payment_hdr">(A + B)</span></th>
<th class="text-center align-middle">Closing <br>Balance</th>
<th class="text-center align-middle detailed-info">Cumulative <br>Repayment</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</section>
<footer>
<div class="container pt-4">
<div class="row">
<div class="col-lg-4">
<h4>Who We Are</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae urna at lectus pulvinar tristique.
Nullam sodales volutpat orci, eu tincidunt ipsum fringilla nec.</p>
</div>
<div class="col-lg-4">
<h4>Get In Touch</h4>
<!-- <p><i class="fa fa-map-marker"></i> 123 Main Street, City, Country</p> -->
<p><i class="fa fa-phone"></i> +1 123-456-7890</p>
<p><i class="fa fa-envelope"></i> myemail@email.com</p>
</div>
<div class="col-lg-4">
<h4>Connect With Us</h4>
<div class="social-icons">
<a href="#" class="btn btn-social-icon btn-facebook"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="btn btn-social-icon btn-twitter"><i class="fab fa-twitter"></i></a>
<a href="#" class="btn btn-social-icon btn-instagram"><i class="fab fa-instagram"></i></a>
<a href="#" class="btn btn-social-icon btn-linkedin"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-lg-12 text-center">
<p>© <span id="currentYear"></span> LoanEase. All rights reserved. | <a href="#">Privacy
Policy</a> | <a href="#">Terms of
Service</a></p>
</div>
</div>
</div>
</footer>
<script>
document.getElementById("currentYear").innerHTML = new Date().getFullYear();
</script>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js"
integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.11.8/umd/popper.min.js"
integrity="sha512-TPh2Oxlg1zp+kz3nFA0C5vVC6leG/6mm1z9+mA81MI5eaUVqasPLO8Cuk4gMF4gUfP5etR73rgU/8PNMsSesoQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.10.0/js/bootstrap-datepicker.min.js"
integrity="sha512-LsnSViqQyaXpD4mBBdRYeP6sRwJiJveh2ZIbW41EBrNmKxgr/LFZIiWT6yr+nycvhvauz8c2nYMhrP80YhG7Cw=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/5.0.8/jquery.inputmask.min.js"
integrity="sha512-efAcjYoYT0sXxQRtxGY37CKYmqsFVOIwMApaEbrxJr4RwqVVGw8o+Lfh/+59TU07+suZn1BWq4fDl5fdgyCNkw=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="./js/chart.js"></script>
<script src="./js/calc.js"></script>
<script src="./js/script.js"></script>
</body>
</html>