-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (98 loc) · 2.63 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
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html>
<head>
<title>Tip Pool</title>
<link rel="stylesheet" href="style.css" />
<!-- include CSS for Jasmine -->
<link
rel="stylesheet"
href="https://unpkg.com/jasmine-core/lib/jasmine-core/jasmine.css"
/>
</head>
<body>
<h1>Tip Pool</h1>
<section>
<aside>
<h4>Input payment info</h4>
<form id="paymentForm">
<label for="billAmt">Bill Amount</label>
<input type="number" id="billAmt" autofocus />
<label for="tipAmt">Tip Amount</label>
<input type="number" id="tipAmt" />
<button>submit</button>
</form>
<table id="paymentTable">
<thead>
<tr>
<th>Bill amt</th>
<th>Tip amt</th>
<th>Tip percent</th>
</tr>
</thead>
<tbody></tbody>
</table>
</aside>
<aside>
<h4>Input server info</h4>
<form id="serverForm">
<label for="serverName">Server Name</label>
<input id="serverName" />
<button>submit</button>
</form>
<table id="serverTable">
<thead>
<tr>
<th>Server Name</th>
<th>Earnings</th>
</tr>
</thead>
<tbody></tbody>
</table>
</aside>
</section>
<section id="summary">
<h3>Shift summary</h3>
<table id="summaryTable">
<thead>
<tr>
<th>Bill total</th>
<th>Tip total</th>
<th>Tip percent avg</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</section>
<!-- uncoment the following to run Jasmine tests -->
<link
rel="stylesheet"
type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/jasmine/3.3.0/jasmine.css"
/>
<script
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jasmine/3.3.0/jasmine.js"
></script>
<script
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jasmine/3.3.0/jasmine-html.js"
></script>
<script
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jasmine/3.3.0/boot.js"
></script>
<script src="payments.test.js"></script>
<script src="servers.test.js"></script>
<script src="helpers.test.js"></script>
<!-- end of Jasmine tests -->
<script src="payments.js"></script>
<script src="servers.js"></script>
<script src="helpers.js"></script>
</body>
</html>