-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (105 loc) · 5.12 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">
<title>Loan Calculator</title>
</head>
<body class="bg-dark">
<div class="container">
<div class="row">
<div class="col-md-6 mx-auto">
<div class="card card-body mt-5">
<h4 class="heading display-5 text-center"><strong>Loan Calculator</strong></h4>
<hr>
<!-- Loan Calculator Form -->
<form action="" id="loan-form">
<!-- Loan Amount Input -->
<div class="form-group">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="number" id="amount" class="form-control"
placeholder="Loan Amount">
</div>
</div><!-- Loan Amount Input -->
<!-- Loan Interest Input -->
<div class="form-group">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">%</span>
</div>
<input type="number" id="interest" class="form-control"
placeholder="Interest Fraction">
</div>
</div><!-- Loan Interest Input -->
<!-- Payment Years -->
<div class="form-group">
<input type="number" id="years" class="form-control"
placeholder="Years To Return">
</div><!-- Payment Years -->
<!-- Submit Button -->
<div class="for-group">
<input type="submit" id="calculate" value="Calculate" class="btn btn-dark btn-block">
</div><!-- Submit Button -->
</form><!-- Loan Calculator Form -->
<!-- Loading Spinner GIF -->
<div class="loading text-center">
<img src="img/loading.gif" alt="">
<h6>Calculating...</h6>
</div><!-- Loading Spinner GIF -->
<!-- Loan Results -->
<div id="results">
<div class="pt-4">
<h5 class="text-center">Results</h5>
<hr>
<!-- Monthly Return -->
<div class="form-group">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Monthly Return:</span>
</div>
<input type="number" id="monthly-payment" class="form-control"
disabled>
</div>
</div><!-- Monthly Return -->
<!-- Total Payment -->
<div class="form-group">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Total Payment: </span>
</div>
<input type="number" id="total-payment" class="form-control"
disabled>
</div>
</div><!-- Total Payment -->
<!-- Total Interest -->
<div class="form-group">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Total Interest: </span>
</div>
<input type="number" id="total-interest" class="form-control"
disabled>
</div>
</div><!-- Total Interest -->
</div>
</div><!-- Loan Results -->
</div> <!-- Card Div -->
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<script src="app.js"></script>
</body>
</html>