-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.html
85 lines (77 loc) · 2.68 KB
/
home.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<title>Home - Biller.io</title>
<style>
#del{
margin: 10px;
}
#finalbtn{
height: 8vh;
width: 15vw;
background-color: rgb(21, 22, 24);
color: rgb(241, 241, 232);
border-radius: 15px;
position: relative;
left: 43vw;
}
#finalbtn:hover{
background-color:gold;
color: blue;
}
#total{
font-size: 30px;
font-weight: bold;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
position: relative;
left: 454px;
}
</style>
</head>
<body>
<div class="container my-4">
<h2 class="text-center">Hey Mr xyz , Please provide the details of your purchases</h2>
<!-- took a form layout from bootstrap -->
<div class="mb-3">
<label for="name">Name of item</label>
<input type="text" class="form-control" id="name" aria-describedby="emailHelp">
<div id="emailHelp" class="form-text">Add an item to the list</div>
</div>
<div class="form-group my-3">
<label for="quantity">Quantity Purchased</label>
<input type="text" class="form-control" id="quantity" aria-describedby="emailHelp">
</div>
<div class="form-group my-3">
<label for="quantity">Price of each item</label>
<input type="text" class="form-control" id="price" aria-describedby="emailHelp">
</div>
<button type="submit" id="add" class="btn btn-primary">Add to bill</button>
</div>
<div id="items" class="my-4">
<h2>Invoice #56 - to Mr xyz</h2>
<table class="table" id="table">
<thead>
<tr>
<th scope="col">Sl No.</th>
<th scope="col">Name of item</th>
<th scope="col">Quantity of item purchased</th>
<th scope="col">Amount paid(in rupees)</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody id="tablebody">
</tr>
</tbody>
</table>
<p id="total"></p>
<div id="divfinalbtn">
<button id="finalbtn" onclick="add()">Make my bill</button>
</div>
</div>
</body>
<script src="script.js"></script>
</html>