-
Notifications
You must be signed in to change notification settings - Fork 3
/
showmeat.html
93 lines (81 loc) · 3.06 KB
/
showmeat.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
89
90
91
92
93
<!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="styles\navbar2.css">
<script src="https://kit.fontawesome.com/32f181d7c4.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="styles/showmeatfish.css">
</head>
<body>
<div id="navbar123"></div>
<!-- for header -->
<!-- ---------------------------------------- -->
<!-- for the rgb(0,210,144 color div -->
<div id="father">
<div id="content-head">
<div id="FishHome">
<div id="imghome">
<img src="https://ik.imagekit.io/dunzo/dunzo-catalog-prod/tr:w-220,h-220,cm-pad_resize_store_thumbnail/stores/a3RHOTVjUkFJb21TNEw0ZFBCQktSZz09-1589866532874-store_image.jpg"
height="64px" width="64px" box-sizing = "border-box" >
</div>
<div id="textc">
<h1 id="mt">Meat & Fish</h1>
<div id="datas">
<p>kurla west</p>
<i class="fa-solid fa-clock"></i>
<p>23 mins</p>
<p>Free Delivery</p>
</div>
</div>
</div>
</div>
</div>
<!-- ............................................................. -->
<div id="search">
<img src="https://www.bing.com/th?id=OIP.S4taeGPIeZrjdwqrkjDRnAHaGH&w=274&h=227&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2">
<input type="search" id="searchBar" placeholder="Search in Meat&Fish" onkeyup="search()">
</div>
<div>
<!-- body -->
<hr/>
<div id="products">
<div id="products1">
<button onclick="displayitems(event,'PBO')" style="font-size: large; font-weight: bold; color: green;">Fresh Chicken</button>
<button onclick="displayitems(event,'cuts')">Eggs</button>
<button onclick="displayitems(event,'herbs')">Mutton</button>
<button onclick="displayitems(event,'veg')">Cuts And Sea Foods</button>
</div>
<div id="products2">
<div id="heading"><p>Meat&Fish</p></div>
<div id='prds'></div>
</div>
<div id="products3">
<p>Your Cart</p>
<img src="https://resources.dunzo.com/web-assets/prod/_next/static/images/no-items-in-cart-7e84056f44993b68d14184f9b2992af7.png">
<h4>Your cart is empty</h4>
<br>
<h4>Add items to get started</h4>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script src="./scripts/showmeatfish.js"></script>
<script type="module">
import {navbar2} from "./components/navbar.js";
document.getElementById("navbar123").innerHTML = navbar2();
let cartItems = document.getElementById("cartItems123");
let cartArr = JSON.parse(localStorage.getItem("dCart")) || [];
if(cartArr.length===0){
cartItems.style.display = "none";
}
else{
cartItems.innerText = cartArr.length;
cartItems.style.display = "block";
}
</script>