-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.html
162 lines (154 loc) · 7.56 KB
/
app.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
<!doctype html>
<html lang="en" class="h-100">
<head>
<title>Loan Express: A Coding Project By Chikere Ezekannagha</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/5db21ba9c6.js" crossorigin="anonymous"></script>
<!-- Google Fonts for Shrikhand -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Shrikhand&display=swap" rel="stylesheet">
<link href="/css/site.css" rel="stylesheet">
<link rel="icon" type="image/png" href="/img/favicon.ico">
</head>
<body class="d-flex flex-column h-100">
<!-- === Nav Section === -->
<nav class="navbar navbar-expand-md navbar-dark fixed-top">
<div class="container">
<a class="navbar-brand logoFont" href="#"><img src="/img/favicon-32x32.png" class="d-inline-block align-text-top"
width="32" height="30"> LOAN EXPRESS</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse"
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav ms-auto mb-2 mb-md-0">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="app.html">The App</a>
</li>
<li class="nav-item">
<a class="nav-link" href="code.html">The Code</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" href="https://github.com/c-eze/MortgageLoanCalculator">Git Repo</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" href="#">About</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- === Main Section === -->
<main class="flex-shrink-0">
<div class="container mt-5">
<div class="row">
<div class="col">
<h3>Loan Calculator</h3>
</div>
</div>
<div class="row row-cols-1 row-cols-lg-2 mb-2 gy-3">
<!--Calculator form-->
<div class="col">
<form class="row formColor py-2">
<div class="col-12 mb-1">
<label for="loanAmount" class="form-label mb-0">Loan Amount:</label>
<input id="loanAmount" type="number" class="form-control border border-secondary"
placeholder="Loan Amount" value="15000" aria-label="Loan Amount">
</div>
<div class="col-12 mb-1">
<label for="payments" class="form-label mb-0">Payments:</label>
<input id="payments" type="number" class="form-control border border-secondary"
placeholder="Payments" value="60" aria-label="Payments">
</div>
<div class="col-12 mb-3">
<label for="rate" class="form-label mb-0">Rate:</label>
<input id="rate" type="number" class="form-control border border-secondary"
placeholder="Rate" value="3" aria-label="End Value">
</div>
<div class="col-12 d-flex justify-content-end">
<button id="btnSubmit" type="button" class="btn btn-info">Calculate</button>
</div>
</form>
</div>
<!--Payment output-->
<div class="col">
<p class="text-center fs-5"><em>Your Monthly Payments</em></p>
<p class="text-center fs-1 fw-bold" id="monthlyPayments">
<!--=== monthly payments goes here ===-->
</p>
<div class="row row-cols-2">
<div class="col">Total Principal</div>
<div class="col" id="totalPrincipal" >
<!--=== total principal goes here ===-->
</div>
<div class="col">Total Interest</div>
<div class="col" id="totalInterest">
<!--=== total interest goes here ===-->
</div>
<div class="col">Total Cost</div>
<div class="col fw-bold" id="totalCost">
<!--=== total cost goes here ===-->
</div>
</div>
</div>
</div>
<!--Results table-->
<div class="table-responsive">
<table class="table table-striped table-sm">
<thead class="bg-primary text-white">
<tr>
<th>Month</th>
<th>Payment</th>
<th>Principal</th>
<th>Interest</th>
<th>Total Interest</th>
<th>Balance</th>
</tr>
</thead>
<tbody id="results">
<!-- Results go here -->
</tbody>
</table>
</div>
</div>
</main>
<!-- === Footer Section === -->
<footer class="footer mt-auto py-3">
<div class="container">
<div class="row row-cols-1 row-cols-lg-3 gy-3">
<div class="col order-last order-lg-first text-light text-center text-lg-start">
<div><span class="text-muted">©2024</span> Chikere</div>
</div>
<div class="col d-flex justify-content-center">
<img src="/img/favicon-32x32.png" alt="Chikere Logo" height="45">
</div>
<div class="col d-flex justify-content-center justify-content-lg-end">
<div class="row">
<div class="col social"><a href="https://www.linkedin.com/in/chikere-ezekannagha/" target="_blank"><i class="fab fa-linkedin fa-2x"></i></a></div>
<div class="col social"><a href="https://github.com/c-eze/" target="_blank"><i class="fab fa-github fa-2x"></i></a></div>
<div class="col social"><a href="https://twitter.com/@chikeredev" target="_blank"><i class="fab fa-twitter fa-2x"></i></a></div>
<div class="col social"><a href="https://youtube.com/@chikeredev" target="_blank"><i class="fab fa-youtube fa-2x"></i></a></div>
</div>
</div>
</div>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous">
</script>
<script src="/js/site.js"></script>
<script>
document.getElementById("btnSubmit").addEventListener("click", getValues);
</script>
</body>
</html>