-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
180 lines (176 loc) · 9.28 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<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">
<link rel="stylesheet" href="vendor/bootstrap.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.3/css/all.css" integrity="sha384-SZXxX4whJ79/gErwcOYf+zWLeJdY/qpuqC4cAa9rOGUstPomtqpuNWT9wdPEn2fk" crossorigin="anonymous">
<link rel="stylesheet" href="/style.css">
<title>Paycheck Calculator</title>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<div class="container-fluid">
<a href="#" class="navbar-brand">Paycheck Calculator</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="me-auto"></ul>
<form class="d-flex" id="earning-frm">
<input type="text" name="Regular" class="form-control me-sm-2 rate-group" id="main-earning" data-week="main-earning" placeholder="Regular Rate">
<div id="rate-input"></div>
<div id="name-input"></div>
<input type="text" name="hours" class="form-control me-sm-2" id="week-hours" placeholder="Hours Worked">
<button class="btn btn-primary me-2" id="add-pay" title="Add an additional pay, premium pay or weekend pay"><i class="fas fa-plus"></i></button>
<input type="submit" class="btn btn-secondary" value="Calculate" id="calculate">
</form>
</div>
</div>
</nav>
<div class="container-xxl">
<div class="row mt-4">
<div class="col-xl-3 col-lg-4" id="tax-info-frm">
<div class="row mb-1">
<label for="state" class="col-form-label col-sm-3 col-lg-3 col-xl-3">State</label>
<div class="col-sm-9 col-lg-9 col-xl-9">
<select class="form-select" id="state">
<option value="" selected hidden>--State--</option>
<option value="IL">Illinois</option>
<option value="NY">New York</option>
<option value="WI">Wisconsin</option>
</select>
</div>
</div>
<div class="row mb-1" id="status-container">
<label for="status" class="col-form-label col-sm-3 col-lg-3 col-xl-3">Status</label>
<div class="col-sm-9 col-lg-9 col-xl-9">
<select class="form-select" id="status">
<option value="single">Single</option>
<option value="marriedJ">Married</option>
<option value="marriedS">Married Filing Seperate</option>
<option value="hoh">Head of Household</option>
<option value="widower">Qualified Widow</option>
</select>
</div>
</div>
<div class="row mb-1">
<label for="frequency" class="col-form-label col-sm-3 col-lg-3 col-xl-3">Frequency</label>
<div class="col-sm-9 col-lg-9 col-xl-9">
<select class="form-select" id="frequency">
<option value="daily" hidden>Daily</option>
<option value="weekly" selected>Weekly</option>
<option value="biweekly" hidden>Biweekly</option>
<option value="monthly" hidden>Monthly</option>
<option value="semimonthly" hidden>Semimonthly</option>
<option value="quarterly" hidden>Quarterly</option>
</select>
</div>
</div>
<div class="row mb-1">
<label for="fed-allowance" class="col-form-label col-sm-3 col-lg-7 col-xl-7">Federal Allowance</label>
<div class="col-sm-9 col-lg-5 col-xl-5">
<input type="text" id="fed-allowance" class="form-control" value="0" disabled>
</div>
</div>
<div class="row mb-1">
<label for="state-allowance" class="col-form-label col-sm-3 col-lg-7 col-xl-7">State Allowance</label>
<div class="col-sm-9 col-lg-5 col-xl-5">
<input type="text" id="state-allowance" class="form-control" value="0" disabled>
</div>
</div>
<!--
TODO: Move the Earning Form here instead of the navbar.
-->
<!--
Include Pre-Tax Deductions
https://smartasset.com/taxes/paycheck-calculator#FVfiKNtmog
-->
</div>
<div class="col-xl-9 col-lg-8">
<div class="row gx-1">
<div class="col-lg-6">
<table class="table">
<thead>
<tr class="table-active">
<th scope="col">Earning</th>
<th scope="col">Rate</th>
<th scope="col">Hours</th>
<th scope="col">Amount</th>
</tr>
</thead>
<tbody id="earning-tbl-list">
</tbody>
<tfoot>
<th scope="row" colspan="3" id="earning-tbl-total">Total</th>
<td>0</td>
</tfoot>
</table>
</div>
<div class="col-lg-6">
<table class="table">
<thead>
<tr class="table-active">
<th scope="col">Taxes</th>
<th scope="col">Amount</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row" id="fed-withhold">Fed W/H</th>
<td class="tax-row-amount">0</td>
</tr>
<tr>
<th scope="row" id="fica-social">FICA Social</th>
<td class="tax-row-amount">0</td>
</tr>
<tr>
<th scope="row" id="fica-medicare">FICA Medicare</th>
<td class="tax-row-amount">0</td>
</tr>
<tr>
<th scope="row" id="state-withhold"><span id="state-withhold-select"></span> W/H</th>
<td class="tax-row-amount">0</td>
</tr>
</tbody>
<tfoot>
<th scope="row" colspan="1" id="tax-tbl-total">Total</th>
<td>0</td>
</tfoot>
</table>
</div>
</div>
<div class="row gx-1">
<div class="col">
<table class="table" id="summary-tbl">
<thead >
<tr class="table-active">
<th scope="col">Gross</th>
<th scope="col">Taxable</th>
<th scope="col">Taxes</th>
<th scope="col">Net</th>
</tr>
</thead>
<tbody>
<tr>
<td id="gross">0</td>
<td id="taxable">0</td>
<td id="taxes">0</td>
<td id="net">0</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous">
</script>
<script type="module" src="/app.js"></script>
<script type="module" src="components/navbar.js"></script>
<script type="module" src="/withholding-info/states-config.js"></script>
</body>
</html>