-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
145 lines (139 loc) · 4.19 KB
/
Copy pathindex.html
File metadata and controls
145 lines (139 loc) · 4.19 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Salário Líquido</title>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<h1 class="text-center">Cálculo de Salário Líquido</h1>
<br />
<form>
<div class="row">
<!-- Conent centralization -->
<div class="col-4"></div>
<div class="text-center col-4">
<div class="form-group">
<div class="input-group mb-2">
<div class="input-group-prepend">
<div class="input-group-text">R$</div>
</div>
<input
id="salary"
type="text"
class="form-control"
placeholder="Salário bruto"
/>
</div>
<div class="input-group mb-2">
<div class="input-group-prepend">
<div class="input-group-text">R$</div>
</div>
<input
id="otherDeductions"
type="text"
class="form-control"
placeholder="Outros descontos"
/>
</div>
<div class="input-group">
<input
id="dependents"
type="text"
class="form-control"
placeholder="Qtde. de dependentes"
/>
</div>
</div>
<div class="observation">
<p>
<span class="asterisk">*</span> Preencha todos os campos acima
antes de efetuar o cálculo.
</p>
<p>
<span class="asterisk">*</span> Utilize "." (ponto) para separar a
parte inteira da decimal.
</p>
</div>
<div class="row">
<div class="btn-group col-6">
<button id="clearTextFields" class="btn btn-info">Limpar</button>
</div>
<div class="btn-group col-6">
<input
type="submit"
id="calculatePayroll"
class="btn btn-success"
value="Calcular"
/>
</div>
</div>
<br />
</div>
<!-- Conent centralization -->
<div class="col-4"></div>
</div>
</form>
<div class="row">
<!-- Conent centralization -->
<div class="col-4"></div>
<div class="text-center col-4">
<table class="table table-bordered table-hover table-striped">
<thead>
<tr>
<th scope="col">Evento</th>
<th scope="col">Provento</th>
<th scope="col">Desconto</th>
</tr>
</thead>
<tbody>
<tr>
<td>Salário Bruto</td>
<td id="payroll_salary">-</td>
<td>-</td>
</tr>
<tr>
<td>INSS</td>
<td>-</td>
<td id="payroll_inssDeduction">-</td>
</tr>
<tr>
<td>IRRF</td>
<td>-</td>
<td id="payroll_irrfDeduction">-</td>
</tr>
<tr>
<td>Outros Descontos</td>
<td>-</td>
<td id="payroll_otherDeductions">-</td>
</tr>
<tr>
<th scope="row">Totais</th>
<td id="payroll_totalEarnings">-</td>
<td id="payroll_totalDeductions">-</td>
</tr>
<tr>
<th scope="row">Salário Líquido</th>
<td id="payroll_netSalary" colspan="2">-</td>
</tr>
</tbody>
</table>
</div>
<!-- Conent centralization -->
<div class="col-4"></div>
</div>
<script src="./js/script.js"></script>
</body>
</html>