-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
90 lines (88 loc) · 2.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Loan Calculator</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<div class="error"><p>Please Check Your Numbers!</p></div>
<div class="heading">
<h1>Loan Calculator</h1>
</div>
<hr />
<div class="main-content">
<div class="user-form">
<form class="loan-form" id="user-form">
<div class="user-inputs">
<input
class="value-input"
type="number"
name="loan-amount"
id="loan-amount"
placeholder="$ Loan Amount"
/>
<input
class="value-input"
type="number"
name="interest"
id="interest"
placeholder="% Interest"
/>
<input
class="value-input"
type="number"
name="years-to-repay"
id="years-to-repay"
placeholder="Years To Repay"
/>
<input type="submit" value="Calculate" id="submit-btn" />
</div>
</form>
</div>
<hr />
<div class="image">
<h1>Calculating...</h1>
<img src="https://media1.tenor.com/images/d6cd5151c04765d1992edfde14483068/tenor.gif?itemid=5662595" alt="" />
</div>
<div class="calculate-result">
<div class="result-heading"><h1>Results</h1></div>
<div class="result">
<h4>Monthly Payment :</h4>
<input
class="result-input"
type="number"
name="monthly-payment"
id="monthly-payment"
disabled
/>
</div>
<div class="result">
<h4>Total Payment :</h4>
<input
class="result-input"
type="number"
name="total-payment"
id="total-payment"
disabled
/>
</div>
<div class="result">
<h4>Total Interest :</h4>
<input
class="result-input"
type="number"
name="total-interest"
id="total-interest"
disabled
/>
</div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>