-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rice&Grains.html
203 lines (166 loc) · 7.59 KB
/
Rice&Grains.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
<!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>
<header>
<h1>Rice & Grains</h1>
</header>
<section>
<div class="product" id="product1">
<img src="Sona masuri rice.jpg" alt="Product 1">
<strong>Sona masoori Rice</strong>
<p>Price:₹70</p>
<label for="quantity1">Quantity(kg):</label>
<input type="number" id="quantity1" min="1" value="1">
<button onclick="addToCart('Sona masoori Rice', 70, 'quantity1')">Add to Cart</button>
</div>
<div class="product">
<img src="brown rice.jpg" alt="Product 2">
<strong>Brown Rice</strong>
<p>Price: ₹120</p>
<label for="quantity2">Quantity (kg):</label>
<input type="number" id="quantity2" min="1" value="1">
<button onclick="addToCart('Brown Rice', 120, 'quantity2')">Add to Cart</button>
</div>
<div class="product">
<img src="basmathi.jpg" alt="Product 2">
<strong>Basmathi Rice</strong>
<p>Price: ₹80</p>
<label for="quantity3">Quantity (kg):</label>
<input type="number" id="quantity3" min="1" value="1">
<button onclick="addToCart('Basmathi Rice', 80, 'quantity3')">Add to Cart</button>
</div>
</section>
<section>
<div class="product">
<img src="Groundnut.jpg" alt="Product 1">
<strong>Ground Nut</strong>
<p>Price: ₹160</p>
<label for="quantity4">Quantity (kg):</label>
<input type="number" id="quantity4" min="1" value="1">
<button onclick="addToCart('Ground Nut', 160, 'quantity4')">Add to Cart</button> </div>
<div class="product">
<img src="Maize.jpg" alt="Product 2">
<srrong>Maize</srrong>
<p>Price: ₹140</p>
<label for="quantity5">Quantity (kg):</label>
<input type="number" id="quantity5" min="1" value="1">
<button onclick="addToCart('Maize 1', 140, 'quantity5')">Add to Cart</button> </div>
<div class="product">
<img src="Soyabean.jpg" alt="Product 1">
<strong>Soya Bean</strong align-center>
<p>Price: ₹120</p>
<label for="quantity6">Quantity (kg):</label>
<input type="number" id="quantity6" min="1" value="1">
<button onclick="addToCart('Soya Bean', 120, 'quantity6')">Add to Cart</button>
</div>
</section>
<section>
<div class="product">
<img src="red gram.jpg" alt="Product 2">
<srrong>Red Gram</srrong>
<p>Price: ₹200</p>
<label for="quantity7">Quantity (kg):</label>
<input type="number" id="quantity7" min="1" value="1">
<button onclick="addToCart('Red Gram', 200, 'quantity7')">Add to Cart</button>
</div>
<div class="product">
<img src="Greengram.jpg" alt="Product 2">
<srrong>Green Gram</srrong>
<p>Price: ₹165</p>
<label for="quantity8">Quantity (kg):</label>
<input type="number" id="quantity8" min="1" value="1">
<button onclick="addToCart('Green Gram', 165, 'quantity8')">Add to Cart</button>
</div>
<div class="product">
<img src="black gram.jpg" alt="Product 2">
<srrong>Black Gram</srrong>
<p>Price: ₹145</p>
<label for="quantity9">Quantity (kg):</label>
<input type="number" id="quantity9" min="1" value="1">
<button onclick="addToCart('Black Gram', 145, 'quantity9')">Add to Cart</button>
</div>
</section>
<!-- drop down -->
<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>
<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 -->
</body>
</html>