-
Notifications
You must be signed in to change notification settings - Fork 0
/
machinery.html
88 lines (82 loc) · 2.56 KB
/
machinery.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Machinery Panel</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" />
<script src="jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<style>
#back {
position: absolute;
color: white;
left: 10px;
cursor: pointer;
}
.icon {
border: none;
background-color: transparent;
}
#add-drinks-box {
visibility: hidden;
position: fixed;
background-color: rgb(232, 249, 255);
padding: 2%;
box-shadow: 0 0 5px;
border-radius: 10px;
left: 45%;
top: 45%;
}
</style>
</head>
<body>
<header style="background-color: #2c3c80; color: white" class="text-center">
<div onclick="location.href = 'index.html'" id="back">< Home</div>
<h1>VIMTO SOFTDRINKS DISPENSER</h1>
<h2>Machinery Panel</h2>
</header>
<h2>Product Database</h2>
<table id="brand-table" class="table">
<thead>
<tr>
<th>Brand</th>
<th>Price</th>
<th>Stock</th>
<th>Remove brand</th>
</tr>
</thead>
<tbody></tbody>
</table>
<!-- add drinks -->
<button class="btn btn-primary" onclick="addDrinks()">Add drinks</button>
<div id="add-drinks-box">
<form onsubmit="submitInfo()">
<label for="brand">Brand name</label> <br />
<input type="text" id="brand" required /> <br /><br />
<label for="price">Price</label> <br />
<span>RM</span
><input type="number" id="price" min="0" max="2" step="0.1" required />
<br /><br />
<label for="stock">Stock</label> <br />
<input type="number" id="stock" min="0" max="20" required />
<button type="button" onclick="closeBox()">Cancel</button>
<input type="submit" value="Save" />
</form>
</div>
<br /><br />
<h2>Coin Database</h2>
<table id="coin-table" class="table">
<thead>
<tr>
<th>Coin Type</th>
<th>Coin Count</th>
</tr>
</thead>
<tbody></tbody>
</table>
<button class="btn btn-primary" onclick="restore()">Restore Default</button>
<script src="./js/machinery.js"></script>
</body>
</html>