-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (35 loc) · 1.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="scripts.js"></script>
<title>Document</title>
</head>
<body>
<div class="container">
<header>
<h1 id="title" class="text-center">Tip Calculator</h1>
</header>
<form action="javascript:void(calc())">
<input class="form-control" id="bill" type="text" placeholder="Total Bill">
<br>
<br>
<input class="form-control" id="split" type="text" placeholder="Number of Person">
<br>
<br>
<button type="submit" class="btn-success">Calculate</button>
</br>
</br>
<div class="results">
<p><strong>Tip: <span id="tip"></span></strong></p>
<p><strong>Total: <span id="total"></span></strong></p>
<p><strong>Each person pay: <span id="splitTotal"></span></strong></p>
</div>
</form>
<br>
</div>
</body>
</html>