-
Notifications
You must be signed in to change notification settings - Fork 1
/
DairyProducts.html
181 lines (143 loc) · 6.26 KB
/
DairyProducts.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html>
<head>
<title>Urban Motive</title>
<!-- Nav bar starts -->
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="style1.css">
<link rel="stylesheet" href="style3.css">
<link rel="preload" as="style" href="additional.css"><link rel="stylesheet" href="additional.css" type="text/css">
<!-- nav bar ends -->
<script src="https://kit.fontawesome.com/8f92dba009.js" crossorigin="anonymous"></script><!-- ICONS FOR FOOTER -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/socicon/css/styles.css">
<link rel="stylesheet" href="style.css">
<body>
<section class="menu menu2 header-1" once="menu" id="menu-5-1">
<nav class="navbar navbar-dropdown navbar-fixed-top navbar-expand-lg" style="background-color: #FFFFFF;">
<div class="container">
<div class="navbar-brand">
<span class="navbar-logo">
<a href="index.html">
<img src="logo.jpg"
style="height: 4.3rem;"> <!-- logo image -->
</a>
</span>
<span class="navbar-caption-wrap">
<a class="navbar-caption text-black display-4 mt-2" href="#">Urban Motive</a>
</span>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-bs-toggle="collapse" data-target="#navbarSupportedContent"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarNavAltMarkup" aria-expanded="false"
aria-label="Toggle navigation">
<div class="hamburger">
</div>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav nav-dropdown" data-app-modern-menu="true">
</li>
<li class="nav-item">
<a class="nav-link link text-black display-4" class="active" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link link text-black display-4" href="aboutus.html">About us</a>
</li>
<li class="navbar-buttons dropdown">
<a class="nav-link link text-black dropdown-toggle display-4" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Categories</a>
<div class="dropdown">
<ul class="dropdown-menu" style="background-color: #FFFFFF;">
<li><a class="dropdown-item" href="Rice&Grains.html">Rice & Grains</a></li>
<li><a class="dropdown-item" href="DairyProducts.html">DairyProducts</a></li>
<li><a class="dropdown-item" href="Fruits.html">Fruits</a></li>
<li><a class="dropdown-item" href="Vegitables.html">Vegetables</a></li>
<li><a class="dropdown-item" href="LeafVegitables.html">Leafy Vegetables</a></li>
</ul>
</div>
</li>
<li class="nav-item">
<a class="nav-link link text-black display-4" href="contact us.html ">Contact us</a>
</li>
<li class="nav-item">
<a class="nav-link link text-black display-4" href="services.html">services</a>
</li>
</ul>
<div class="navbar-buttons">
<a class="btn btn-primary display-4" href="chatbot.html">Chat Bot</a>
</div>
</div>
</div>
</nav>
</section>
</head>
<body>
<header>
<h1>Dairy </h1>
</header>
<section>
<div class="product">
<img src="milk.jpg" alt="Product 1">
<strong>Milk </strong>
<p>Price: ₹60</p>
<label for="quantity1">Quantity (kg):</label>
<input type="number" id="quantity1" min="1" value="1">
<button onclick="addToCart('Milk', 60, 'quantity1')">Add to Cart</button>
</div>
<div class="product">
<img src="ghee.jpg" alt="Product 2">
<strong>Ghee</strong>
<p>Price: ₹800</p>
<label for="quantity2">Quantity (kg):</label>
<input type="number" id="quantity2" min="1" value="1">
<button onclick="addToCart('Ghee', 800, 'quantity2')">Add to Cart</button>
</div>
<div class="product">
<img src="Curd.jpg" alt="Product 2">
<strong>Curd </strong>
<p>Price: ₹120</p>
<label for="quantity3">Quantity (kg):</label>
<input type="number" id="quantity3" min="1" value="1">
<button onclick="addToCart('Curd', 120, 'quantity3')">Add to Cart</button>
</div>
</section>
<section>
<div class="product">
<img src="panner.jpg" alt="Product 1">
<strong>Paneer</strong align-center>
<p>Price: ₹450</p>
<label for="quantity4">Quantity (kg):</label>
<input type="number" id="quantity4" min="1" value="1">
<button onclick="addToCart('Paneer', 450, 'quantity4')">Add to Cart</button>
</div>
<div class="product">
<img src="butter.jpg" alt="Product 2">
<strong>Butter</strong>
<p>Price: ₹400</p>
<label for="quantity5">Quantity (kg):</label>
<input type="number" id="quantity5" min="1" value="1">
<button onclick="addToCart('Butter', 400, 'quantity5')">Add to Cart</button>
</div>
<div class="product">
<img src="cheese.jpg" alt="Product 2">
<strong>Cheese</strong>
<p>Price: ₹500</p>
<label for="quantity6">Quantity (kg):</label>
<input type="number" id="quantity6" min="1" value="1">
<button onclick="addToCart('cheese', 500, 'quantity6')">Add to Cart</button>
</div>
</section>
<script>
function addToCart(productName, price, quantityId) {
var quantity = document.getElementById(quantityId).value;
var totalPrice = price * quantity;
// Display popup message//
alert('Added to Cart!\nProduct: ' + productName + '\nQuantity: ' + quantity + '\nTotal Price: ₹' + totalPrice.toFixed(2));
}
</script>
<!-- dropdown -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>