-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtip.html
78 lines (55 loc) · 1.73 KB
/
tip.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="tip.css">
<title>Tip Calculator</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="column">
<div class="contain">
<p class="labeling">Total Bill:</p><br>
<div class="quantity">
<input type="text" id="billTotal" value="">
</div>
<p>Tip%:</p><br/>
<div class="quantity">
<button class="btn_minus" type="button" id="btnminustippercent" onclick="subtract();">-</button>
<input type="text" id="tippercent" value="">
<button class="btn_minus" type="button" id="btnplustippercent"onclick="checksum();">+</button>
</div>
<p>Number of People:</p><br/>
<div class="quantity">
<button class="btn_minus" type="button" id="btnminus_numofpeople" onclick="numpeople_sub();">-</button>
<input type="text" id="peoplenum" value="">
<button class="btn_minus" type="button" onclick="numpeople_sum();">+</button>
</div>
<button type="button" id="submit" onclick="show();">submit</button>
</div>
</div>
<div class="column">
<div class="contain2">
<div>
<h1>Tip </h1>
<h4 >per Person</h4>
</div>
<div>
<p id="perperson"></p>
</div>
</div>
<div class="contain2">
<div>
<h1>Total </h1>
<h4 >per Person</h4>
</div>
<div>
<p id="perpersoninvest" class="perperson3"></p>
</div>
</div>
</div>
</div>
<script src="tip.js"></script>
</body>
</html>