-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (94 loc) · 4.5 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
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
<!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">
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" href="css/project-common-css.css">
<link rel="stylesheet" href="css/tip-calculator-style.css">
<title>Tip Calculator</title>
</head>
<body>
<div class="tool-container">
<!-- main heading -->
<h1>Tip Calculator</h1>
<div class="tool-container-feild-group">
<div class="tool-container-feild">
<!-- input feilds -->
<div class="tool-input-group">
<label for="bill" class="tool-input-label">Bill($):</label>
<input id="inputBill" placeholder="Bill($)" type="number" name="bill" class="tool-input-feild">
</div>
<div class="tool-input-group">
<label for="tip-persent" class="tool-input-label">Tips(%):</label>
<input id="inputTips" placeholder="Tips(%)" type="number" name="tips" class="tool-input-feild">
</div>
<div class="tool-input-group">
<label for="person" class="tool-input-label">Number of Person:</label>
<input id="inputPerson" placeholder="Person 👥" type="number" name="person" class="tool-input-feild">
</div>
<!-- buttons -->
<div class="tool-input-group">
<button onclick="ResetTipCalculator()" class="tool-btn tool-btn-reset">Reset</button>
<button onclick="CalculateTips()" class="tool-btn tool-btn-calculate">Calculate</button>
</div>
</div>
<div id="tipOutput" class="tool-container-feild">
<!-- output information -->
<div id="OutputInfo" class="tool-output-information tool-output-box">
<h2>Basic Infromations</h2>
<ul>
<li>The <b><i>Bill</i></b> field indicates how much your cost is in the droller.</li>
<li>The <b><i>Tips</i></b> field indicates the tip percentage you want to give.</li>
<li>The <b><i>Number of person</i></b> field indicates how many of you guys want to give the tips.</li>
</ul>
</div>
<!-- output result -->
<div id="OutputResult" class="tool-output-results tool-output-box">
<h2>Result</h2>
<table class="tool-output-table">
<tr>
<td>Bill</td>
<td>:</td>
<td>$<span id="bill">100 $</span></td>
</tr>
<tr>
<td>Tips</td>
<td>:</td>
<td><span id="tip">10 $</span>%</td>
</tr>
<tr>
<td>Person</td>
<td>:</td>
<td><span id="person">2</span> <small>👥</small></td>
</tr>
<tr>
<td>Total Tips</td>
<td>:</td>
<td>$<span id="totalTips">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 class="tool-author-intro">
<p>Develop By <i><a href="https://www.linkedin.com/in/kamrul-hasan100" target="_blank">Kamrul Hasan</a></i> & Powered By <i><a href="https://www.insidethediv.com/" target="_blank">InsideTheDiv</a></i></p>
</div>
</div>
<!-- javascript file link -->
<script src="js/project-common-js.js"></script>
<script src="js/tip-calculator.js"></script>
</body>
</html>