-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (53 loc) · 2.21 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
<!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" />
<link rel="stylesheet" href="./assets/css/style.css" />
<title>VAT Calculator</title>
</head>
<body>
<main>
<section class="calculator">
<h1>Value Added Tax Calculator</h1>
<div class="container">
<h2>What Should Be Calculated?</h2>
<div>
<input type="radio" name="calc" id="net2gross" value="add" onchange="add()" checked>
<label for="net2gross">Add Value Added Tax (Net to gross)</label>
</div>
<div>
<input type="radio" name="calc" id="gross2net" value="deduct" onchange="deduct()">
<label for="gross2net">Deduct Value Added Tax (Gross to Net)</label>
</div>
</div>
<div class="container">
<h2>Value Added Tax Rate</h2>
<input type="radio" name="rate" id="nonFood" value="0.19" checked>
<label for="nonFood">19%</label>
<input type="radio" name="rate" id="food" value="0.07">
<label for="food">7%</label>
</div>
<div class="container">
<h2 class="netOrGrossTxt">Net Amount In Euro<span>*</span></h2>
<input type="number" placeholder="Type here" step="0.01" required>
</div>
<button onclick="vatCalc()">CALCULATE</button>
<section>
<h3 class="result">Result</h3>
<div class="container">
<p class="result__txt">Value Added Tax Amount</p>
<p class="result__vatAmount"></p>
</div>
<div class="container">
<p class="result__txt result__netOrGross">Gross Amount</p>
<p class="result__grossAmount"></p>
</div>
</section>
</section>
</main>
<script src="./assets/js/main.js"></script>
</body>
</html>
<!-- sass --watch assets/scss/style.scss assets/css/style.css -->