-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (54 loc) · 1.77 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bill Spliter</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="main">
<h1 id="demo">💸 BILL SPLIT APP 💸 </h1>
<div>
<form id="formdata">
<div class="expense-form">
<div class="field">
<input type="text" name="amount" id="amount" required>
<label for="amount">Expense</label>
</div>
<div class="field">
<input type="text" name="description" id="description">
<label for="description">Description</label>
</div>
<button type="submit">ADD</button>
</div>
</form>
</div>
<div class="expense-list">
<div id="list">
</div>
<br>
<button id="total">CALCULATE TOTAL</button>
<h3>Total Amount : <span id="totalAmt"></span></h3>
</div>
<div>
<form id="formdata2">
<div class="split-section">
<div class="field">
<input type="text" name="people" id="people">
<label for="people">Number of People</label>
</div>
<button type="submit">SPLIT</button>
</div>
</form>
<div class="split-section">
<p>No of People : <span id="peopleCount"></span></p>
<p>Amount per person : <span id="finalAmt"></span></p>
</div>
</div>
</div>
<!-- Javascript for Project -->
<script src="script.js"></script>
</body>
</html>