-
Notifications
You must be signed in to change notification settings - Fork 3
/
takehomesalary.html
148 lines (146 loc) · 5.08 KB
/
takehomesalary.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="author" content="Samuel Henderson">
<meta name="description" content="A utility calculator to calculate your take home salary for people based in the United Kingdom">
<meta name="keywords" content="take home salary, salary, take home">
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous"
/>
<title>Take Home Salary Calculator</title>
</head>
<body>
<main-header></main-header>
<div class="container p-3">
<div
class="card m-auto shadow mb-5 bg-white rounded"
style="max-width: 550px; min-width: 320px;"
>
<div class="card overflow-hidden border-0 rounded-0 text-center">
<img src="./img/money65.jpg" class="card-img rounded-0" alt="..." />
<div
class="card-img-overlay d-flex flex-column justify-content-center"
>
<h1 class="card-title text-uppercase text-light">
Take Home Salary Calculator
</h1>
</div>
</div>
<div class="mx-auto p-4">
<form id="salary-form">
<div class="form-group">
<label for="salary"
>Enter a Salary to see breakdown of deductions</label
>
<div class="input-group mb-2">
<div class="input-group-prepend">
<div class="input-group-text">£</div>
</div>
<input
type="number"
class="form-control"
id="salary"
placeholder="Salary"
/>
</div>
<input type="submit" class="btn btn-sm btn-secondary btn-block" />
</div>
</form>
<div class="py-3">
<small>
Results shown are rates for the 2020 / 2021 tax year and assume
you have a standard personal allowance of £12,500. Income tax
bands are different if you live in Scotland.
</small>
</div>
<div class="d-flex justify-content-center">
<div
id="spinner"
class="spinner-border text-secondary"
role="status"
style="display: none;"
>
<span class="sr-only">Loading...</span>
</div>
</div>
<div id="results" class="py-3" style="display: none;">
<table
class="table table-sm table-striped"
style="font-size: 0.7em;"
>
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Yearly</th>
<th scope="col">Monthly</th>
<th scope="col">Weekly</th>
<th scope="col">Daily</th>
</tr>
</thead>
<tbody>
<tr id="gross-income">
<td>Gross Income</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr id="taxable-income">
<td>Taxable Income</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr id="tax">
<td>Tax</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr id="national-insurance">
<td>National Insurance</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr class="font-weight-bold" id="take-home">
<td>Take Home</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<script src="header.js"></script>
<script src="takeHomeSalary.js"></script>
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"
></script>
</body>
</html>