-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (42 loc) · 2.16 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
<!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>Salary calculator</title>
<link rel="stylesheet" href="global.css">
</head>
<body>
<h1 class="main-heading">Salary calculator</h1>
<div id="wrapApp" class="page">
<div class="input-wrap">
<input type="number" v-model.number='time' placeholder="Time">
<input type="number" v-model.number='rate' placeholder="Rate">
<input type="number" v-model.number='bonus' placeholder="Bonus" v-if="bonusCheck">
<input type="number" v-model.number="dollarRate" placeholder="Dollar rate" v-if="taxFivePercentCheck">
</div>
<div class="checkbox-wrap">
<label for="vacation" title="Отпуск 4%">Vacation:<input id="vacation" type="checkbox" v-model="vacation" ></label><div class="vertical-line"></div>
<label for="tax" title="Налог +45$">Tax:<input id="tax" type="checkbox" v-model="tax" ></label><div class="vertical-line"></div>
<label for="bonusCheck" title="Премия">Bonus:<input id="bonusCheck" type="checkbox" v-model="bonusCheck"></label><div class="vertical-line"></div>
<label for="tax5" title="Налог 5%">Tax 5%:<input id="tax5" type="checkbox" v-model="taxFivePercentCheck"></label>
</div>
<button v-on:click='calcMoney()'>OK</button>
<div class="output-wrap" v-if="totalCalc > 0">
<span>Time: {{ time }}</span>
<span>Over time: {{ overTime }}</span>
<span>Rate: {{ rate }}</span>
<span>Over rate: {{ overRate }}</span>
<span v-if="bonusCheck">Bonus: {{ bonus }}</span>
<span>Money: {{ '$ ' + totalCalc }}</span>
<span v-if="taxFivePercentCheck">Tax 5%: {{taxFivePercentCalc.toFixed(2)}}</span>
</div>
<div class="message" v-else>
<span>Введите данные :)</span>
</div>
</div>
<script src="https://unpkg.com/vue@next"></script>
<script src="main.js"></script>
</body>
</html>