-
Notifications
You must be signed in to change notification settings - Fork 113
/
index.html
47 lines (47 loc) · 1.78 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
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body ng-app="LoanCalculator" ng-controller="MainCtrl">
<div class="container">
<h2>Free Loan Calculator!!</h2>
<div class="callout">
<h3>Important Information</h3>
Note: this interest rate may fluctuate <strong>a lot,</strong> given our current economic situation, the volatility of the stock market, foreign wars, and our own susceptibility to the temptation of dollar cheeseburgers.
</div>
<div class="text-center">
<h3>Current Interest Rate:</h3>
<h4 class="text-primary">{{interest_rate}}%</h4>
</div>
<div class="loan-calculator">
<div class="row">
<div class="col-md-2">
<strong>Loan amount:</strong>
</div>
<div class="col-md-8">
$<input type="text" class="form-control" ng-model="principal" />
</div>
</div>
<div class="row">
<div class="col-md-2">
<strong>Loan term:</strong>
</div>
<div class="col-md-8">
48 months
</div>
</div>
<button class="btn btn-success" ng-click="calculatePayment()">Calculate</button>
</div>
<div class="text-center">
<h4>My Monthly Payment is:</h4>
<h4 class="text-info"><strong>${{monthly_payment}}</strong></h4>
</div>
</div>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/controllers/main-ctrl.js"></script>
<script type="text/javascript" src="js/services/bank-service.js"></script>
</body>
</html>