-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (74 loc) · 3.24 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!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="Css/style.css">
<title>Tip Calculator</title>
</head>
<body>
<div class="tip-container">
<h1><i>Tip Calculator</i></h1>
<div class="container-feild-group">
<div id="tipInput" class="container-feild">
<div class="input-group">
<label for="bill" class="input-label">Bill:</label>
<input placeholder="Bill" type="number" name="bill" min="0" class="input-feild">
</div>
<div class="input-group">
<label for="tip-persent" class="input-label">Tips(%):</label>
<input placeholder="Tips(%)" type="number" name="tips" min ="1" max="100" class="input-feild">
</div>
<div class="input-group">
<label for="person" class="input-label">Number of Person:</label>
<input placeholder="Person" type="number" name="person" min="1" max="25" class="input-feild">
</div>
<div class="input-group">
<button class="btn btn-reset">Reset</button>
<button class="btn btn-calculate">Calculate</button>
</div>
</div>
<div id="tipOutput" class="container-feild">
<div id="OutputInfo" class="output-information output-box">
<ul>
<li><b>Bill</b> indicate that how much your cost</li>
<li><b>Tip(%)</b> indicate that tip persentage</li>
<li><b>Number of person</b> is how many person will share the bill</li>
</ul>
</div>
<div id="OutputResult" class="output-results output-box">
<h3>Calculate Result</h3>
<table>
<tr>
<td>Bill</td>
<td>:</td>
<td><span id="bill">100 $</span></td>
</tr>
<tr>
<td>Tip</td>
<td>:</td>
<td><span id="tip">10 $</span></td>
</tr>
<tr>
<td>Total Person</td>
<td>:</td>
<td><span id="totalPerson">2</span></td>
</tr>
<tr>
<td>Total Bill</td>
<td>:</td>
<td><span id="totalBill">110 $</span></td>
</tr>
<tr>
<td>Per Person Bill</td>
<td>:</td>
<td><span id="perPersonBill">55 $</span></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>