-
Notifications
You must be signed in to change notification settings - Fork 0
/
palk-js.html
84 lines (75 loc) · 4.29 KB
/
palk-js.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
<html>
<head>
<title>Palgakalkulaator</title>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="wholePage">
<div id="inputValues">
<form name="expenseInputForm">
<div id="typeOfExpenseInput">
<input type="radio" name = "typeOfExpense" value = "netto" id = "typeOfExpenseNetto" checked="checked"> Neto palk <br>
<input type="radio" name = "typeOfExpense" value = "brutto" id = "typeOfExpenseBrutto"> Bruto palk<br>
<!-- <input type="radio" name = "typeOfExpense" value = "employer" id = "typeOfExpenseEmployer"> Tööandja kulu<br> -->
</div>
<div div id="typeOfExpenseValueInput">
<input type="number" id="amountOfExpenseInput">
</div>
<div>
<input type="checkbox" id="considerTaxFreeCheckbox" name="considerTaxFreeCheckbox" value="taxFree" onclick="calculationBasedOnInput()" checked>Arvesta maksuvaba tulu <br>
<input type="checkbox" id="employerUnemploymentCheckbox" name="employerUnemploymentCheckbox" value="employerUnemployment" onclick="calculationBasedOnInput()" checked>Tööandja töötuskindlustusmakse (0.8%)<br>
<input type="checkbox" id="employeeUnemploymentCheckbox" name="employeeUnemploymentCheckbox" value="employeeUnemployment" onclick="calculationBasedOnInput()" checked>Töötaja töötuskindlustusmakse (1.6%)<br>
<input type="checkbox" id="fundedPensionCheckbox" name="fundedPensionCheckbox" value="fundedPension" onclick="calculationBasedOnInput()" checked>Kogumispension (2. samas)<br>
</div>
</form>
</div>
</div>
<div id="calculationOutput">
<table>
<tr>
<td class="nameOfExpense">Tööandja kulu kokku (palgafond)</td>
<td id="employerExpense" class="currency importantCurrency"> </td>
</tr>
<tr>
<td class="nameOfExpense">Sotsiaalmaks</td class="nameOfExpense">
<td id="socialTax" class="currency"> </td>
</tr>
<tr>
<td class="nameOfExpense">Töötuskindlustusmakse (tööandja)</td class="nameOfExpense">
<td id="unemploymentEmployer" class="currency"> </td>
</tr>
<tr>
<td class="nameOfExpense">Brutopalk</td class="nameOfExpense">
<td id="brutto" class="currency importantCurrency"></td>
</tr>
<tr>
<td class="nameOfExpense">Kogumispension (II sammas)</td class="nameOfExpense">
<td id="fundedPension" class="currency"> </td>
</tr>
<tr>
<td class="nameOfExpense">Töötuskindlustusmakse (töötaja)</td class="nameOfExpense">
<td id="unemploymentEmployee" class="currency"> </td>
</tr>
<tr>
<td class="nameOfExpense">Tulumaks</td class="nameOfExpense">
<td id="incomeTax" class="currency"> </td>
</tr>
<tr>
<td class="nameOfExpense">Netopalk</td class="nameOfExpense">
<td id="netto" class="currency importantCurrency"> </td>
</tr>
<tr>
<td><br> </td>
<td> </td>
</tr>
<tr>
<td class="nameOfExpense">Maksuvaba tulu</td class="nameOfExpense">
<td id="taxFreeIncome" class="currency"> </td>
</tr>
</table>
</div>
<script src="calculateSalary.js"></script>
</div>
</body>
</html>