-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (62 loc) · 3.23 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
<!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>Document</title>
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.3.3/sweetalert2.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="add-product">
<div class="container">
<h1>E-Store</h1>
<label for="">Product Name <span class="text-danger">*</span></label>
<input class="form-control" type="text" placeholder="Product Name" id="productName">
<div class="alert alert-danger d-none" id="nameAlert">please start with capital letter</div>
<label for="">Product category</label>
<select class="form-select form-select" name="category" id="productCategory" placeholder="Product Category">
<option selected>Choose a category</option>
<option value="Phones">Phones</option>
<option value="Labtops">Labtops</option>
<option value="Smart Watches">Smart Watches</option>
<option value="Headphones">Headphones</option>
<option value="Accessories">Accessories</option>
</select>
<label for="">Product Price</label>
<input class="form-control" type="number" placeholder="Product price" id="productPrice">
<label for="">Product description</label>
<textarea class="form-control" placeholder="Product Description" id="productDescription"></textarea>
<button class="btn btn-secondary" id="addBtn" disabled>Add Product</button>
<button class="btn btn-secondary" onclick="clearForm()">clear</button>
</div>
<input class="search form-control" type="search" placeholder="search..." id="search"
onkeyup="search(this.value)">
<table class="table table-dark table-sm">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Category</th>
<th>Price</th>
<th>Description</th>
<th>Update</th>
<th>Delete</th>
</tr>
</thead>
<button id="deleteAll" class="btn btn-danger">Delete All</button>
<tbody id="data">
</tbody>
</table>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.3.3/sweetalert2.min.js"
integrity="sha512-F3F53+tMh/CBxMQ60GN5R4EiFW7PcuND+9IDC3Qpkwc7SfxgzHigRdUO3+2+mNal2ot3Wp6KR0zx8r8BbsW+Bg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="main.js"></script>
</body>
</html>