1+ < html >
2+ < head >
3+ < title > Loan Calculator</ title >
4+ < link rel ="stylesheet " href ="calculator.css ">
5+ </ head >
6+ < body >
7+ < div class ="col-md-12 paymentCalc ">
8+
9+ < form id ="loanCalc " onsubmit ="return false ">
10+ < div class ="col-md-12 ">
11+ < h2 > Loan Calculator</ h2 >
12+ < div class ="form-group ">
13+ < label for ="vehiclePrice "> Vehicle Price ($)</ label >
14+ < input type ="text " onfocus ="this.value='' " oninput ="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1'); " class ="form-control " id ="vehiclePrice " placeholder ="Vehicle Price ">
15+ </ div >
16+ </ div >
17+ < div class ="col-md-6 ">
18+ < div class ="form-group ">
19+ < label for ="downPayment "> Down Payment ($)</ label >
20+ < input type ="text " onfocus ="this.value='' " oninput ="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1'); " class ="form-control " id ="downPayment " placeholder ="Down Payment " value ="0 ">
21+ </ div >
22+ </ div >
23+ < div class ="col-md-6 ">
24+ < div class ="form-group ">
25+ < label for ="tradeValue "> Trade In Value ($)</ label >
26+ < input type ="text " onfocus ="this.value='' " oninput ="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1'); " class ="form-control " id ="tradeValue " placeholder ="Trade In Value " value ="0 ">
27+ </ div >
28+ </ div >
29+ < div class ="col-md-6 ">
30+ < div class ="form-group ">
31+ < label for ="intRate "> Interest Rate</ label >
32+ < input type ="text " onfocus ="this.value='' " oninput ="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1'); " class ="form-control " id ="intRate " placeholder ="Interest Rate " value ="3.25 ">
33+ </ div >
34+ </ div >
35+ < div class ="col-md-6 ">
36+ < div class ="form-group ">
37+ < label for ="loanTerm "> Loan Term (Month)</ label >
38+ < input type ="text " onfocus ="this.value='' " oninput ="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1'); " class ="form-control " id ="loanTerm " placeholder ="Loan Term (ex: 36 Months) ">
39+ </ div >
40+ </ div >
41+ < br />
42+ < div class ="submit "> </ div >
43+ < div class ="col-md-12 ">
44+ < input type ="submit " class ="calcBtn " onclick ="calculatePayments() " id ="calculate " value ="Calulate ">
45+ </ div >
46+ < br />
47+ < div >
48+ < table >
49+ < tr >
50+ < td >
51+ < label for ="output "> Monthly Payment ($)</ label >
52+ < input type ="text " class ="output " id ="MonthlyPayment " disabled >
53+ </ td >
54+ </ tr >
55+ < tr >
56+ < td >
57+ < label for ="output "> Total Payment ($)</ label >
58+ < input type ="text " class ="output " id ="TTLPayment " disabled >
59+ </ td >
60+ </ tr >
61+ </ table >
62+ </ div >
63+ </ form >
64+
65+ </ div >
66+
67+
68+ </ div >
69+ < script src ="/calculator.js "> </ script >
70+ </ body >
71+ </ html >
0 commit comments