-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (149 loc) · 6.52 KB
/
index.html
File metadata and controls
160 lines (149 loc) · 6.52 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!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>Car Purchase Eligibility Calculator</title>
<link rel="icon" href="images/yt.ico">
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
<!-- Pacifo Font -->
<link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet'>
<!-- Bebas Font -->
<link href='https://fonts.googleapis.com/css?family=Bebas Neue' rel='stylesheet'>
<!-- Ubuntu Font -->
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet'>
</head>
<body>
<center><h1 id="table-title">Car Loan Calculator</h1></center>
<center>
<table>
<tr>
<td colspan="5" class="td_subtopic">Monthly Repayment:</td>
</tr>
<tr>
<td class="td_first_row">Car Price</td>
<td class="td_second_row">MYR</td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<input type="number" id="car_price" value="95000"><br><span id="car_price_error"></span>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row">Interest Rate</td>
<td class="td_second_row">%</td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<input type="number" id="interest_rate" value="3.2"><br><span id="interest_rate_error"></span>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row">Loan Period</td>
<td class="td_second_row">Year</td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<input type="number" id="loan_period" value="9"><br><span id="loan_period_error"></span>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row">Down Payment</td>
<td class="td_second_row">%</td>
<td class="td_third_row">
<input type="number" id="down_payment_pct" value="10"><br><span id="down_payment_pct_error"></span>
</td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row">MYR</td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<p id="down_payment_output"></p>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row">Applied Loan Amount (Principal)</td>
<td class="td_second_row">%</td>
<td class="td_third_row">
<p id="applied_loan_amount_pct_output"></p>
</td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row"></td>
<td class="td_second_row">MYR</td>
<td class="td_third_row"></td>
<td class="td_fourth_row">
<p id="applied_loan_amount_output"></p>
</td>
<td class="td_fifth_row"></td>
</tr>
<tr>
<td class="td_first_row">Total Interest Paid</td>
<td class="td_second_row">MYR</td>
<td class="td_third_row"></td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row">
<p id="total_interest_paid_output"></p>
</td>
</tr>
<tr>
<td class="td_first_row">Total Loan Amount</td>
<td class="td_second_row">MYR</td>
<td class="td_third_row"></td>
<td class="td_fourth_row"></td>
<td class="td_fifth_row">
<p id="total_loan_amount_output"></p>
</td>
</tr>
<tr>
<td class="td_first_row grand_total"></td>
<td class="td_second_row grand_total">
<p id="monthly_repayment_unit_output"></p>
</td>
<td class="td_third_row grand_total"></td>
<td class="td_fourth_row grand_total"></td>
<td class="td_fifth_row grand_total">
<p id="monthly_repayment_output"></p>
</td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td colspan="5"></td>
</tr>
</table>
<center>
<a id="btn-calc" class="neon_button" href="#">
<span></span>
<span></span>
<span></span>
<span></span>
Calculate
</a>
</center>
</body>
<footer>
<center>
<p class="footer_copyright">
2022 Copyright © Yottasoft Technology
</p>
</center>
<center>
<p class="footer_copyright">
All rights reserved.
</p>
</center>
</footer>
</html>