-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculator.html
39 lines (39 loc) · 1.23 KB
/
calculator.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Load Calculator</title>
<script type="text/javascript" src="calculator.js"></script>
<link rel="stylesheet" href="calculator.css">
</head>
<body>
<header>
<h1>Loan Calculator 💰💲💵</h1>
</header>
<section class="calc-container">
<form id="calc-form">
<label>
Loan Amount
<input type="text" id="loan-amount">
</label>
<label>
Term in Years
<input type="text" id="loan-years">
</label>
<label>
Yearly Rate
<input type="text" id="loan-rate">
</label>
<button type="submit" id="calc-submit">Calculate</button>
</form>
<div class="results-container">
<h3>Monthly Payment<h3>
<span id="monthly-payment"></span>
<span id="results">$2637.97</span>
</div>
</section>
<div id="invalid-amount">Please fill out loan amount correctly in currency value.</div>
<div id="invalid-years">Please fill out term in years correctly in years value.</div>
<div id="invalid-rate">Please fill out yearly rate correctly in decimal or percentage value.</div>
</body>
</html>