-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVegitables.html
238 lines (197 loc) · 8.44 KB
/
Vegitables.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!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>
<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>Vegetables </h1>
</header>
<section>
<div class="product">
<img src="Tomato.jpg" alt="Product 1">
<strong> Tomato </strong>
<p>Price: ₹30</p>
<label for="quantity1">Quantity (kg):</label>
<input type="number" id="quantity1" min="1" value="1">
<button onclick="addToCart('Tomato', 30, 'quantity1')">Add to Cart</button>
</div>
<div class="product">
<img src="Brinjal.jpg" alt="Product 2">
<strong> Brinjal </strong>
<p>Price: ₹70</p>
<label for="quantity2">Quantity (kg):</label>
<input type="number" id="quantity2" min="1" value="1">
<button onclick="addToCart('Brinjal', 70, 'quantity2')">Add to Cart</button>
</div>
<div class="product">
<img src="Ladysfinger.jpg" alt="Product 2">
<strong> Bhendi </strong>
<p>Price: ₹30</p>
<label for="quantity3">Quantity (kg):</label>
<input type="number" id="quantity3" min="1" value="1">
<button onclick="addToCart(' Bhendi', 30, 'quantity3')">Add to Cart</button>
</div>
</section>
<section>
<div class="product">
<img src="Cauliflower.jpg" alt="Product 1">
<strong> Cauli Flower </strong align-center>
<p>Price: ₹50</p>
<label for="quantity5">Quantity (kg):</label>
<input type="number" id="quantity5" min="1" value="1">
<button onclick="addToCart(' Cauli Flower', 50, 'quantity5')">Add to Cart</button>
</div>
<div class="product">
<img src="cabbage.jpg" alt="Product 2">
<strong> Cabbage </strong>
<p>Price: ₹40</p>
<label for="quantity6">Quantity (kg):</label>
<input type="number" id="quantity6" min="1" value="1">
<button onclick="addToCart('Cabbage', 40, 'quantity6')">Add to Cart</button>
</div>
<div class="product">
<img src="Carrot.jpg" alt="Product 2">
<strong> Carrot </strong>
<p>Price: ₹ 40</p>
<label for="quantity7">Quantity (kg):</label>
<input type="number" id="quantity7" min="1" value="1">
<button onclick="addToCart('Carrot', 40, 'quantity7')">Add to Cart</button>
</div>
</section>
<section>
<div class="product">
<img src="Jorchikudu.jpg" alt="Product 2">
<strong> Cluster Beans </strong>
<p>Price: ₹40</p>
<label for="quantity4">Quantity (kg):</label>
<input type="number" id="quantity4" min="1" value="1">
<button onclick="addToCart(' Cluster Beans', 40, 'quantity4')">Add to Cart</button>
</div>
<div class="product">
<img src="chikudukaya.jpg" alt="Product 2">
<strong> Broad Beans</strong>
<p>Chikkudukaya</p>
<p>Price: ₹70</p>
<label for="quantity8">Quantity (kg):</label>
<input type="number" id="quantity8" min="1" value="1">
<button onclick="addToCart('Beetroot', 70, 'quantity8')">Add to Cart</button>
</div>
<div class="product">
<img src="Potato.jpg" alt="Product 1">
<strong>Potato</strong align-center>
<p>Price: ₹30</p>
<label for="quantity9">Quantity (kg):</label>
<input type="number" id="quantity9" min="1" value="1">
<button onclick="addToCart('Potato', 30, 'quantity9')">Add to Cart</button>
</div>
</section>
<section>
<div class="product">
<img src="Beetroot.jpg" alt="Product 2">
<strong> Beetroot</strong>
<p>Price: ₹50</p>
<label for="quantity10">Quantity (kg):</label>
<input type="number" id="quantity10" min="1" value="1">
<button onclick="addToCart('Beetroot', 50, 'quantity10')">Add to Cart</button>
</div>
<div class="product">
<img src="green chilli.jpg" alt="Product 2">
<strong> Green Chilli</strong>
<p>Price: ₹80</p>
<label for="quantity11">Quantity (kg):</label>
<input type="number" id="quantity11" min="1" value="1">
<button onclick="addToCart('Chilli', 80, 'quantity11')">Add to Cart</button>
</div>
<div class="product">
<img src="Onion.jpg" alt="Product 2">
<strong>Onion</strong>
<p>Price: ₹20</p>
<label for="quantity12">Quantity (kg):</label>
<input type="number" id="quantity12" min="1" value="1">
<button onclick="addToCart('Onion ', 20, 'quantity12')">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>