├── checkout.css
├── checkout.html
├── cart.css
├── foodgrains.css
├── snacks.css
├── bakery.css
├── beauty.css
├── beverages.css
├── fruits_category.css
├── navbar.html
├── navbar.css
├── checkout.js
├── cart.js
├── snacks.js
├── bakery.js
├── signup.html
├── slider.js
├── login.html
├── homepage.js
├── beverages.js
├── beauty.js
├── footer.css
├── fruits_category.js
├── foodgrains.js
├── homepage.css
├── slider.html
├── main.js
└── footer.html
/checkout.css:
--------------------------------------------------------------------------------
1 | #checkout{
2 | width: 1000px;
3 | margin: auto;
4 | }
5 | #form{
6 | margin: auto;
7 | margin-top: 5%;
8 | padding: 5%;
9 | width: 500px;
10 | border: 1px solid green;
11 | display: grid;
12 | grid-template-columns: repeat(1,1fr);
13 | gap: 20px;
14 | }
15 | h4{
16 | text-align: center;
17 | }
18 | input{
19 | padding: 5%;
20 | }
21 | #pay{
22 | margin: auto;
23 | width: 150px;
24 | background-color: teal;
25 | color: white;
26 | padding: 2% 3% 2% 3%;
27 | border: none;
28 | border-radius: 3px;
29 | }
30 | #pay:hover{
31 | cursor: pointer;
32 | opacity: 0.8;
33 | }
--------------------------------------------------------------------------------
/checkout.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Checkout Page
8 |
9 |
10 |
11 |
12 |
13 |
User Details
14 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/cart.css:
--------------------------------------------------------------------------------
1 | #cart{
2 | width: 1000px;
3 | margin: auto;
4 | }
5 | #cart_slider{
6 | margin-top: 300px;
7 | }
8 | #cart_amount{
9 | margin-top: 5%;
10 | display: flex;
11 | justify-content: space-evenly;
12 | text-decoration: underline;
13 | }
14 | #cart_container{
15 | margin-top: 5%;
16 | display: grid;
17 | grid-template-columns: repeat(3,1fr);
18 | text-align: center;
19 | gap: 20px;
20 | }
21 | #cart_container img {
22 | width: 100%;
23 | margin: auto;
24 | }
25 | #cart_container div {
26 | display: grid;
27 | grid-template-columns: repeat(1,1fr);
28 | border: 1px solid green;
29 | border-radius: 10px;
30 | }
31 | #cart_container button {
32 | width: 130px;
33 | background-color: rgb(209, 209, 87);
34 | padding: 1% 2% 1% 2%;
35 | border: none;
36 | border-radius: 3px;
37 | margin: auto;
38 | }
39 | #cart_container button:hover{
40 | opacity: 0.8;
41 | cursor: pointer;
42 | }
43 | #checkout{
44 | margin-left: 50%;
45 | width: 130px;
46 | background-color: rgb(209, 209, 87);
47 | padding: 1% 2% 1% 2%;
48 | border: none;
49 | border-radius: 3px;
50 | }
51 |
--------------------------------------------------------------------------------
/foodgrains.css:
--------------------------------------------------------------------------------
1 | #food_grains{
2 | width: 1000px;
3 | margin: auto;
4 | }
5 | #food_grains_slider{
6 | margin-top: 300px;
7 | }
8 | #food_grains_container{
9 | display: grid;
10 | grid-template-columns: repeat(4,1fr);
11 | gap: 20px;
12 | text-align: center;
13 | }
14 | #food_grains_container div{
15 | display: grid;
16 | grid-template-columns: repeat(1,1fr);
17 | border: 1px solid green;
18 | border-radius: 10px;
19 | }
20 | #striked_price{
21 | text-decoration: line-through;
22 | }
23 | #food_grains_container div button{
24 | width: 70px;
25 | background-color: rgb(209, 209, 87);
26 | padding: 0.5% 2% 0.5% 2%;
27 | border: none;
28 | border-radius: 3px;
29 | margin: auto;
30 | }
31 | #below_slider{
32 | display: flex;
33 | justify-content: space-between;
34 | }
35 | #below_slider > p{
36 | border: 1px solid green;
37 | border-radius: 10px;
38 | padding: 0.5% 2% 0.5% 2%;
39 | }
40 | #below_slider > p:hover{
41 | cursor: pointer;
42 | }
43 | #refine{
44 | text-decoration: underline;
45 | display: flex;
46 | }
47 | #refine > img{
48 | width: 3%;
49 | }
50 | #refine > p{
51 | font-size: small;
52 | }
53 | #food_grains_container div button:hover{
54 | cursor: pointer;
55 | opacity: 0.8;
56 | }
57 | #more_grains{
58 | margin: auto;
59 | width: 110px;
60 | background-color: rgb(209, 209, 87);
61 | padding: 0 2% 0 2%;
62 | border: none;
63 | border-radius: 3px;
64 | }
65 | #more_grains:hover{
66 | cursor: pointer;
67 | opacity: 0.8;
68 | }
69 |
--------------------------------------------------------------------------------
/snacks.css:
--------------------------------------------------------------------------------
1 | #snacks{
2 | width: 1000px;
3 | margin: auto;
4 | }
5 | #snacks_slider{
6 | margin-top: 300px;
7 | }
8 | #snacks_container{
9 | display: grid;
10 | grid-template-columns: repeat(3,1fr);
11 | gap: 20px;
12 | text-align: center;
13 | }
14 | #snacks_container div{
15 | display: grid;
16 | grid-template-columns: repeat(1,1fr);
17 | border: 1px solid green;
18 | border-radius: 10px;
19 | }
20 | #snacks_container img{
21 | margin: auto;
22 | width: 100%;
23 | }
24 | #striked_price{
25 | margin-bottom: 0;
26 | text-decoration: line-through;
27 | }
28 | #price{
29 | margin-top: 0;
30 | }
31 | #snacks_container div button{
32 | margin: auto;
33 | width: 70px;
34 | background-color: rgb(209, 209, 87);
35 | padding: 0.5% 2% 0.5% 2%;
36 | border: none;
37 | border-radius: 3px;
38 | }
39 | #below_slider{
40 | display: flex;
41 | justify-content: space-between;
42 | }
43 | #below_slider > p{
44 | border: 1px solid green;
45 | border-radius: 10px;
46 | padding: 0.5% 2% 0.5% 2%;
47 | }
48 | #below_slider > p:hover{
49 | cursor: pointer;
50 | }
51 | #refine{
52 | text-decoration: underline;
53 | display: flex;
54 | }
55 | #refine > img{
56 | width: 3%;
57 | }
58 | #refine > p{
59 | font-size: small;
60 | }
61 | #snacks_container div button:hover{
62 | cursor: pointer;
63 | opacity: 0.8;
64 | }
65 | #more_snacks{
66 | margin-left: 50%;
67 | width: 110px;
68 | background-color: rgb(209, 209, 87);
69 | padding: 0 2% 0 2%;
70 | border: none;
71 | border-radius: 3px;
72 | }
73 | #more_snacks:hover{
74 | cursor: pointer;
75 | opacity: 0.8;
76 | }
77 |
--------------------------------------------------------------------------------
/bakery.css:
--------------------------------------------------------------------------------
1 | #bakery{
2 | width: 1000px;
3 | margin: auto;
4 | }
5 | #bakery_slider{
6 | margin-top: 300px;
7 | }
8 | #bakery_container{
9 | display: grid;
10 | grid-template-columns: repeat(4,1fr);
11 | gap: 20px;
12 | text-align: center;
13 | }
14 | #bakery_container div{
15 | margin-top: -2%;
16 | display: grid;
17 | grid-template-columns: repeat(1,1fr);
18 | border: 1px solid green;
19 | border-radius: 10px;
20 | }
21 | #bakery_container img{
22 | margin: auto;
23 | }
24 | #striked_price{
25 | margin-bottom: 0;
26 | text-decoration: line-through;
27 | }
28 | #price{
29 | margin-top: 0;
30 | }
31 | #bakery_container div button{
32 | width: 70px;
33 | background-color: rgb(209, 209, 87);
34 | padding: 0.5% 2% 0.5% 2%;
35 | border: none;
36 | border-radius: 3px;
37 | margin: auto;
38 | }
39 | #below_slider{
40 | display: flex;
41 | justify-content: space-between;
42 | }
43 | #below_slider > p{
44 | border: 1px solid green;
45 | border-radius: 10px;
46 | padding: 0.5% 2% 0.5% 2%;
47 | }
48 | #below_slider > p:hover{
49 | cursor: pointer;
50 | }
51 | #refine{
52 | text-decoration: underline;
53 | display: flex;
54 | }
55 | #refine > img{
56 | width: 3%;
57 | }
58 | #refine > p{
59 | font-size: small;
60 | }
61 | #bakery_container div button:hover{
62 | cursor: pointer;
63 | opacity: 0.8;
64 | }
65 | #more_bakery{
66 | margin-left: 50%;
67 | width: 110px;
68 | background-color: rgb(209, 209, 87);
69 | padding: 0 2% 0 2%;
70 | border: none;
71 | border-radius: 3px;
72 | }
73 | #more_bakery:hover{
74 | cursor: pointer;
75 | opacity: 0.8;
76 | }
77 |
--------------------------------------------------------------------------------
/beauty.css:
--------------------------------------------------------------------------------
1 | #beauty_hygiene{
2 | width: 1000px;
3 | margin: auto;
4 | }
5 | #beauty_slider{
6 | margin-top: 300px;
7 | }
8 | #beauty_container{
9 | display: grid;
10 | grid-template-columns: repeat(3,1fr);
11 | gap: 20px;
12 | text-align: center;
13 | }
14 | #beauty_container div{
15 | display: grid;
16 | grid-template-columns: repeat(1,1fr);
17 | border: 1px solid green;
18 | border-radius: 10px;
19 | }
20 | #beauty_container img{
21 | margin: auto;
22 | width: 40%;
23 | }
24 | #striked_price{
25 | margin-bottom: 0;
26 | text-decoration: line-through;
27 | }
28 | #price{
29 | margin-top: 0;
30 | }
31 | #beauty_container div button{
32 | margin: auto;
33 | width: 70px;
34 | background-color: rgb(209, 209, 87);
35 | padding: 0.5% 2% 0.5% 2%;
36 | border: none;
37 | border-radius: 3px;
38 | }
39 | #below_slider{
40 | display: flex;
41 | justify-content: space-between;
42 | }
43 | #below_slider > p{
44 | border: 1px solid green;
45 | border-radius: 10px;
46 | padding: 0.5% 2% 0.5% 2%;
47 | }
48 | #below_slider > p:hover{
49 | cursor: pointer;
50 | }
51 | #refine{
52 | text-decoration: underline;
53 | display: flex;
54 | }
55 | #refine > img{
56 | width: 3%;
57 | }
58 | #refine > p{
59 | font-size: small;
60 | }
61 | #beauty_container div button:hover{
62 | cursor: pointer;
63 | opacity: 0.8;
64 | }
65 | #more_beauty{
66 | margin-left: 50%;
67 | width: 110px;
68 | background-color: rgb(209, 209, 87);
69 | padding: 0 2% 0 2%;
70 | border: none;
71 | border-radius: 3px;
72 | }
73 | #more_beauty:hover{
74 | cursor: pointer;
75 | opacity: 0.8;
76 | }
77 |
--------------------------------------------------------------------------------
/beverages.css:
--------------------------------------------------------------------------------
1 | #beverages{
2 | width: 1000px;
3 | margin: auto;
4 | }
5 | #beverages_slider{
6 | margin-top: 300px;
7 | }
8 | #beverages_container{
9 | display: grid;
10 | grid-template-columns: repeat(3,1fr);
11 | gap: 20px;
12 | text-align: center;
13 | }
14 | #beverages_container div{
15 | display: grid;
16 | grid-template-columns: repeat(1,1fr);
17 | border: 1px solid green;
18 | border-radius: 10px;
19 | }
20 | #beverages_container img{
21 | margin: auto;
22 | width: 100%;
23 | }
24 | #striked_price{
25 | margin-bottom: 0;
26 | text-decoration: line-through;
27 | }
28 | #price{
29 | margin-top: 0;
30 | }
31 | #beverages_container div button{
32 | margin: auto;
33 | width: 70px;
34 | background-color: rgb(209, 209, 87);
35 | padding: 0.5% 2% 0.5% 2%;
36 | border: none;
37 | border-radius: 3px;
38 | }
39 | #below_slider{
40 | display: flex;
41 | justify-content: space-between;
42 | }
43 | #below_slider > p{
44 | border: 1px solid green;
45 | border-radius: 10px;
46 | padding: 0.5% 2% 0.5% 2%;
47 | }
48 | #below_slider > p:hover{
49 | cursor: pointer;
50 | }
51 | #refine{
52 | text-decoration: underline;
53 | display: flex;
54 | }
55 | #refine > img{
56 | width: 3%;
57 | }
58 | #refine > p{
59 | font-size: small;
60 | }
61 | #beverages_container div button:hover{
62 | cursor: pointer;
63 | opacity: 0.8;
64 | }
65 | #more_beverages{
66 | margin-left: 50%;
67 | width: 110px;
68 | background-color: rgb(209, 209, 87);
69 | padding: 0 2% 0 2%;
70 | border: none;
71 | border-radius: 3px;
72 | }
73 | #more_beverages:hover{
74 | cursor: pointer;
75 | opacity: 0.8;
76 | }
77 |
--------------------------------------------------------------------------------
/fruits_category.css:
--------------------------------------------------------------------------------
1 | #fruits_vegetables{
2 | width: 1000px;
3 | margin: auto;
4 | }
5 | #fruits_slider{
6 | margin-top: 300px;
7 | }
8 | #below_slider{
9 | display: flex;
10 | justify-content: space-between;
11 | }
12 | #below_slider > p{
13 | border: 1px solid green;
14 | border-radius: 10px;
15 | padding: 0.5% 2% 0.5% 2%;
16 | }
17 | #below_slider > p:hover{
18 | cursor: pointer;
19 | }
20 | #refine{
21 | text-decoration: underline;
22 | display: flex;
23 | }
24 | #refine > img{
25 | width: 3%;
26 | }
27 | #refine > p{
28 | font-size: small;
29 | }
30 | #fruits_category_container{
31 | display: grid;
32 | grid-template-columns: repeat(3,1fr);
33 | gap: 20px;
34 | text-align: center;
35 | }
36 | #fruits_category_container div{
37 | display: grid;
38 | grid-template-columns: repeat(1,1fr);
39 | border: 1px solid green;
40 | border-radius: 10px;
41 | }
42 | #fruits_category_container h5 {
43 | display: flex;
44 | justify-content: flex-end;
45 | color: rgb(177, 81, 81);
46 | text-decoration: underline;
47 | }
48 | #striked_price{
49 | text-decoration: line-through;
50 | }
51 | #fruits_category_container div button{
52 | width: 70px;
53 | background-color: rgb(209, 209, 87);
54 | padding: 0.5% 2% 0.5% 2%;
55 | border: none;
56 | border-radius: 3px;
57 | margin: auto;
58 | }
59 | #fruits_category_container div button:hover{
60 | cursor: pointer;
61 | opacity: 0.8;
62 | }
63 | #fruits_category_container div img{
64 | margin: auto;
65 | width: 100%;
66 | }
67 | #more_fruits{
68 | margin: auto;
69 | width: 110px;
70 | background-color: rgb(209, 209, 87);
71 | padding: 0 2% 0 2%;
72 | border: none;
73 | border-radius: 3px;
74 | }
75 | #more_fruits:hover{
76 | cursor: pointer;
77 | opacity: 0.8;
78 | }
79 |
--------------------------------------------------------------------------------
/navbar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Document
8 |
9 |
10 |
11 |
12 |
13 |
14 |
1860 123 1000
15 |
560004, Bangalore
16 |
20 |
21 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/navbar.css:
--------------------------------------------------------------------------------
1 | #navbar_container{
2 | position: fixed;
3 | /* height: 100px; */
4 | left: 0;
5 | right: 0;
6 | top: 0;
7 | z-index: 0;
8 | background-color: white;
9 | }
10 | #address{
11 | width: 500px;
12 | display: flex;
13 | justify-content: flex-end;
14 | justify-content: space-between;
15 | margin-left: 60%;
16 | color: grey;
17 | }
18 | #navbar{
19 | width: 100%;
20 | height: 200px;
21 | margin: auto;
22 | display: flex;
23 | justify-content: space-between;
24 | box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
25 | }
26 | #select{
27 | border-radius: 5px;
28 | padding-right: 30%;
29 | padding-top: 2%;
30 | padding-bottom: 2%;
31 | margin-left: 2%;
32 | background-color: green;
33 | color: white;
34 | box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
35 | }
36 | #select:hover{
37 | cursor: pointer;
38 | opacity: 0.8;
39 | }
40 | #lands{
41 | margin-top: 4%;
42 | }
43 | #lands a{
44 | text-decoration: none;
45 | color: grey;
46 | }
47 | #lands:hover{
48 | cursor: pointer;
49 | text-decoration: underline;
50 | }
51 | #big_b > img{
52 | width: 50%;
53 | }
54 | #big_b{
55 | width: 25%;
56 | }
57 | #search_bar{
58 | width: 50%;
59 | }
60 | #search{
61 | padding-top: 2%;
62 | padding-bottom: 2%;
63 | /* margin-left: 100%; */
64 | padding-right: 70%;
65 | /* position: relative; */
66 |
67 | border: 1px solid grey;
68 | box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
69 | }
70 | #offers{
71 | text-decoration: none;
72 | /* margin-right: 80%; */
73 | position: fixed;
74 | top: 27%;
75 | left:25%;
76 | color: black;
77 | padding: 0% 3% 0% 3%;
78 | /* border: 1px solid red; */
79 |
80 | }
81 | #offers:hover{
82 | border-radius: 5px;
83 | background-color: green;
84 | color: white;
85 | }
86 | #search_bar img{
87 | width: 100px;
88 | height: 100px;
89 | }
90 | #basket{
91 | margin-top: 3.5%;
92 | width: 25%;
93 | display: flex;
94 | }
95 | #basket img{
96 | margin-top: 5%;
97 | width: 15%;
98 | height: 35%;
99 | }
100 | #cart{
101 | text-decoration: none;
102 | font-weight: 600;
103 | margin-top: 10%;
104 | }
105 | #cart:hover{
106 | cursor: pointer;
107 | text-decoration: underline;
108 | }
109 |
--------------------------------------------------------------------------------
/checkout.js:
--------------------------------------------------------------------------------
1 | let cart_images = ["https://www.bigbasket.com/media/uploads/banner_images/YXPL14714_1200x300_25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/L2-YXPL154-1200x300-25thmar.jpg","https://www.bigbasket.com/media/customPage/7693c8af-c9b3-4fc5-b1a8-5d3e8496dc6e/dbc3ec45-8257-4c5c-85b0-b5fcabf5644c/1846b03b-e0f4-4433-9b20-301d49edfdae/korean-beauty-1130x400-12feb21.jpg","https://www.bigbasket.com/media/customPage/7693c8af-c9b3-4fc5-b1a8-5d3e8496dc6e/dbc3ec45-8257-4c5c-85b0-b5fcabf5644c/1846b03b-e0f4-4433-9b20-301d49edfdae/natural-store-1130x400-12feb21.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14480-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14449-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14424-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14309-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/L1_YXNP3878_1200x300_25Jun22.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXTT4977_1200x300_250922.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXNP4699_1200x300_290822.jpg","https://www.bigbasket.com/media/uploads/banner_images/CXNP5623_1200x300_301021.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14771_YXPL14773_YXPL14774_YXPL14781_YXPL14795_300_240922.jpg"];
2 | let img = document.createElement("img");
3 | let cart_slider = document.getElementById("checkout_slider");
4 | let i = 0;
5 | setInterval(function(){
6 | if(i===12){i=0}
7 | img.src = cart_images[i];
8 | cart_slider.innerHTML = null;
9 | cart_slider.append(img);
10 | i++;
11 | },3000);
12 |
13 |
14 |
15 | let cart_sum;
16 | let cart_data = JSON.parse(localStorage.getItem("items"));
17 | let cart_sum_promo = cart_sum - ((cart_sum/30)*100);
18 | let flag = 0;
19 | document.getElementById("pay").addEventListener("click", function (event) {
20 | event.preventDefault();
21 | var code = document.getElementById("promo_code").value;
22 | code = code.trim();
23 | if(cart_data.length === 0){
24 | alert ("Your Cart is Empty");
25 | }
26 | if (code == "bigbasket01") {
27 | localStorage.setItem("userPromo", code)
28 | alert("Hurray you got 30% discount!!!");
29 | flag = 1;
30 | setTimeout((e) => {
31 | alert ("ThankYou for your Purchase");
32 | }, 2000);
33 | window.location.href = "./homepage.html";
34 | document.getElementById("form").reset();
35 | } else if (code == "") {
36 | alert("Please Enter Promo code")
37 | } else if (code != "bigbasket01") {
38 | alert("Please Enter valid Promo code");
39 | }
40 | window.location.reload();
41 | });
42 |
43 | let sum = 0;
44 | let length = cart_data.length;
45 | cart_sum = JSON.parse(localStorage.getItem("cart_price"));
46 |
47 | document.getElementById("displayValue").innerText = `Your Number of Order Items are ${length} and Your Cart Total is ${cart_sum}`;
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/cart.js:
--------------------------------------------------------------------------------
1 | let cart_images = ["https://www.bigbasket.com/media/uploads/banner_images/YXPL14714_1200x300_25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/L2-YXPL154-1200x300-25thmar.jpg","https://www.bigbasket.com/media/customPage/7693c8af-c9b3-4fc5-b1a8-5d3e8496dc6e/dbc3ec45-8257-4c5c-85b0-b5fcabf5644c/1846b03b-e0f4-4433-9b20-301d49edfdae/korean-beauty-1130x400-12feb21.jpg","https://www.bigbasket.com/media/customPage/7693c8af-c9b3-4fc5-b1a8-5d3e8496dc6e/dbc3ec45-8257-4c5c-85b0-b5fcabf5644c/1846b03b-e0f4-4433-9b20-301d49edfdae/natural-store-1130x400-12feb21.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14480-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14449-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14424-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14309-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/L1_YXNP3878_1200x300_25Jun22.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXTT4977_1200x300_250922.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXNP4699_1200x300_290822.jpg","https://www.bigbasket.com/media/uploads/banner_images/CXNP5623_1200x300_301021.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14771_YXPL14773_YXPL14774_YXPL14781_YXPL14795_300_240922.jpg"];
2 | let img = document.createElement("img");
3 | let cart_slider = document.getElementById("cart_slider");
4 | let i = 0;
5 | setInterval(function(){
6 | if(i===12){i=0}
7 | img.src = cart_images[i];
8 | cart_slider.innerHTML = null;
9 | cart_slider.append(img);
10 | i++;
11 | },3000);
12 |
13 | let cart_data = JSON.parse(localStorage.getItem("items"));
14 | if(cart_data.length === 0){
15 | alert ("Your Cart is Empty");
16 | }else{
17 | document.getElementById("total_items_count").innerHTML = `Total Number Of Items :- ${cart_data.length}`;
18 | }
19 |
20 | let cart_sum = 0;
21 | cart_data.forEach((e)=>{
22 | let amount = e.price;
23 | cart_sum+=amount;
24 | });
25 | document.getElementById("total_amount_in_cart").innerHTML = `Total Amount :- Rs.${cart_sum}`;
26 | localStorage.setItem("cart_price",JSON.stringify(cart_sum));
27 | console.log(cart_sum);
28 |
29 |
30 | cart_data.forEach(el => {
31 | let div = document.createElement("div");
32 | let image = document.createElement("img");
33 | image.src = el.image;
34 | let name = document.createElement("h4");
35 | name.innerHTML = el.name;
36 | let price = document.createElement("p");
37 | price.innerHTML = `Rs:- ${el.price}`;
38 | let remove = document.createElement("button");
39 | remove.innerText = "Remove Item";
40 | remove.addEventListener("click",(el)=>{
41 | removeItems(el);
42 | })
43 | div.append(image,name,price,remove);
44 | document.getElementById("cart_container").append(div);
45 | });
46 |
47 | function removeItems(el, index){
48 | el.target.parentNode.remove();
49 | cart_data.splice(index, 1);
50 | localStorage.setItem("items",JSON.stringify(cart_data));
51 | window.location.reload();
52 | }
53 |
54 | document.getElementById("checkout").addEventListener("click",(e)=>{
55 | window.location.href = "./checkout.html";
56 | })
--------------------------------------------------------------------------------
/snacks.js:
--------------------------------------------------------------------------------
1 | const options = {
2 | method: 'GET',
3 | Headers : {
4 | "Content-Type" : "application/json",
5 |
6 | }
7 | };
8 |
9 | fetch(' https://api.spoonacular.com/food/search?query=snacks&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
10 | .then(response => response.json())
11 | .then(data => appendSnacks(data.searchResults[1].results))
12 | .catch(err => console.log(err));
13 |
14 | let snacks_images = ["https://www.bigbasket.com/media/uploads/banner_images/YXPL14344-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14137-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14106-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14941-1200x300-25thsep.jpg"];
15 | let img = document.createElement("img");
16 | let snacks_slider = document.getElementById("snacks_slider");
17 | let i = 0;
18 | setInterval(function(){
19 | if(i===3){i=0}
20 | img.src = snacks_images[i];
21 | snacks_slider.innerHTML = null;
22 | snacks_slider.append(img);
23 | i++;
24 | },3000);
25 |
26 |
27 |
28 | let cart_data = JSON.parse(localStorage.getItem('items'));
29 |
30 | function appendSnacks(data){
31 | let striked_price = [72.72, 101.3, 39.29, 53.25, 28.57, 50.22, 140.26, 263.64, 74.68, 72.73, 166.23, 81.82, 54.98, 58.01, 30.08, 64.94, 353.24, 92.53, 21.43, 233.76, 40.17, 35.06, 227.27, 141.56, 12.38, 112.38, 141.99, 28.57, 155.84, 32.47, 40, 189.61, 250.65, 13.11, 118.18, 149.35];
32 | let price = [55.99, 78, 20.5, 36, 19.5, 24.5, 103, 203, 53.5, 56, 102, 58.5, 39, 41, 23.16, 50, 271.99, 38.5, 16.5, 180, 29, 27, 175, 103, 9.53, 67.5, 96, 19, 120, 25, 30, 146, 193, 10.09, 91, 115];
33 |
34 | let i = 0;
35 | while(i<=10){
36 | let div = document.createElement("div");
37 | let image = document.createElement("img");
38 | image.src = data[i].image;
39 | let name = document.createElement("h4");
40 | name.innerHTML = data[i].name;
41 | let striked_price_div = document.createElement("p");
42 | striked_price_div.id = "striked_price";
43 | striked_price_div.innerHTML = `Rs:- ${striked_price[i]}`;
44 | let price_div = document.createElement("p");
45 | price_div.id = "price";
46 | price_div.innerHTML = `Rs:- ${price[i]}`;
47 | let add_to_cart = document.createElement("button");
48 | add_to_cart.innerText = "ADD";
49 | let obj = {
50 | image : data[i].image,
51 | name : data[i].name,
52 | striked_price : striked_price[i],
53 | price : price[i]
54 | }
55 | add_to_cart.addEventListener("click",(e)=>{
56 | cart_data.push(obj);
57 | localStorage.setItem("items",JSON.stringify(cart_data));
58 | alert ("Product added to cart succesfully");
59 | });
60 | div.append(image,name,striked_price_div,price_div,add_to_cart);
61 | document.getElementById("snacks_container").append(div);
62 | i++;
63 | }
64 | }
65 |
66 | let count = 0;
67 | document.getElementById("more_snacks").addEventListener('click',(e)=>{
68 | const options = {
69 | method: 'GET',
70 | Headers : {
71 | "Content-Type" : "application/json",
72 |
73 | }
74 | };
75 |
76 | fetch(' https://api.spoonacular.com/food/search?query=cookies&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
77 | .then(response => response.json())
78 | .then(data => appendSnacks(data.searchResults[1].results)
79 | .catch(err => console.log(err)))
80 | }) ;
--------------------------------------------------------------------------------
/bakery.js:
--------------------------------------------------------------------------------
1 | const options = {
2 | method: 'GET',
3 | Headers : {
4 | "Content-Type" : "application/json",
5 |
6 | }
7 | };
8 |
9 | fetch(' https://api.spoonacular.com/food/search?query=bakery&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
10 | .then(response => response.json())
11 | .then(data => appendBakery(data.searchResults[1].results))
12 | .catch(err => console.log(err));
13 |
14 | let bakery_images = ["https://www.bigbasket.com/media/uploads/banner_images/YXPL14480-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14449-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14424-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14309-1200x300-25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/L1_YXNP3878_1200x300_25Jun22.jpg"];
15 | let img = document.createElement("img");
16 | let bakery_slider = document.getElementById("bakery_slider");
17 | let i = 0;
18 | setInterval(function(){
19 | if(i===3){i=0}
20 | img.src = bakery_images[i];
21 | bakery_slider.innerHTML = null;
22 | bakery_slider.append(img);
23 | i++;
24 | },3000);
25 |
26 |
27 | let cart_data = JSON.parse(localStorage.getItem('items'));
28 |
29 |
30 | function appendBakery(data){
31 | console.log(data);
32 | let striked_price = [72.72, 101.3, 39.29, 53.25, 28.57, 50.22, 140.26, 263.64, 74.68, 72.73, 166.23, 81.82, 54.98, 58.01, 30.08, 64.94, 353.24, 92.53, 21.43, 233.76, 40.17, 35.06, 227.27, 141.56, 12.38, 112.38, 141.99, 28.57, 155.84, 32.47, 40, 189.61, 250.65, 13.11, 118.18, 149.35];
33 | let price = [55.99, 78, 20.5, 36, 19.5, 24.5, 103, 203, 53.5, 56, 102, 58.5, 39, 41, 23.16, 50, 271.99, 38.5, 16.5, 180, 29, 27, 175, 103, 9.53, 67.5, 96, 19, 120, 25, 30, 146, 193, 10.09, 91, 115];
34 |
35 | let i = 0;
36 | while(i<=10){
37 | let div = document.createElement("div");
38 | let image = document.createElement("img");
39 | image.src = data[i].image;
40 | let name = document.createElement("h4");
41 | name.innerHTML = data[i].name;
42 | let striked_price_div = document.createElement("p");
43 | striked_price_div.id = "striked_price";
44 | striked_price_div.innerHTML = `Rs:- ${striked_price[i]}`;
45 | let price_div = document.createElement("p");
46 | price_div.id = "price";
47 | price_div.innerHTML = `Rs:- ${price[i]}`;
48 | let add_to_cart = document.createElement("button");
49 | add_to_cart.innerText = "ADD";
50 | let obj = {
51 | image : data[i].image,
52 | name : data[i].name,
53 | striked_price : striked_price[i],
54 | price : price[i]
55 | }
56 | add_to_cart.addEventListener("click",(e)=>{
57 | cart_data.push(obj);
58 | localStorage.setItem("items",JSON.stringify(cart_data));
59 | alert ("Product added to cart succesfully");
60 | });
61 | div.append(image,name,striked_price_div,price_div,add_to_cart);
62 | document.getElementById("bakery_container").append(div);
63 | i++;
64 | }
65 | }
66 |
67 |
68 | let count = 0;
69 | document.getElementById("more_bakery").addEventListener('click',(e)=>{
70 | const options = {
71 | method: 'GET',
72 | Headers : {
73 | "Content-Type" : "application/json",
74 |
75 | }
76 | };
77 |
78 | fetch(' https://api.spoonacular.com/food/search?query=cakes&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
79 | .then(response => response.json())
80 | .then(data => appendBakery(data.searchResults[1].results))
81 | .catch(err => console.log(err));
82 | count++;
83 | if(count === 1){
84 | fetch(' https://api.spoonacular.com/food/search?query=dairy&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
85 | .then(response => response.json())
86 | .then(data => appendBakery(data.searchResults[1].results))
87 | .catch(err => console.log(err));
88 | }
89 | if(count === 2){
90 | count = 0;
91 | }
92 | }) ;
--------------------------------------------------------------------------------
/signup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | signup
8 |
9 |
43 |
44 |
45 |
46 |
47 |
1860 123 1000
48 |
560004, Bangalore
49 |
53 |
54 |
55 |
66 |
71 |
72 |
73 |
My Basket
74 |
75 |
76 |
77 |
78 |
Sign up
79 |
80 |
86 |
87 |
88 |
89 |
90 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/slider.js:
--------------------------------------------------------------------------------
1 | let slideIndex = 1;
2 | showSlides(slideIndex);
3 |
4 | // Next/previous controls
5 | function plusSlides(n) {
6 | showSlides(slideIndex += n);
7 | }
8 |
9 | // Thumbnail image controls
10 | function currentSlide(n) {
11 | showSlides(slideIndex = n);
12 | }
13 |
14 | function showSlides(n) {
15 | let i;
16 | let slides = document.getElementsByClassName("mySlides");
17 | let dots = document.getElementsByClassName("dot");
18 | if (n > slides.length) { slideIndex = 1 }
19 | if (n < 1) { slideIndex = slides.length }
20 | for (i = 0; i < slides.length; i++) {
21 | slides[i].style.display = "none";
22 | }
23 | for (i = 0; i < dots.length; i++) {
24 | dots[i].className = dots[i].className.replace("active", "");
25 | }
26 | slides[slideIndex - 1].style.display = "block";
27 | dots[slideIndex - 1].className += " active";
28 | }
29 |
30 |
31 | showSlides();
32 |
33 | function showSlides() {
34 | let i;
35 | let slides = document.getElementsByClassName("mySlides");
36 | for (i = 0; i < slides.length; i++) {
37 | slides[i].style.display = "none";
38 | }
39 | slideIndex++;
40 | if (slideIndex > slides.length) { slideIndex = 1 }
41 | slides[slideIndex - 1].style.display = "block";
42 | setTimeout(showSlides, 4000); // Change image every 2 seconds
43 | }
44 |
45 |
46 | // let getdata=async()=>{
47 |
48 | // try{
49 |
50 | // let res= await fetch('https://edamam-food-and-grocery-database.p.rapidapi.com/parser?ingr=meat',{
51 | // method: 'GET',
52 | // headers: {
53 | // 'X-RapidAPI-Key': 'fb17a4ece0msh47eb9b62180a9c9p181e49jsn547c70adae2c',
54 | // 'X-RapidAPI-Host': 'edamam-food-and-grocery-database.p.rapidapi.com'
55 | // }
56 | // });
57 |
58 | // let data= await res.json();
59 | // console.log(data);
60 | // }catch(e){
61 | // console.log(e);
62 |
63 | // }
64 |
65 |
66 | // }
67 | // getdata();
68 | // Add to Cert Items
69 |
70 | let bestseller=[{
71 | image:'https://www.bigbasket.com/media/uploads/p/s/40072320_2-fresho-farm-eggs-table-tray-medium-antibiotic-residue-free.jpg',
72 | name:'Farm Eggs - Table Tray',
73 | price:82
74 | },
75 | {
76 | image:'https://www.bigbasket.com/media/uploads/p/s/10000071_14-fresho-carrot-orange.jpg',
77 | name:'Carrot - Orange (Loose)',
78 | price:19
79 |
80 | },
81 | {
82 | image:'https://www.bigbasket.com/media/uploads/p/s/40208261_1-borges-extra-virgin-olive-oil.jpg',
83 | name:'Extra Virgin Olive Oil',
84 | price:3360
85 | },
86 | {
87 | image:'https://www.bigbasket.com/media/uploads/p/s/10000200_17-fresho-tomato-hybrid.jpg',
88 | name:'Tomato - Hybrid (Loose)',
89 | price:38
90 | },
91 | {
92 | image:'https://www.bigbasket.com/media/uploads/p/s/40030808_10-bb-royal-cuminjeera-whole.jpg',
93 | name:'Cumin/Jeera/Jeerige - Whole',
94 | price:353
95 | }]
96 |
97 | function items(data)
98 | {
99 | let count=0;
100 | let main_container=document.getElementById("items_container");
101 | main_container.innerHTML=null;
102 | data.forEach(({image,name,price})=>{
103 | let div=document.createElement("div");
104 | div.id="item_div"
105 |
106 |
107 | let img=document.createElement("img");
108 | img.src=image;
109 | let p=document.createElement("p");
110 | p.innerText=name;
111 | let p2=document.createElement("p");
112 | p2.innerText=price;
113 | let cart=document.createElement("button");
114 | cart.innerText="ADD"
115 |
116 | let cart_items={
117 | image,
118 | name,
119 | price
120 | }
121 |
122 | cart.addEventListener('click',()=>{
123 | count++;
124 | let items_data = JSON.parse(localStorage.getItem("items")) || [];
125 | items_data.push(cart_items);
126 | localStorage.setItem("items", JSON.stringify(items_data));
127 |
128 | console.log(count)
129 |
130 | })
131 |
132 | div.append(img,p,p2,cart);
133 | main_container.append(div);
134 |
135 |
136 | })
137 |
138 |
139 |
140 |
141 |
142 | }
143 |
144 | items(bestseller);
145 |
146 |
--------------------------------------------------------------------------------
/login.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | login
8 |
9 |
42 |
43 |
44 |
45 |
46 |
1860 123 1000
47 |
560004, Bangalore
48 |
52 |
53 |
54 |
55 |
56 |
57 | SHOP BY CATEGORY
58 | Bakery, Cakes & Dairy
59 | Beauty & Hygiene
60 | Beverages
61 | FoodGrains,Oil & Masala
62 | Fruits & Vegetables
63 | Snacks & Branded Foods
64 |
65 |
66 |
67 |
72 |
73 |
74 |
My Basket
75 |
76 |
77 |
78 |
79 |
Log in
80 |
81 |
87 |
88 |
89 |
90 |
121 |
122 |
--------------------------------------------------------------------------------
/homepage.js:
--------------------------------------------------------------------------------
1 | let slideIndex = 1;
2 | showSlides(slideIndex);
3 |
4 | // Next/previous controls
5 | function plusSlides(n) {
6 | showSlides(slideIndex += n);
7 | }
8 |
9 | // Thumbnail image controls
10 | function currentSlide(n) {
11 | showSlides(slideIndex = n);
12 | }
13 |
14 | function showSlides(n) {
15 | let i;
16 | let slides = document.getElementsByClassName("mySlides");
17 | let dots = document.getElementsByClassName("dot");
18 | if (n > slides.length) { slideIndex = 1 }
19 | if (n < 1) { slideIndex = slides.length }
20 | for (i = 0; i < slides.length; i++) {
21 | slides[i].style.display = "none";
22 | }
23 | for (i = 0; i < dots.length; i++) {
24 | dots[i].className = dots[i].className.replace("active", "");
25 | }
26 | slides[slideIndex - 1].style.display = "block";
27 | dots[slideIndex - 1].className += " active";
28 | }
29 |
30 |
31 | showSlides();
32 |
33 | function showSlides() {
34 | let i;
35 | let slides = document.getElementsByClassName("mySlides");
36 | for (i = 0; i < slides.length; i++) {
37 | slides[i].style.display = "none";
38 | }
39 | slideIndex++;
40 | if (slideIndex > slides.length) { slideIndex = 1 }
41 | slides[slideIndex - 1].style.display = "block";
42 | setTimeout(showSlides, 4000); // Change image every 2 seconds
43 | }
44 |
45 |
46 | // let getdata=async()=>{
47 |
48 | // try{
49 |
50 | // let res= await fetch('https://edamam-food-and-grocery-database.p.rapidapi.com/parser?ingr=meat',{
51 | // method: 'GET',
52 | // headers: {
53 | // 'X-RapidAPI-Key': 'fb17a4ece0msh47eb9b62180a9c9p181e49jsn547c70adae2c',
54 | // 'X-RapidAPI-Host': 'edamam-food-and-grocery-database.p.rapidapi.com'
55 | // }
56 | // });
57 |
58 | // let data= await res.json();
59 | // console.log(data);
60 | // }catch(e){
61 | // console.log(e);
62 |
63 | // }
64 |
65 |
66 | // }
67 | // getdata();
68 | // Add to Cert Items
69 |
70 | let bestseller=[{
71 | image:'https://www.bigbasket.com/media/uploads/p/s/40072320_2-fresho-farm-eggs-table-tray-medium-antibiotic-residue-free.jpg',
72 | name:'Farm Eggs - Table Tray',
73 | price:82
74 | },
75 | {
76 | image:'https://www.bigbasket.com/media/uploads/p/s/10000071_14-fresho-carrot-orange.jpg',
77 | name:'Carrot - Orange (Loose)',
78 | price:19
79 |
80 | },
81 | {
82 | image:'https://www.bigbasket.com/media/uploads/p/s/40208261_1-borges-extra-virgin-olive-oil.jpg',
83 | name:'Extra Virgin Olive Oil',
84 | price:3360
85 | },
86 | {
87 | image:'https://www.bigbasket.com/media/uploads/p/s/10000200_17-fresho-tomato-hybrid.jpg',
88 | name:'Tomato - Hybrid (Loose)',
89 | price:38
90 | },
91 | {
92 | image:'https://www.bigbasket.com/media/uploads/p/s/40030808_10-bb-royal-cuminjeera-whole.jpg',
93 | name:'Cumin/Jeera/Jeerige - Whole',
94 | price:353
95 | }]
96 |
97 | function items(data)
98 | {
99 | let count=0;
100 | let main_container=document.getElementById("items_container");
101 | main_container.innerHTML=null;
102 | data.forEach(({image,name,price})=>{
103 | let div=document.createElement("div");
104 | div.id="item_div"
105 |
106 |
107 | let img=document.createElement("img");
108 | img.src=image;
109 | let p=document.createElement("p");
110 | p.innerText=name;
111 | let p2=document.createElement("p");
112 | p2.innerText=price;
113 | let cart=document.createElement("button");
114 | cart.innerText="ADD"
115 |
116 | let cart_items={
117 | image,
118 | name,
119 | price
120 | }
121 |
122 | cart.addEventListener('click',()=>{
123 | count++;
124 | let items_data = JSON.parse(localStorage.getItem("items")) || [];
125 | items_data.push(cart_items);
126 | localStorage.setItem("items", JSON.stringify(items_data));
127 |
128 | console.log(count)
129 |
130 | })
131 |
132 | div.append(img,p,p2,cart);
133 | main_container.append(div);
134 |
135 |
136 | })
137 |
138 |
139 |
140 |
141 |
142 | }
143 |
144 | items(bestseller);
145 |
146 | let i=0;
147 | let images=[];
148 | let time=3000;
149 | images[0]="https://www.bigbasket.com/media/uploads/banner_images/hp_m_petstore_250922_400.jpg";
150 | images[1]="https://www.bigbasket.com/media/uploads/banner_images/hp_bcd_m_bcd_250922_400.jpg";
151 | images[2]="https://www.bigbasket.com/media/uploads/banner_images/hp_m_health_suppliment_250922_400.jpg";
152 | images[3]="https://www.bigbasket.com/media/uploads/banner_images/hp_m_babycare_250922_400.jpg"
153 | function changeImg(){
154 | document.slide.src=images[i]
155 | if(i< images.length-1){
156 | i++;
157 | }
158 | else {
159 | i=0;
160 | }
161 | setTimeout("changeImg()",time)
162 | }
163 | window.onload=changeImg;
--------------------------------------------------------------------------------
/beverages.js:
--------------------------------------------------------------------------------
1 | const options = {
2 | method: 'GET',
3 | Headers : {
4 | "Content-Type" : "application/json",
5 |
6 | }
7 | };
8 |
9 | fetch(' https://api.spoonacular.com/food/search?query=beverages&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
10 | .then(response => response.json())
11 | .then(data => appendBeverages(data.searchResults[1].results))
12 | .catch(err => console.log(err));
13 |
14 | let beverages_images = ["https://www.bigbasket.com/media/uploads/banner_images/YXPL14540_1200x300_25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14539_1200x300_25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14535_1200x300_25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/L2-YXPL154-1200x300-25thmar.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXTT5179_DT_1200x300_24thsep22.jpg"];
15 | let img = document.createElement("img");
16 | let beverages_slider = document.getElementById("beverages_slider");
17 | let i = 0;
18 | setInterval(function(){
19 | if(i===3){i=0}
20 | img.src = beverages_images[i];
21 | beverages_slider.innerHTML = null;
22 | beverages_slider.append(img);
23 | i++;
24 | },3000);
25 |
26 |
27 |
28 | let cart_data = JSON.parse(localStorage.getItem('items'));
29 |
30 | function appendBeverages(data){
31 | let striked_price = [72.72, 101.3, 39.29, 53.25, 28.57, 50.22, 140.26, 263.64, 74.68, 72.73, 166.23, 81.82, 54.98, 58.01, 30.08, 64.94, 353.24, 92.53, 21.43, 233.76, 40.17, 35.06, 227.27, 141.56, 12.38, 112.38, 141.99, 28.57, 155.84, 32.47, 40, 189.61, 250.65, 13.11, 118.18, 149.35];
32 | let price = [55.99, 78, 20.5, 36, 19.5, 24.5, 103, 203, 53.5, 56, 102, 58.5, 39, 41, 23.16, 50, 271.99, 38.5, 16.5, 180, 29, 27, 175, 103, 9.53, 67.5, 96, 19, 120, 25, 30, 146, 193, 10.09, 91, 115];
33 |
34 | let i = 0;
35 | while(i<=10){
36 | let div = document.createElement("div");
37 | let img = document.createElement("img");
38 | img.src = data[i].image;
39 | let name = document.createElement("h4");
40 | name.innerHTML = data[i].name;
41 | let striked_price_div = document.createElement("p");
42 | striked_price_div.id = "striked_price";
43 | striked_price_div.innerHTML = `Rs:- ${striked_price[i]}`;
44 | let price_div = document.createElement("p");
45 | price_div.id = "price";
46 | price_div.innerHTML = `Rs:- ${price[i]}`;
47 | let add_to_cart = document.createElement("button");
48 | add_to_cart.innerText = "ADD";
49 | let obj = {
50 | image : data[i].image,
51 | name : data[i].name,
52 | striked_price : striked_price[i],
53 | price : price[i]
54 | }
55 | add_to_cart.addEventListener("click",(e)=>{
56 | cart_data.push(obj);
57 | localStorage.setItem("items",JSON.stringify(cart_data));
58 | alert ("Product added to cart succesfully");
59 | });
60 | div.append(img,name,striked_price_div,price_div,add_to_cart);
61 | document.getElementById("beverages_container").append(div);
62 | i++;
63 | }
64 | }
65 |
66 | let count = 0;
67 | document.getElementById("more_beverages").addEventListener('click',(e)=>{
68 | const options = {
69 | method: 'GET',
70 | Headers : {
71 | "Content-Type" : "application/json",
72 |
73 | }
74 | };
75 | console.log(count);
76 | fetch(' https://api.spoonacular.com/food/search?query=drinks&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
77 | .then(response => response.json())
78 | .then(data => appendBeverages(data.searchResults[1].results)
79 | .catch(err => console.log(err)))
80 | count++;
81 | if(count===1){
82 | fetch(' https://api.spoonacular.com/food/search?query=tea&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
83 | .then(response => response.json())
84 | .then(data => appendBeverages(data.searchResults[1].results)
85 | .catch(err => console.log(err)))
86 | }else if(count === 2){
87 | fetch(' https://api.spoonacular.com/food/search?query=coffee&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
88 | .then(response => response.json())
89 | .then(data => appendBeverages(data.searchResults[1].results)
90 | .catch(err => console.log(err)))
91 | }else if(count === 3){
92 | fetch(' https://api.spoonacular.com/food/search?query=wines&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
93 | .then(response => response.json())
94 | .then(data => appendBeverages(data.searchResults[1].results)
95 | .catch(err => console.log(err)))
96 | }
97 | }) ;
--------------------------------------------------------------------------------
/beauty.js:
--------------------------------------------------------------------------------
1 | const options = {
2 | method: 'GET',
3 | headers: {
4 | 'X-RapidAPI-Key': '1890b4099emsh5032653b60150a7p18974fjsne6d1feb5c535',
5 | 'X-RapidAPI-Host': 'sephora.p.rapidapi.com'
6 | }
7 | };
8 |
9 | fetch('https://sephora.p.rapidapi.com/auto-complete?q=beauty', options)
10 | .then(response => response.json())
11 | .then(data => appendBeauty(data.typeAheadTerms))
12 | .catch(err => console.error(err));
13 |
14 | let beauty_images = ["https://www.bigbasket.com/media/uploads/banner_images/YXPL14714_1200x300_25thsep.jpg","https://www.bigbasket.com/media/uploads/banner_images/L2-YXPL154-1200x300-25thmar.jpg","https://www.bigbasket.com/media/customPage/7693c8af-c9b3-4fc5-b1a8-5d3e8496dc6e/dbc3ec45-8257-4c5c-85b0-b5fcabf5644c/1846b03b-e0f4-4433-9b20-301d49edfdae/korean-beauty-1130x400-12feb21.jpg","https://www.bigbasket.com/media/customPage/7693c8af-c9b3-4fc5-b1a8-5d3e8496dc6e/dbc3ec45-8257-4c5c-85b0-b5fcabf5644c/1846b03b-e0f4-4433-9b20-301d49edfdae/natural-store-1130x400-12feb21.jpg"];
15 | let img = document.createElement("img");
16 | let beauty_slider = document.getElementById("beauty_slider");
17 | let i = 0;
18 | setInterval(function(){
19 | if(i===4){i=0}
20 | img.src = beauty_images[i];
21 | beauty_slider.innerHTML = null;
22 | beauty_slider.append(img);
23 | i++;
24 | },3000);
25 |
26 | let cart_data = JSON.parse(localStorage.getItem('items'));
27 |
28 | function appendBeauty(data){
29 | let striked_price = [72.72, 101.3, 39.29, 53.25, 28.57, 50.22, 140.26, 263.64, 74.68, 72.73, 166.23, 81.82, 54.98, 58.01, 30.08, 64.94, 353.24, 92.53, 21.43, 233.76, 40.17, 35.06, 227.27, 141.56, 12.38, 112.38, 141.99, 28.57, 155.84, 32.47, 40, 189.61, 250.65, 13.11, 118.18, 149.35];
30 | let price = [55.99, 78, 20.5, 36, 19.5, 24.5, 103, 203, 53.5, 56, 102, 58.5, 39, 41, 23.16, 50, 271.99, 38.5, 16.5, 180, 29, 27, 175, 103, 9.53, 67.5, 96, 19, 120, 25, 30, 146, 193, 10.09, 91, 115];
31 |
32 | let i = 3;
33 | while(i<=10){
34 | let div = document.createElement("div");
35 | let image = document.createElement("img");
36 | image.src = data[i].defaultSku.skuImages.image50;
37 | let name = document.createElement("h4");
38 | name.innerHTML = data[i].productName;
39 | let striked_price_div = document.createElement("p");
40 | striked_price_div.id = "striked_price";
41 | striked_price_div.innerHTML = `Rs:- ${striked_price[i]}`;
42 | let price_div = document.createElement("p");
43 | price_div.id = "price";
44 | price_div.innerHTML = `Rs:- ${price[i]}`;
45 | let add_to_cart = document.createElement("button");
46 | add_to_cart.innerText = "ADD";
47 | let obj = {
48 | image : data[i].defaultSku.skuImages.image50,
49 | name : data[i].productName,
50 | striked_price : striked_price[i],
51 | price : price[i]
52 | }
53 | add_to_cart.addEventListener("click",(e)=>{
54 | cart_data.push(obj);
55 | localStorage.setItem("items",JSON.stringify(cart_data));
56 | alert ("Product added to cart succesfully");
57 | });
58 | div.append(image,name,striked_price_div,price_div,add_to_cart);
59 | document.getElementById("beauty_container").append(div);
60 | i++;
61 | }
62 | }
63 |
64 | let count = 0;
65 | document.getElementById("more_beauty").addEventListener("click",(e)=>{
66 | const options = {
67 | method: 'GET',
68 | headers: {
69 | 'X-RapidAPI-Key': '1890b4099emsh5032653b60150a7p18974fjsne6d1feb5c535',
70 | 'X-RapidAPI-Host': 'sephora.p.rapidapi.com'
71 | }
72 | };
73 |
74 | fetch('https://sephora.p.rapidapi.com/auto-complete?q=eyelashes', options)
75 | .then(response => response.json())
76 | .then(data => appendBeauty(data.typeAheadTerms))
77 | .catch(err => console.error(err));
78 | count++;
79 | console.log(count);
80 | if(count === 1){
81 | fetch('https://sephora.p.rapidapi.com/auto-complete?q=blush', options)
82 | .then(response => response.json())
83 | .then(data => appendBeauty(data.typeAheadTerms))
84 | .catch(err => console.error(err));
85 | }else if(count === 2){
86 | fetch('https://sephora.p.rapidapi.com/auto-complete?q=bronzer', options)
87 | .then(response => response.json())
88 | .then(data => appendBeauty(data.typeAheadTerms))
89 | .catch(err => console.error(err));
90 | }else if(count === 3){
91 | fetch('https://sephora.p.rapidapi.com/auto-complete?q=eyebrow', options)
92 | .then(response => response.json())
93 | .then(data => appendBeauty(data.typeAheadTerms))
94 | .catch(err => console.error(err));
95 | }
96 |
97 | });
98 |
99 |
--------------------------------------------------------------------------------
/footer.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0%;
3 | }
4 | #b1 {
5 | display: block;
6 | margin-left: auto;
7 | margin-right: auto;
8 | width: 1400px;
9 | height: 1420px;
10 | border: 1px solid black;
11 | }
12 | #a{
13 | width: 1370px;
14 | height: 100px;
15 |
16 | font-style:unset;
17 | display: block;
18 | margin-left: auto;
19 | margin-right: auto;
20 | color: black;
21 |
22 | }
23 | #b{
24 | width: 1370px;
25 | height: 200px;
26 |
27 | font-style:unset;
28 | display: block;
29 | margin-left: auto;
30 | margin-right: auto;
31 | color: rgb(78, 76, 76);
32 |
33 | }
34 | #c{
35 | width:1370px;
36 | height: 50px;
37 |
38 | font-style:unset;
39 | display: block;
40 | margin-left: auto;
41 | margin-right: auto;
42 | color: rgb(85, 83, 83);
43 |
44 | }
45 |
46 | #d{
47 | width: 1370px;
48 | height: 200px;
49 |
50 | font-style:unset;
51 | display: block;
52 | margin-left: auto;
53 | margin-right: auto;
54 | color:black;
55 |
56 | }
57 | #e{
58 | width:1370px;
59 | height: 100px;
60 |
61 | font-style:unset;
62 | display: block;
63 | margin-left: auto;
64 | margin-right: auto;
65 | color:black;
66 |
67 | }
68 | #f{
69 | width: 1370px;
70 | height: 150px;
71 |
72 | font-style:unset;
73 | display: block;
74 | margin-left: auto;
75 | margin-right: auto;
76 | color: rgb(85, 83, 83);
77 |
78 | }
79 | #g{
80 | width:1370px;
81 | height: 80px;
82 |
83 | font-style:unset;
84 | display: block;
85 | margin-left: auto;
86 | margin-right: auto;
87 | color: rgb(85, 83, 83);
88 |
89 | }
90 | #h,#i,#j{
91 | width: 1370px;
92 | height: 130px;
93 |
94 | font-style:unset;
95 | display: block;
96 | margin-left: auto;
97 | margin-right: auto;
98 | color: rgb(85, 83, 83);
99 |
100 | }
101 | .fourteen {
102 | display: grid;
103 | margin: 50px auto 0px auto;
104 | width: 1390px;
105 | height: 1000px;
106 | grid-template-columns: repeat(29, 1fr);
107 |
108 |
109 | gap: 5px 20px;
110 |
111 | }
112 |
113 | .fourteen>div {
114 | display: flex;
115 |
116 |
117 | margin: 5px 1px 0px 5px;
118 | }
119 |
120 | .fourteen>div>img {
121 | width: 220px;
122 | height: 90px;
123 | }
124 |
125 | #ena{
126 | color: limegreen;
127 | }
128 |
129 | .m1 {
130 | grid-area: 1/1/2/6;
131 |
132 | }
133 |
134 |
135 | .m2 {
136 | grid-area: 2/1/3/6;
137 | }
138 |
139 | .m3 {
140 | grid-area: 3/1/4/6;
141 | }
142 |
143 | .m4 {
144 | grid-area: 4/1/5/6;
145 | }
146 |
147 | .m5 {
148 | grid-area: 5/1/6/6;
149 | }
150 |
151 | .m6 {
152 | grid-area: 6/1/7/6;
153 | }
154 |
155 | .m7 {
156 | grid-area: 7/1/8/6;
157 | }
158 |
159 | .m8 {
160 | grid-area: 8/1/9/6;
161 | }
162 |
163 | .m9 {
164 | grid-area: 9/1/10/6;
165 | }
166 |
167 | .m10 {
168 | grid-area: 10/1/11/6;
169 | }
170 |
171 | .m11 {
172 | grid-area: 11/1/12/6;
173 | }
174 |
175 | .m12 {
176 | grid-area: 12/1/13/6;
177 | }
178 |
179 | .m13 {
180 | grid-area: 1/8/2/13;
181 | }
182 |
183 | .m14 {
184 | grid-area: 2/8/3/13;
185 | }
186 |
187 | .m15 {
188 | grid-area: 3/8/4/13;
189 | }
190 |
191 | .m16 {
192 | grid-area: 4/8/5/13;
193 | }
194 |
195 | .m17 {
196 | grid-area: 5/8/6/13;
197 | }
198 |
199 | .m18 {
200 | grid-area: 6/8/7/13;
201 | }
202 |
203 | .m19 {
204 | grid-area: 1/14/2/20;
205 | }
206 |
207 | .m20 {
208 | grid-area: 2/14/4/20;
209 | }
210 |
211 | .m21 {
212 | grid-area: 4/14/6/20;
213 | }
214 |
215 | .m22 {
216 | grid-area: 1/21/2/29;
217 | }
218 |
219 | .m23 {
220 | grid-area: 2/21/4/23;
221 | }
222 |
223 | .m24 {
224 | grid-area: 2/23/4/25;
225 | }
226 |
227 | .m25 {
228 | grid-area: 2/25/4/27;
229 | }
230 |
231 | .m26 {
232 | grid-area: 2/27/4/29;
233 | }
234 |
235 |
236 |
237 |
238 | .fifteen {
239 | display: grid;
240 | margin: 50px auto 0px auto;
241 | width: 1390px;
242 | height: 700px;
243 | grid-template-columns: repeat(12, 1fr);
244 |
245 |
246 | gap: 5px 20px;
247 |
248 | }
249 |
250 | .fifteen>div {
251 | display: flex;
252 | color:darkgray;
253 | font-style:inherit;
254 |
255 | margin: 5px 1px 0px 5px;
256 | }
257 |
258 | .fifteen>div>img {
259 | width: 120px;
260 | height: 50px;
261 | }
262 | #meena{
263 | color: limegreen;
264 | }
265 |
266 |
267 |
268 | .n1 {
269 | grid-area: 1/1/2/4;
270 |
271 | }
272 |
273 |
274 | .n2 {
275 | grid-area: 1/4/2/13;
276 | }
277 |
278 | .n3 {
279 | grid-area: 2/1/3/4;
280 | }
281 |
282 | .n4 {
283 | grid-area: 2/4/3/13;
284 | }
285 |
286 | .n5 {
287 | grid-area: 3/1/5/4;
288 | }
289 |
290 | .n6 {
291 | grid-area: 3/4/5/13;
292 | }
293 |
294 | .n7 {
295 | grid-area: 5/1/6/4;
296 | }
297 | .n8 {
298 | grid-area: 5/4/6/5;
299 | }
300 | .n9 {
301 | grid-area: 5/5/6/6;
302 | }
303 | .n10 {
304 | grid-area: 5/6/6/7;
305 | }
306 | .n11 {
307 | grid-area: 5/7/6/8;
308 | }
309 | .n12 {
310 | grid-area: 5/8/6/9;
311 | }
312 | .n13 {
313 | grid-area: 5/9/6/10;
314 | }
315 | .n14 {
316 | grid-area: 5/10/6/11;
317 | }
318 |
319 | .sixteen {
320 | display: grid;
321 | margin: 50px 0px 0px 0px;
322 | width: 1780px;
323 | height: 50px;
324 | grid-template-columns: repeat(7, 1fr);
325 | background-color: rgb(204, 203, 203);
326 |
327 | gap: 0px 0px;
328 |
329 | }
330 |
331 | .sixteen>div {
332 | display: flex;
333 | color:rgb(72, 71, 71);
334 | font-style:inherit;
335 |
336 | margin: 0px 0px 0px 0px;
337 | }
338 |
339 | .o1 {
340 | grid-area: 1/2/2/5;
341 |
342 | }
343 |
344 |
345 | .o2 {
346 | grid-area: 1/7/2/8;
347 | }
348 |
349 |
350 |
--------------------------------------------------------------------------------
/fruits_category.js:
--------------------------------------------------------------------------------
1 | const options = {
2 | method: 'GET',
3 | Headers : {
4 | "Content-Type" : "application/json",
5 |
6 | }
7 | };
8 |
9 | fetch('https://api.spoonacular.com/food/search?query=fruits&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
10 | .then(response => response.json())
11 | .then(data => appendFruits(data.searchResults[1].results))
12 | .catch(err => console.log(err));
13 |
14 | let fruits_images = ["https://www.bigbasket.com/media/uploads/banner_images/L1-YXNP4834-1200X300-01stSEP22.jpg","https://www.bigbasket.com/media/uploads/banner_images/L1-YXNP3540-1200X300-20thJun22.jpg","https://www.bigbasket.com/media/uploads/banner_images/L1-YXNP3469-1200X300-16thJun22.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXNP5333-1200x300-070922.jpg","https://www.bigbasket.com/media/uploads/banner_images/fresho-fnv-Bangalore-1200x300-27thSEP22.jpeg"];
15 | let img = document.createElement("img");
16 | let fruits_slider = document.getElementById("fruits_slider");
17 | let i = 0;
18 | setInterval(function(){
19 | if(i===3){i=0}
20 | img.src = fruits_images[i];
21 | fruits_slider.innerHTML = null;
22 | fruits_slider.append(img);
23 | i++;
24 | },3000);
25 |
26 |
27 |
28 |
29 |
30 | function appendFruits(data){
31 |
32 |
33 | console.log(data);
34 | let striked_price = [72.72, 101.3, 39.29, 53.25, 28.57, 50.22, 140.26, 263.64, 74.68, 72.73, 166.23, 81.82, 54.98, 58.01, 30.08, 64.94, 353.24, 92.53, 21.43, 233.76, 40.17, 35.06, 227.27, 141.56, 12.38, 112.38, 141.99, 28.57, 155.84, 32.47, 40, 189.61, 250.65, 13.11, 118.18, 149.35];
35 | let price = [55.99, 78, 20.5, 36, 19.5, 24.5, 103, 203, 53.5, 56, 102, 58.5, 39, 41, 23.16, 50, 271.99, 38.5, 16.5, 180, 29, 27, 175, 103, 9.53, 67.5, 96, 19, 120, 25, 30, 146, 193, 10.09, 91, 115];
36 |
37 | let arr = [];
38 | let i = 0;
39 | while(i<=35){
40 | let div = document.createElement("div");
41 | let image = document.createElement("img");
42 | image.src = data[i].image;
43 | let name = document.createElement("h4");
44 | name.innerHTML = data[i].name;
45 | let striked_price_div = document.createElement("p");
46 | striked_price_div.id = "striked_price";
47 | striked_price_div.innerHTML = `Rs:- ${striked_price[i]}`;
48 | let price_div = document.createElement("p");
49 | price_div.innerHTML = `Rs:- ${price[i]}`;
50 | let add_to_cart = document.createElement("button");
51 | add_to_cart.innerText = "ADD";
52 | let obj = {
53 | image : data[i].image,
54 | name : data[i].name,
55 | striked_price : striked_price[i],
56 | price : price[i]
57 | }
58 | add_to_cart.addEventListener("click",(e)=>{
59 | arr.push(obj);
60 | localStorage.setItem("items",JSON.stringify(arr));
61 | alert ("Product added to cart succesfully");
62 | });
63 | div.append(image,name,striked_price_div,price_div,add_to_cart);
64 | document.getElementById("fruits_category_container").append(div);
65 | i++;
66 | }
67 | }
68 |
69 |
70 | document.getElementById("more_fruits").addEventListener('click',(e)=>{
71 | const options = {
72 | method: 'GET',
73 | Headers : {
74 | "Content-Type" : "application/json",
75 |
76 | }
77 | };
78 |
79 | fetch(' https://api.spoonacular.com/food/search?query=vegetables&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
80 | .then(response => response.json())
81 | .then(data => appendFruits(data.searchResults[1].results))
82 | .catch(err => console.log(err));
83 | function appendFruits(data){
84 | let count = 0;
85 | console.log(data);
86 | let striked_price = [72.72, 101.3, 39.29, 53.25, 28.57, 50.22, 140.26, 263.64, 74.68, 72.73, 166.23, 81.82, 54.98, 58.01, 30.08, 64.94, 353.24, 92.53, 21.43, 233.76, 40.17, 35.06, 227.27, 141.56, 12.38, 112.38, 141.99, 28.57, 155.84, 32.47, 40, 189.61, 250.65, 13.11, 118.18, 149.35];
87 | let price = [55.99, 78, 20.5, 36, 19.5, 24.5, 103, 203, 53.5, 56, 102, 58.5, 39, 41, 23.16, 50, 271.99, 38.5, 16.5, 180, 29, 27, 175, 103, 9.53, 67.5, 96, 19, 120, 25, 30, 146, 193, 10.09, 91, 115];
88 |
89 | let arr = [];
90 | let i = 0;
91 | while(i<=10){
92 | let div = document.createElement("div");
93 | let image = document.createElement("img");
94 | image.src = data[i].image;
95 | let name = document.createElement("h4");
96 | name.innerHTML = data[i].name;
97 | let striked_price_div = document.createElement("p");
98 | striked_price_div.id = "striked_price";
99 | striked_price_div.innerHTML = `Rs:- ${striked_price[i]}`;
100 | let price_div = document.createElement("p");
101 | price_div.innerHTML = `Rs:- ${price[i]}`;
102 | let add_to_cart = document.createElement("button");
103 | add_to_cart.innerText = "ADD";
104 | let obj = {
105 | image : data[i].image,
106 | name : data[i].name,
107 | striked_price : striked_price[i],
108 | price : price[i]
109 | }
110 | add_to_cart.addEventListener("click",(e)=>{
111 | arr.push(obj);
112 | localStorage.setItem("items",JSON.stringify(arr));
113 | alert ("Product added to cart succesfully");
114 | });
115 | div.append(image,name,striked_price_div,price_div,add_to_cart);
116 | document.getElementById("fruits_category_container").append(div);
117 | i++;
118 | }
119 | count++;
120 | if(count===1){
121 | count = 0;
122 | }
123 | }
124 | }) ;
--------------------------------------------------------------------------------
/foodgrains.js:
--------------------------------------------------------------------------------
1 | const options = {
2 | method: 'GET',
3 | Headers : {
4 | "Content-Type" : "application/json",
5 |
6 | }
7 | };
8 |
9 | fetch(' https://api.spoonacular.com/food/search?query=grains&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
10 | .then(response => response.json())
11 | .then(data => appendGrains(data.searchResults[1].results))
12 | .catch(err => console.log(err));
13 |
14 | let grains_images = ["https://www.bigbasket.com/media/uploads/banner_images/YXTT4977_1200x300_250922.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXNP4699_1200x300_290822.jpg","https://www.bigbasket.com/media/uploads/banner_images/CXNP5623_1200x300_301021.jpg","https://www.bigbasket.com/media/uploads/banner_images/YXPL14771_YXPL14773_YXPL14774_YXPL14781_YXPL14795_300_240922.jpg"];
15 | let img = document.createElement("img");
16 | let food_grains_slider = document.getElementById("food_grains_slider");
17 | let i = 0;
18 | setInterval(function(){
19 | if(i===3){i=0}
20 | img.src = grains_images[i];
21 | food_grains_slider.innerHTML = null;
22 | food_grains_slider.append(img);
23 | i++;
24 | },3000);
25 |
26 |
27 |
28 |
29 |
30 | function appendGrains(data){
31 |
32 |
33 | console.log(data);
34 | let striked_price = [72.72, 101.3, 39.29, 53.25, 28.57, 50.22, 140.26, 263.64, 74.68, 72.73, 166.23, 81.82, 54.98, 58.01, 30.08, 64.94, 353.24, 92.53, 21.43, 233.76, 40.17, 35.06, 227.27, 141.56, 12.38, 112.38, 141.99, 28.57, 155.84, 32.47, 40, 189.61, 250.65, 13.11, 118.18, 149.35];
35 | let price = [55.99, 78, 20.5, 36, 19.5, 24.5, 103, 203, 53.5, 56, 102, 58.5, 39, 41, 23.16, 50, 271.99, 38.5, 16.5, 180, 29, 27, 175, 103, 9.53, 67.5, 96, 19, 120, 25, 30, 146, 193, 10.09, 91, 115];
36 |
37 | let arr = [];
38 | let i = 0;
39 | while(i<=35){
40 | let div = document.createElement("div");
41 | let image = document.createElement("img");
42 | image.src = data[i].image;
43 | let name = document.createElement("h4");
44 | name.innerHTML = data[i].name;
45 | let striked_price_div = document.createElement("p");
46 | striked_price_div.id = "striked_price";
47 | striked_price_div.innerHTML = `Rs:- ${striked_price[i]}`;
48 | let price_div = document.createElement("p");
49 | price_div.innerHTML = `Rs:- ${price[i]}`;
50 | let add_to_cart = document.createElement("button");
51 | add_to_cart.innerText = "ADD";
52 | let obj = {
53 | image : data[i].image,
54 | name : data[i].name,
55 | striked_price : striked_price[i],
56 | price : price[i]
57 | }
58 | add_to_cart.addEventListener("click",(e)=>{
59 | arr.push(obj);
60 | localStorage.setItem("items",JSON.stringify(arr));
61 | alert ("Product added to cart succesfully");
62 | });
63 | div.append(image,name,striked_price_div,price_div,add_to_cart);
64 | document.getElementById("food_grains_container").append(div);
65 | i++;
66 | }
67 | }
68 |
69 | let count = 0;
70 |
71 | document.getElementById("more_grains").addEventListener('click',(e)=>{
72 | const options = {
73 | method: 'GET',
74 | Headers : {
75 | "Content-Type" : "application/json",
76 |
77 | }
78 | };
79 |
80 | fetch(' https://api.spoonacular.com/food/search?query=oil&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
81 | .then(response => response.json())
82 | .then(data => appendGrains(data.searchResults[1].results))
83 | .catch(err => console.log(err));
84 | function appendGrains(data){
85 | console.log(data);
86 | let striked_price = [72.72, 101.3, 39.29, 53.25, 28.57, 50.22, 140.26, 263.64, 74.68, 72.73, 166.23, 81.82, 54.98, 58.01, 30.08, 64.94, 353.24, 92.53, 21.43, 233.76, 40.17, 35.06, 227.27, 141.56, 12.38, 112.38, 141.99, 28.57, 155.84, 32.47, 40, 189.61, 250.65, 13.11, 118.18, 149.35];
87 | let price = [55.99, 78, 20.5, 36, 19.5, 24.5, 103, 203, 53.5, 56, 102, 58.5, 39, 41, 23.16, 50, 271.99, 38.5, 16.5, 180, 29, 27, 175, 103, 9.53, 67.5, 96, 19, 120, 25, 30, 146, 193, 10.09, 91, 115];
88 |
89 | let arr = [];
90 | let i = 0;
91 | while(i<=10){
92 | let div = document.createElement("div");
93 | let image = document.createElement("img");
94 | image.src = data[i].image;
95 | let name = document.createElement("h4");
96 | name.innerHTML = data[i].name;
97 | let striked_price_div = document.createElement("p");
98 | striked_price_div.id = "striked_price";
99 | striked_price_div.innerHTML = `Rs:- ${striked_price[i]}`;
100 | let price_div = document.createElement("p");
101 | price_div.innerHTML = `Rs:- ${price[i]}`;
102 | let add_to_cart = document.createElement("button");
103 | add_to_cart.innerText = "ADD";
104 | let obj = {
105 | image : data[i].image,
106 | name : data[i].name,
107 | striked_price : striked_price[i],
108 | price : price[i]
109 | }
110 | add_to_cart.addEventListener("click",(e)=>{
111 | arr.push(obj);
112 | localStorage.setItem("items",JSON.stringify(arr));
113 | alert ("Product added to cart succesfully");
114 | });
115 | div.append(image,name,striked_price_div,price_div,add_to_cart);
116 | document.getElementById("food_grains_container").append(div);
117 | i++;
118 | }
119 | }
120 | count++;
121 | if(count===1){
122 | const options = {
123 | method: 'GET',
124 | Headers : {
125 | "Content-Type" : "application/json",
126 |
127 | }
128 | };
129 |
130 | fetch(' https://api.spoonacular.com/food/search?query=masala&apiKey=16a7ab4f21a24c6aba65724240f8792e', options)
131 | .then(response => response.json())
132 | .then(data => appendGrains(data.searchResults[1].results))
133 | .catch(err => console.log(err));
134 | function appendGrains(data){
135 | console.log(data);
136 | let striked_price = [72.72, 101.3, 39.29, 53.25, 28.57, 50.22, 140.26, 263.64, 74.68, 72.73, 166.23, 81.82, 54.98, 58.01, 30.08, 64.94, 353.24, 92.53, 21.43, 233.76, 40.17, 35.06, 227.27, 141.56, 12.38, 112.38, 141.99, 28.57, 155.84, 32.47, 40, 189.61, 250.65, 13.11, 118.18, 149.35];
137 | let price = [55.99, 78, 20.5, 36, 19.5, 24.5, 103, 203, 53.5, 56, 102, 58.5, 39, 41, 23.16, 50, 271.99, 38.5, 16.5, 180, 29, 27, 175, 103, 9.53, 67.5, 96, 19, 120, 25, 30, 146, 193, 10.09, 91, 115];
138 |
139 | let arr = [];
140 | let i = 0;
141 | while(i<=10){
142 | let div = document.createElement("div");
143 | let image = document.createElement("img");
144 | image.src = data[i].image;
145 | let name = document.createElement("h4");
146 | name.innerHTML = data[i].name;
147 | let striked_price_div = document.createElement("p");
148 | striked_price_div.id = "striked_price";
149 | striked_price_div.innerHTML = `Rs:- ${striked_price[i]}`;
150 | let price_div = document.createElement("p");
151 | price_div.innerHTML = `Rs:- ${price[i]}`;
152 | let add_to_cart = document.createElement("button");
153 | add_to_cart.innerText = "ADD";
154 | let obj = {
155 | image : data[i].image,
156 | name : data[i].name,
157 | striked_price : striked_price[i],
158 | price : price[i]
159 | }
160 | add_to_cart.addEventListener("click",(e)=>{
161 | arr.push(obj);
162 | localStorage.setItem("items",JSON.stringify(arr));
163 | alert ("Product added to cart succesfully");
164 | });
165 | div.append(image,name,striked_price_div,price_div,add_to_cart);
166 | document.getElementById("food_grains_container").append(div);
167 | i++;
168 | }
169 | }
170 | }
171 | if(count === 2){
172 | count = 0;
173 | }
174 | }) ;
--------------------------------------------------------------------------------
/homepage.css:
--------------------------------------------------------------------------------
1 | #homepage_container{
2 | margin-top: 150px;
3 | }
4 | #container{
5 | margin: auto;
6 | width: 75%;
7 | display: flex;
8 | /* border: 1px solid red; */
9 | justify-content:space-between;
10 | /* align-items: center; */
11 | }
12 | h1{
13 | text-align: center;
14 | }
15 | #child{
16 | margin: auto;
17 | /* width: 25%; */
18 | display: grid;
19 | /* border: 1px solid black; */
20 | grid-template-columns: repeat(2,1fr);
21 | justify-content: space-between;
22 | }
23 | #child div{
24 | /* border: 1px solid black; */
25 | margin: auto;
26 | justify-content: space-around;
27 | margin: 4px;
28 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
29 | }
30 | #div1{
31 | /* width: 25%; */
32 | /* border: 1px solid black; */
33 | justify-content: space-around;
34 | margin: 4px;
35 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
36 | }
37 | #container2{
38 | width: 75%;
39 | margin: auto;
40 | display: flex;
41 | /* grid-template-columns: repeat(6,1fr); */
42 | justify-content: space-between;
43 |
44 | }
45 | #container2 div{
46 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
47 | margin: 4px;
48 | }
49 | .image{
50 | width: 100%;
51 | }
52 | #beverages{
53 | margin: auto;
54 | width: 75%;
55 | display: flex;
56 | justify-content: space-between;
57 | }
58 | #child2{
59 | display: grid;
60 | grid-template-columns: repeat(2,1fr);
61 | }
62 | #child2 div{
63 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
64 | margin: 4px;
65 | }
66 | #div2{
67 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
68 | margin: 4px;
69 | }
70 | #Snaks{
71 | margin: auto;
72 | width: 75%;
73 | display: flex;
74 | justify-content: space-between;
75 | }
76 | #Snaks div{
77 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
78 | margin: 4px;
79 | }
80 | .image2{
81 | width: 100%;
82 | }
83 | #clean{
84 | margin: auto;
85 | width: 75%;
86 | display: flex;
87 | justify-content: space-between;
88 | }
89 | #clean div{
90 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
91 | margin: 4px;
92 | }
93 | .image3{
94 | width:100%;
95 | }
96 | #slider{
97 | margin: 30px;
98 | width: 74%;
99 | margin-left: 13%;
100 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
101 | }
102 | #brand{
103 | margin: auto;
104 | width: 75%;
105 | display: flex;
106 | justify-content: space-between;
107 | }
108 | #brand div{
109 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
110 | margin: 4px;
111 | }
112 | .image4{
113 | width: 100%;
114 | }
115 | #last{
116 | width: 72%;
117 | margin: auto;
118 | box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
119 | margin-top: 25px;
120 | padding: 8px;
121 | padding-left: 20px;
122 | padding-right: 15px;
123 | }
124 | p{
125 | font-size: 16px;
126 | }
127 | * {
128 | box-sizing: border-box
129 | }
130 | /* Slideshow container */
131 |
132 | .slideshow-container {
133 | width: 100%;
134 | height: 400px;
135 | position: relative;
136 | margin: auto;
137 | /* <--- set to zero, 1em = the inherited font size, which will offset it */
138 | /* <--- set to zero, 1em = the inherited font size, which will offset it */
139 | }
140 | /* Hide the images by default */
141 |
142 | .mySlides {
143 | display: none;
144 | }
145 | /* Next & previous buttons */
146 |
147 | .prev,
148 | .next {
149 | cursor: pointer;
150 | position: absolute;
151 | top: 50%;
152 | margin-top: -22px;
153 | width: auto;
154 | padding: 16px;
155 | color: white;
156 | font-weight: bold;
157 | font-size: 18px;
158 | transition: 0.6s ease;
159 | border-radius: 0 3px 3px 0;
160 | user-select: none;
161 | }
162 | /* Position the "next button" to the right */
163 |
164 | .next {
165 | right: 0;
166 | border-radius: 3px 0 0 3px;
167 | }
168 | /* On hover, add a black background color with a little bit see-through */
169 |
170 | .prev:hover,
171 | .next:hover {
172 | background-color: rgba(0, 0, 0, 0.8);
173 | }
174 | /* Caption text */
175 | /* Number text (1/3 etc) */
176 | /* The dots/bullets/indicators */
177 |
178 | .dot {
179 | cursor: pointer;
180 | height: 15px;
181 | width: 15px;
182 |
183 | background-color: #bbb;
184 | border-radius: 50%;
185 | display: inline-block;
186 | transition: background-color 0.6s ease;
187 | }
188 |
189 | .active,
190 | .dot:hover {
191 | background-color: #717171;
192 | }
193 | /* Fading animation */
194 |
195 | .fade {
196 | animation-name: fade;
197 | animation-duration: 1.5s;
198 | }
199 |
200 | @keyframes fade {
201 | from {
202 | opacity: .4
203 | }
204 | to {
205 | opacity: 1
206 | }
207 | }
208 |
209 | #Button_Container{
210 | margin-top: 5%;
211 | display: flex;
212 | justify-content: center;
213 | }
214 | #Button_Container>img{
215 | margin-left: 1%;
216 | }
217 | #Button_Container>img:hover{
218 | border: gray solid;
219 | border-width: 1px;
220 | border-radius: 10%;
221 | }
222 |
223 | #image_Container{
224 | margin-top: 1%;
225 | display: flex;
226 | justify-content: center;
227 | }
228 | #image_Container>img{
229 | margin-left: 1%;
230 | width: 19%;
231 | height: 19%;
232 | border: gray solid;
233 | border-width: 1px;
234 | }
235 |
236 | #image_Container>img:hover{
237 | box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
238 | }
239 | #popular_brand
240 | {
241 | margin-top: 1%;
242 | display: flex;
243 | justify-content: center;
244 |
245 | }
246 | #popular_brand>img{
247 | margin-left: 1%;
248 | width: 19%;
249 | height: 19%;
250 | border: gray solid;
251 | border-width: 1px;
252 | }
253 | #popular_brand>img:hover{
254 | box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
255 | }
256 | #Top_Offers{
257 | margin-top: 1%;
258 | display: flex;
259 | justify-content: center;
260 | }
261 | #Top_Offers>img{
262 | margin-left: 1%;
263 | width: 19%;
264 | height: 19%;
265 | border: gray solid;
266 | border-width: 1px;
267 | }
268 | #Top_Offers>img:hover{
269 | box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
270 | }
271 | #item_div
272 | {
273 | width: 14%;
274 | height: 26%;
275 | border: lightgray solid ;
276 | border-width: 0.1px;
277 | margin-left: 1%;
278 |
279 | }
280 | #item_div:hover{
281 | box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
282 | }
283 | #item_div>img{
284 | width: 100%;
285 | }
286 | #item_div>p{
287 | margin-left: 8%;
288 | }
289 | #item_div>button{
290 | margin-left: 40%;
291 | background-color: orange;
292 | margin-bottom: 2%;
293 | border: 0px;
294 | padding: 0 2% 0 2%;
295 | border-radius: 2px;
296 |
297 |
298 | }
299 | #item_div>button:hover{
300 | background-color: greenyellow;
301 | }
--------------------------------------------------------------------------------
/slider.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
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 |
244 |
245 | Bank Offers
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 | Best Sellers
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 | Most Popular
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 | Top Offers
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
--------------------------------------------------------------------------------
/main.js:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | function images(){
6 | let arr=[
7 | `https://www.bigbasket.com/media/uploads/banner_images/HP_EMF_M_WeekdayKOLKATA-1130x400_220927.jpeg`,
8 | `https://www.bigbasket.com/media/uploads/banner_images/hp_m_Dry_FishBanner_400_070922.jpg`,
9 | `https://www.bigbasket.com/media/uploads/banner_images/HP_EMF_M_WeekdayKOLKATA-1130x400_220927.jpeg`,
10 | `https://www.bigbasket.com/media/uploads/banner_images/HP_EMF_M_T1-1130x400_220708.jpg`
11 |
12 |
13 | ]
14 | let i=0;
15 | let cont=document.getElementById("image")
16 | // cont.innerHTML=null
17 | let img=document.createElement("img")
18 | let button=document.getElementById("right")
19 | img.src=arr[0]
20 | cont.append(img)
21 | i++;
22 |
23 | button.addEventListener("click",function(){
24 | if(i==arr.length){
25 | i=0
26 | }
27 | img.src=arr[i]
28 | cont.append(img)
29 | i++;
30 |
31 |
32 | })
33 | let button1=document.getElementById("left")
34 | button1.addEventListener("click",function(){
35 | if(i==0){
36 | i=arr.length
37 | }
38 | img.src=arr[i]
39 | cont.append(img)
40 | i--;
41 |
42 |
43 | })
44 |
45 | setInterval(function(){
46 | if(i==arr.length){
47 | i=0
48 | }
49 | img.src=arr[i]
50 | cont.append(img)
51 | i++
52 | },2000)
53 | }
54 | images()
55 |
56 |
57 | // *************************************************seller
58 |
59 | // function seller(){
60 | let div1=document.createElement("div")
61 | div1.setAttribute("class","sellers")
62 |
63 | let arr=[
64 | {
65 | image:"https://www.bigbasket.com/media/uploads/p/s/40203347_2-fresho-mosambi-economy.jpg",
66 | title:"Fresho",
67 | discription:"Mosambi-Economy(Loose)",
68 | item:"1 kg",
69 | rating:"4.2 4903 Rating",
70 | rate:"mrp:Rs 74.03",
71 | rates:"NOT AVAILABLES",
72 |
73 | },
74 | // **********************
75 |
76 | {
77 | image:"https://www.bigbasket.com/media/uploads/p/s/102102_4-parle-gluco-biscuits-parle-g.jpg",
78 | title:"Parle",
79 | discription:"Glcuco Biscuits - Parle-G",
80 | rating:"4.2* 3605Ratings",
81 | item:"800g Pouch",
82 | rate:"MRP :Rs 85",
83 | rates:"NOT AVAILABLE",
84 | } ,
85 | // ***********************************
86 | {
87 | image:"https://www.bigbasket.com/media/uploads/p/s/20003982_2-wagh-bakri-premium-leaf-tea.jpg",
88 | title:"Wagh Bakri",
89 | discription:"Premium Leaf Tea",
90 | item:"1kg",
91 | rating:"3* 2163 Ratings",
92 | rate:"MRP: Rs 490",
93 | rates:"NOT AVAILABLE",
94 |
95 | } ,
96 | // ********************************
97 | {
98 | image:"https://www.bigbasket.com/media/uploads/p/s/40130610_3-surf-excel-detergent-liquid-matic-front-load.jpg",
99 |
100 | title:"Surf Excel",
101 | discription:"Dtergent - Liquid, Matic, Front Load",
102 | item:"4.2* 10902 Ratings",
103 | rating:"2-L pouch",
104 | rate:"MRP:Rs 450",
105 | rates:"NOT AVAILABLE",
106 |
107 |
108 | } ,
109 | // ***************************************
110 | {
111 | image:"https://www.bigbasket.com/media/uploads/p/s/40194529_6-dettol-original-bathing-soap-bar-with-76-tfm-protects-from-germs.jpg",
112 | title:"Dettol",
113 | discription:"Original Soap, Protects from Germs",
114 | item:"125 g (Buy 4 Get 1 Free)",
115 | rating:"4.3* 4131 Rating",
116 | rate:"MRP:Rs 302",
117 | rates:"NOT AVAILABLE",
118 |
119 |
120 | } ,
121 | // **********************
122 |
123 |
124 |
125 | ]
126 |
127 |
128 | arr.forEach(function(el){
129 | let div=document.createElement("div");
130 | div.setAttribute("class","card")
131 | div.addEventListener("click",function(){window.location.href="click.html"})
132 | let image=document.createElement("img")
133 | image.src=el.image;
134 |
135 | let title=document.createElement("p")
136 | title.innerHTML=el.title;
137 |
138 | let discription=document.createElement("h5")
139 | discription.innerHTML=el.discription;
140 |
141 | let item=document.createElement("p")
142 | item.innerHTML=el.item;
143 |
144 | let rating=document.createElement("p")
145 | rating.innerHTML=el.rating;
146 |
147 | let rate=document.createElement("h6");
148 | rate.innerHTML=el.rate;
149 | let rates=document.createElement("h6");
150 | rates.innerHTML=el.rates;
151 |
152 |
153 | div.append(image,title,discription,item,rating,item,rate,rates)
154 | div1.append(div);
155 | })
156 |
157 |
158 | let div2=document.createElement("div")
159 | div2.setAttribute("class","sellers")
160 |
161 |
162 | let arr1=[
163 | {
164 | image:"https://www.bigbasket.com/media/uploads/p/s/10000551_10-bb-popular-cashewkaju-whole.jpg",
165 | title:"BB Popular",
166 | discription:"Cashew/Kaju --Whole",
167 | item:"1 kg",
168 | rating:"4.2 3834 Rating",
169 | rate:"MRP: Rs 750",
170 | rates:"NOT AVAILABLE",
171 |
172 |
173 | } ,
174 | // ****************************
175 | {
176 | image:"https://www.bigbasket.com/media/uploads/p/s/40029538_34-kissan-fresh-tomato-ketchup.jpg",
177 | title:"Kissan",
178 | discription:"Fresh Tomato Ketchup",
179 | item:"1",
180 | rating:" 4.2 3970 Rating",
181 | rate:"MRP: Rs 68.79 Pouch",
182 | rates:"NOT AVAILABLE",
183 |
184 |
185 | } ,
186 | {
187 | image:"https://www.bigbasket.com/media/uploads/p/s/10000025_27-fresho-banana-robusta.jpg",
188 | title:"Fresh",
189 | discription:"Banana - Robusta",
190 | item:"1 kg",
191 | rating:"",
192 | rate:"MRP: Rs 56.10",
193 | rates:"NOT AVAILABLE",
194 | },
195 | {
196 | image:"https://www.bigbasket.com/media/uploads/p/s/263593_11-britannia-bourbon-chocolate-cream-biscuits.jpg",
197 | title:"Britannia",
198 | discription:"Bourbon Chocolate Cream Biscuits",
199 | item:"1",
200 | rating:"4.2 2045 Ratings",
201 | rate:"MRP: Rs 40",
202 | rates:"NOT AVAILABLE",
203 | },
204 | {
205 | image:"https://www.bigbasket.com/media/uploads/p/s/40050536_5-amul-ghee.jpg",
206 | title:"Amul",
207 | discription:"Ghee",
208 | item:"1 L Puch",
209 | rating:"4.1* 5902 Rating",
210 | rate:"MRP:Rs 467.89",
211 | rates:"NOT AVAILABLE",
212 | },
213 |
214 |
215 |
216 | ]
217 |
218 |
219 | // let data_div=document.getElementById("seller")
220 |
221 | arr1.forEach(function(el){
222 | let div=document.createElement("div");
223 | div.setAttribute("class","card")
224 |
225 | div.addEventListener("click",function(){window.location.href="click.html"})
226 |
227 | let image=document.createElement("img")
228 | image.src=el.image;
229 |
230 | let title=document.createElement("p")
231 | title.innerHTML=el.title;
232 |
233 | let discription=document.createElement("h5")
234 | discription.innerHTML=el.discription;
235 |
236 | let item=document.createElement("p")
237 | item.innerHTML=el.item;
238 |
239 | let rating=document.createElement("p")
240 | rating.innerHTML=el.rating;
241 |
242 | let rate=document.createElement("h6");
243 | rate.innerHTML=el.rate;
244 | let rates=document.createElement("h6");
245 | rates.innerHTML=el.rates;
246 |
247 |
248 | div.append(image,title,discription,item,rating,item,rate,rates)
249 | div2.append(div);
250 | })
251 |
252 |
253 | let div3=document.createElement("div")
254 | div3.setAttribute("class","sellers")
255 |
256 |
257 |
258 |
259 | let arr2=[
260 | {
261 | image:"https://www.bigbasket.com/media/uploads/p/s/274145_14-fortune-sun-lite-sunflower-refined-oil.jpg",
262 | title:"Fortune",
263 | discription:"Sun Lite - Sunflower Refined Oil",
264 | item:"1 l Pouch",
265 | rating:"4.1* 37004 Rating",
266 | rate:"MRP: Rs199",
267 | rates:"NOT AVAILABLE",
268 | },
269 | {
270 | image:"https://www.bigbasket.com/media/uploads/p/s/266969_9-vim-dishwash-bar-lemon.jpg",
271 | title:"Vim",
272 | discription:"Dishwash Bar - Lemon",
273 | item:"200 g(Pack of 3)",
274 | rating:"4.2* 9397 Rating",
275 | rate:"MRP: Rs 65",
276 | rates:"NOT AVAILABLE",
277 | },
278 |
279 | {
280 | image:"https://www.bigbasket.com/media/uploads/p/s/40099239_9-bb-royal-chakki-fresh-wheat-atta-fortified.jpg",
281 | title:"BB Royal",
282 | discription:"Chakki-Fresh-wheat-Atta",
283 | item:"10kg",
284 | rating:"4* 24798 Rating",
285 | rate:"MRP: Rs 520",
286 | rates:"NOT AVAlLABLE",
287 | },
288 | // *************************
289 | {
290 | image:"https://www.bigbasket.com/media/uploads/p/s/40096747_7-amul-malai-fresh-paneer.jpg",
291 | title:"Amul",
292 | discription:"Malai Fresh Panner",
293 | item:"200 g",
294 | rating:"4* 12746 Rating",
295 | rate:"MRP:Rs 64.80",
296 | rates:"NOT AVAlLABLE",
297 | },
298 | // *******************
299 | {
300 | image:"https://www.bigbasket.com/media/uploads/p/s/241600_5-tata-salt-iodized.jpg",
301 | title:"Tata Salt",
302 | discription:"Iodized",
303 | item:"1 Kg Pouch",
304 | rating:"4.3* 11582 Rating",
305 | rate:"MRP: Rs 24.17",
306 | rates:"NOT AVAlLABLE",
307 | },
308 |
309 | ]
310 |
311 | arr2.forEach(function(el){
312 | let div=document.createElement("div");
313 | div.setAttribute("class","card")
314 |
315 |
316 | div.addEventListener("click",function(){window.location.href="click.html"})
317 | let image=document.createElement("img")
318 | image.src=el.image;
319 |
320 | let title=document.createElement("p")
321 | title.innerHTML=el.title;
322 |
323 | let discription=document.createElement("h5")
324 | discription.innerHTML=el.discription;
325 |
326 | let item=document.createElement("p")
327 | item.innerHTML=el.item;
328 |
329 | let rating=document.createElement("p")
330 | rating.innerHTML=el.rating;
331 |
332 | let rate=document.createElement("h6");
333 | rate.innerHTML=el.rate;
334 | let rates=document.createElement("h6");
335 | rates.innerHTML=el.rates;
336 |
337 |
338 | div.append(image,title,discription,item,rating,item,rate,rates)
339 | div3.append(div);
340 | })
341 |
342 |
343 |
344 | // **************************************
345 | let slide=[div1,div2,div3]
346 | let i=0;
347 | let container= document.getElementById("seller");
348 | let divv=document.getElementById("left1").addEventListener("click",sliding)
349 | container.innerHTML=null;
350 | // console.log('pepe');
351 | container.append(slide[i])
352 | i++;
353 | if(i==slide.length){
354 | i=0
355 | }
356 |
357 | function sliding(){
358 |
359 | container.innerHTML=null;
360 | console.log('pepe');
361 | container.append(slide[i])
362 | i++;
363 | if(i==slide.length){
364 | i=0
365 | }
366 | }
367 |
368 |
369 |
370 |
371 |
372 |
373 | // *****************************HBD Sales**********************************
374 |
375 | let div4=document.createElement("div")
376 | div4.setAttribute("class","hbd")
377 |
378 |
379 |
380 |
381 | let index=[
382 | {
383 | image:"https://www.bigbasket.com/media/uploads/p/s/40048493_9-gulab-double-filtered-groundnut-oil.jpg",
384 | title:"Gulab",
385 | description:"Double Filtered Groundnut Oil",
386 | rating:"4.2* 990 Ratings",
387 | item:"5 L Jar",
388 | rate:"MRP: Rs 1091",
389 | rates:"NOT AVAILABLE",
390 |
391 | },
392 | // *****************
393 | {
394 | image:"https://www.bigbasket.com/media/uploads/p/s/40033819_29-fresho-apple-shimla.jpg",
395 | title:"Fresho",
396 | description:"Apple - Shimla",
397 | rating:"4.3*",
398 | item:"4 pcs(Approx. 550 -640g)",
399 | rate:"MRP: Rs 122.08",
400 | rates:"NOT AVAILABLE",
401 |
402 |
403 | },
404 | // ******************
405 | {
406 | image:"https://www.bigbasket.com/media/uploads/p/s/30005420_11-bb-popular-moong-dal.jpg",
407 | title:"BB Popular",
408 | description:"Moong Dal/Moong Dal",
409 | rating:"4* 3502 Rating",
410 | item:"1 kg Pouch",
411 | rate:"MRP: Rs 190",
412 | rates:"NOT AVAILABLE",
413 |
414 | },
415 | // *****************
416 | {
417 | image:"https://www.bigbasket.com/media/uploads/p/s/40048460_1-gaay-chhap-besan-fine.jpg",
418 | title:"Gaay Chhap",
419 | description:"Besan Fine",
420 | rating:"4.2* 2516",
421 | item:"1 Kg",
422 | rate:"MRP: RS 68.73",
423 | rates:"NOT AVAILABLE",
424 |
425 | },
426 | // *****************
427 | {
428 | image:"https://www.bigbasket.com/media/uploads/p/s/40048465_1-uttam-sooji.jpg",
429 | title:"Uttam",
430 | description:"Sooji",
431 | rating:"4.1* 3013 Rating",
432 | item:"1 kg",
433 | rate:"MRP: Rs 60",
434 | rates:"NOT AVAILABLE",
435 |
436 | },
437 | ]
438 |
439 | index.forEach(function(ele){
440 | let div=document.createElement("div");
441 | div.setAttribute("class","card1")
442 |
443 |
444 |
445 | let p_image=document.createElement("img")
446 | p_image.src=ele.image;
447 |
448 | let p_title=document.createElement("p")
449 | p_title.innerHTML=ele.title;
450 |
451 | let p_discription=document.createElement("h5")
452 | p_discription.innerHTML=ele.description;
453 |
454 | let p_item=document.createElement("p")
455 | p_item.innerHTML=ele.item;
456 |
457 | let p_rating=document.createElement("p")
458 | p_rating.innerHTML=ele.rating;
459 |
460 | // let p_items=document.createElement("P")
461 | // p_items.innerHTML=ele.item;
462 |
463 | let p_rate=document.createElement("h6");
464 | p_rate.innerHTML=ele.rate;
465 | let p_rates=document.createElement("h6");
466 | p_rates.innerHTML=ele.rates;
467 |
468 |
469 | div.append(p_image,p_title,p_discription,p_item,p_rating,p_item,p_rate,p_rates)
470 | div4.append(div);
471 | })
472 |
473 | // // *****************
474 | let div5=document.createElement("div")
475 | div5.setAttribute("class","hbd")
476 |
477 | let index1=[
478 | {
479 | image:"https://www.bigbasket.com/media/uploads/p/s/281497_6-rin-detergent-bar.jpg",
480 | title:"Rin",
481 | Description:"Detergent Bar",
482 | rating:"4.2* 17495 Rating",
483 | item:"250 g (pack of 4)",
484 | rate:"MRP: Rs 104",
485 | rates:"NOT AVAILABLE",
486 |
487 | },
488 | // *****************
489 | {
490 | image:"https://www.bigbasket.com/media/uploads/p/s/40019371_24-bournvita-chocolate-health-drink-bournvita.jpg",
491 | title:"Bournvita",
492 | Description:"chocolate Health Drink",
493 | rating:"4.2* 311 Rating",
494 | item:"750 g Pouch ",
495 | rate:"MRP: Rs 320",
496 | rates:"NOT AVAILABLE",
497 |
498 | },
499 | // *****************
500 | {
501 | image:"https://www.bigbasket.com/media/uploads/p/s/10000144_13-fresho-ladies-finger.jpg",
502 | title:"Fresho",
503 | Description:"Ladies'Fingers (Loose)",
504 | rating:"4.2*",
505 | item:"500 g",
506 | rate:"MRP: Rs 29.60",
507 | rates:"NOT AVAILABLE",
508 |
509 | },
510 | // *****************
511 | {
512 | image:"https://www.bigbasket.com/media/uploads/p/s/40003788_4-amul-processed-cheese-block.jpg",
513 | title:"Amul",
514 | Description:"Prcessed Cheese Block",
515 | rating:"4.1* 10424",
516 | item:"200 g carton",
517 | rate:"MRP: Rs 96.99",
518 | rates:"NOT AVAILABLE",
519 |
520 | },
521 | // *****************
522 | {
523 | image:"https://www.bigbasket.com/media/uploads/p/s/20000911_30-fresho-kiwi-green.jpg",
524 | title:"Fresho",
525 | Description:"Kiwi - Green",
526 | rating:"3.9* 4312 Rating",
527 | item:"3 pcs",
528 | rate:"MRP: Rs 185.71",
529 | rates:"NOT AVAILABLE",
530 |
531 | },
532 | ]
533 |
534 | index1.forEach(function(ele){
535 | let div=document.createElement("div");
536 | div.setAttribute("class","card1")
537 |
538 |
539 |
540 | let p_image=document.createElement("img")
541 | p_image.src=ele.image;
542 |
543 | let p_title=document.createElement("p")
544 | p_title.innerHTML=ele.title;
545 |
546 | let p_discription=document.createElement("h5")
547 | p_discription.innerHTML=ele.Description;
548 |
549 | let p_item=document.createElement("p")
550 | p_item.innerHTML=ele.item;
551 |
552 | let p_rating=document.createElement("p")
553 | p_rating.innerHTML=ele.rating;
554 |
555 | let p_rate=document.createElement("h6");
556 | p_rate.innerHTML=ele.rate;
557 | let p_rates=document.createElement("h6");
558 | p_rates.innerHTML=ele.rates;
559 |
560 |
561 |
562 | div.append(p_image,p_title,p_discription,p_item,p_rating,p_item,p_rate,p_rates);
563 | div5.append(div);
564 | })
565 |
566 | // // *****************
567 | let div6=document.createElement("div")
568 | div6.setAttribute("class","hbd")
569 |
570 | let index2=[
571 | {
572 | image:"https://www.bigbasket.com/media/uploads/p/s/264982_1-lijjat-papad-urad.jpg",
573 | title:"Lijjat",
574 | Description:"Papad - Urad",
575 | rating:"4-1* 4661 Rating",
576 | item:"200 g Pocuh",
577 | rate:"MRP: Rs 68",
578 | rates:"NOT AVAILABLE",
579 |
580 | },
581 | // *****************
582 | {
583 | image:"https://www.bigbasket.com/media/uploads/p/s/40050536_5-amul-ghee.jpg",
584 | title:"Amul",
585 | Description:"Ghee",
586 | rating:"4-1* 5900 Rating",
587 | item:"1 L Pocuh",
588 | rate:"MRP: Rs 467.89",
589 | rates:"NOT AVAILABLE",
590 |
591 | },
592 | // ***********************
593 | {
594 | image:"https://www.bigbasket.com/media/uploads/p/s/40195476_6-whisper-ultra-clean-sanitary-pads-xl-plus-locks-wetness-odour.jpg",
595 | title:"Wispher",
596 | Description:"ultra clean",
597 | rating:"4-2* 3814 Rating",
598 | item:"50 Pacs",
599 | rate:"MRP: Rs 467.89",
600 | rates:"NOT AVAILABLE",
601 |
602 | },
603 | // *******************************
604 | {
605 | image:"https://www.bigbasket.com/media/uploads/bpi/ahmedabad-gandhinagar/s/214431_1-madhur-sugar-refined.jpg",
606 | title:"Madhur",
607 | Description:"Sugar - Refined",
608 | rating:"4-1* 31189 Rating",
609 | item:"1 kg Pocuh",
610 | rate:"MRP: Rs 295.89",
611 | rates:"NOT AVAILABLE",
612 |
613 | },
614 | // ************************
615 | {
616 | image:"https://www.bigbasket.com/media/uploads/p/s/266969_9-vim-dishwash-bar-lemon.jpg",
617 | title:"Vim",
618 | Description:"Dishwash Bar-lemon",
619 | rating:"4-2* 9386 Rating",
620 | item:"200 g (Pack of 3)",
621 | rate:"MRP: Rs 65",
622 | rates:"NOT AVAILABLE",
623 |
624 | },
625 |
626 | ]
627 |
628 |
629 | // let dataa_div=document.getElementById("hrs")
630 |
631 | index2.forEach(function(ele){
632 | let div=document.createElement("div");
633 |
634 |
635 | let p_image=document.createElement("img")
636 | p_image.src=ele.image;
637 |
638 | let p_title=document.createElement("p")
639 | p_title.innerHTML=ele.title;
640 |
641 | let p_discription=document.createElement("h5")
642 | p_discription.innerHTML=ele.Description;
643 |
644 | let p_item=document.createElement("p")
645 | p_item.innerHTML=ele.item;
646 |
647 | let p_rating=document.createElement("p")
648 | p_rating.innerHTML=ele.rating;
649 |
650 | let p_rate=document.createElement("h6");
651 | p_rate.innerHTML=ele.rate;
652 | let p_rates=document.createElement("h6");
653 | p_rates.innerHTML=ele.rates;
654 |
655 |
656 | div.append(p_image,p_title,p_discription,p_item,p_rating,p_item,p_rate,p_rates)
657 | div6.append(div);
658 | })
659 |
660 |
661 |
662 | let slides=[div4,div5,div6]
663 | let j=0;
664 | let containers= document.getElementById("hrs");
665 | let diiv=document.getElementById("left2").addEventListener("click",slidings)
666 | containers.innerHTML=null;
667 | // console.log('pepe');
668 | containers.append(slides[j])
669 | i++;
670 | if(j==slides.length){
671 | j=0
672 | }
673 |
674 | function slidings(){
675 |
676 | containers.innerHTML=null;
677 | console.log('pepe');
678 | containers.append(slides[j])
679 | j++;
680 | if(j==slides.length){
681 | j=0
682 | }
683 | }
684 |
685 |
686 |
687 |
688 | // *************************************items********************************
689 | let res =document.getElementById("res")
690 | // let arr11=JSON.parse(localStorage.getItem("items"))
691 | let arr11=[]
692 |
693 | let item=[
694 | {
695 | image:"https://www.bigbasket.com/media/uploads/p/s/273623_5-duracell-ultra-alkaline-battery-aaa.jpg",
696 | name:"Duracell",
697 | price:"Mrp: Rs 139",
698 | },
699 | {
700 | image:"https://www.bigbasket.com/media/uploads/p/s/40051741_8-emami-healthy-tasty-rice-bran-oil.jpg",
701 | name:"Emami",
702 | price:"MRP: Rs 147",
703 | },
704 |
705 | {
706 | image:"https://www.bigbasket.com/media/uploads/p/s/40058664_10-bb-royal-masoor-dal.jpg",
707 | name:"BB Royal",
708 | price:"MRP: Rs 30",
709 | },
710 | {
711 | image:"https://www.bigbasket.com/media/uploads/p/s/40154924_6-nescafe-gold-blend-instant-coffee-powder-festive-edition-rich-smooth.jpg",
712 | name:"Nescafe Gold",
713 | price:"MRP:Rs 807.50",
714 | },
715 | {
716 | image:"https://www.bigbasket.com/media/uploads/p/s/40106415_4-fiama-gel-bathing-bar-celebration-pack-with-5-unique-gel-bars.jpg",
717 | name:"Flama",
718 | price:295,
719 | },
720 | ]
721 |
722 | item.forEach(function(e){
723 | let div=document.createElement("div")
724 | div.setAttribute("class","card")
725 |
726 | let p_image=document.createElement("img");
727 | p_image.src=e.image;
728 |
729 | let p_name=document.createElement("p")
730 | p_name.innerHTML=e.name;
731 |
732 | let p_price=document.createElement("h5")
733 | p_price.innerHTML=e.price;
734 | // console.log("anju")
735 | let btn=document.createElement("button")
736 | btn.innerText="Add"
737 | btn.style.backgroundColor="orange"
738 | btn.style.border="none"
739 | // btn.style.margin="auto"
740 |
741 |
742 | let obj={
743 | image:e.image,
744 | name:e.name,
745 | price:e.price
746 |
747 | }
748 |
749 | btn.addEventListener("click",(e) =>{
750 | arr11.push(obj);
751 |
752 |
753 | localStorage.setItem("items",JSON.stringify(arr11))
754 | alert("Add to cart successfull")
755 | })
756 |
757 | div.append(p_image,p_name,p_price,btn);
758 |
759 | res.append(div);
760 | // console.log(div)
761 |
762 | })
763 |
764 |
765 |
766 |
767 | let iitem=[item]
768 | let k=0;
769 | let cont= document.getElementById("freq");
770 | let div=document.getElementById("left5").addEventListener("click",slidingss)
771 | cont.innerHTML=null;
772 | // console.log('tewatia');
773 | cont.append(iitem[k])
774 | k++;
775 | if(k==iitem.length){
776 | k=0
777 | }
778 |
779 | function slidingss(){
780 |
781 | cont.innerHTML=null;
782 | // console.log('at');
783 | cont.append(iitem[k])
784 | k++;
785 | if(k==iitem.length){
786 | k=0
787 | }
788 | }
789 |
790 |
791 |
792 |
793 |
794 |
795 |
796 |
797 |
--------------------------------------------------------------------------------
/footer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Document
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
bigbasket – online grocery store
18 |
19 |
20 |
Did you ever imagine that the freshest of fruits and vegetables, top quality pulses and food grains,
21 | dairy products and hundreds of branded items could be handpicked and delivered to your home, all at the
22 | click of a button? India’s first comprehensive online megastore, bigbasket.com, brings a whopping 20000+
23 | products with more than 1000 brands, to over 4 million happy customers. From household cleaning products
24 | to beauty and makeup, bigbasket has everything you need for your daily needs. bigbasket.com is
25 | convenience personified We’ve taken away all the stress associated with shopping for daily essentials,
26 | and you can now order all your household products and even buy groceries online without travelling long
27 | distances or standing in serpentine queues. Add to this the convenience of finding all your requirements
28 | at one single source, along with great savings, and you will realize that bigbasket- India’s largest
29 | online supermarket, has revolutionized the way India shops for groceries. Online grocery shopping has
30 | never been easier. Need things fresh? Whether it’s fruits and vegetables or dairy and meat, we have this
31 | covered as well! Get fresh eggs, meat, fish and more online at your convenience. Hassle-free Home
32 | Delivery options
33 |
34 |
35 |
We deliver to 25 cities across India and maintain excellent delivery times, ensuring that all your
36 | products from groceries to snacks branded foods reach you in time.
37 |
38 |
39 |
40 |
• Slotted Delivery: Pick the most convenient delivery slot to have your grocery delivered. From
41 | early morning delivery for early birds, to late-night delivery for people who work the late shift,
42 | bigbasket caters to every schedule.
43 | • Express Delivery: This super useful service can be availed by customers in cities like
44 | Bangalore, Mumbai, Pune, Chennai, Kolkata, Hyderabad and Delhi-NCR in which we deliver your orders to
45 | your doorstep in 90 Minutes.
46 | • BB Specialty stores: Missed out on buying that essential item from your favorite neighborhood
47 | store for tonight’s party? We’ll deliver it for you! From bakery, sweets and meat to flowers and
48 | chocolates, we deliver your order in 90 minutes, through a special arrangement with a nearby specialty
49 | store, verified by us.
50 |
51 |
52 |
India’s biggest Online Supermarket
53 |
54 |
55 |
bigbasket.com believes in providing the highest level of customer service and is continuously innovating
56 | to meet customer expectations. Our On-time Guarantee is one such assurance where we refund 5% of the
57 | bill value if the delivery is delayed (however, due to the pandemic caused by Covid-19 our delivery
58 | might get delayed. Delivery Guarantee will not be applicable). For all your order values above Rs. 1200,
59 | we provide free delivery. A wide range of imported and gourmet products are available through our
60 | express delivery and slotted delivery service. If you ever find an item missing on delivery or want to
61 | return a product, you can report it to us within 48 hours for a ‘no-questions-asked’ refund.
62 |
63 |
64 |
65 |
Best quality products for our quality-conscious customers.
66 |
67 |
68 |
bigbasket.com is synonymous with superior quality and continues to strive for higher levels of customer
69 | trust and confidence, by taking feedback and giving our customers what they want. We have added the
70 | convenience of pre-cut fruits in our Fresho range. If it’s a product category you’re looking to shop
71 | from, we’ve made it convenient for you to access all products in a section easily. For instance, if
72 | you’re looking for beverages, you can order from a long list of beverages that include cool drinks, hot
73 | teas, fruit juices and more.
74 |
75 |
76 |
We are proud to be associated closely with the farmers from whom we source our fresh products. Most of
77 | our farm-fresh products are sourced directly from farmers, which not only ensures the best prices and
78 | freshest products for our customers but also helps the farmers get better prices. With more than 80
79 | Organic Fruits and Vegetables and a wide range of organic staples, bigbasket has the largest range in
80 | the organic products category.
81 |
82 |
83 |
When it comes to payment, we have made it easy for our customers can pay through multiple payment
84 | channels like Credit and Debit cards, Internet Banking, e-wallets and Sodexo passes or simply pay Cash
85 | on Delivery (COD).The convenience of shopping for home and daily needs, while not compromising on
86 | quality, has made bigbasket.com the online supermarket of choice for thousands of happy customers across
87 | India.
88 |
89 |
90 |
91 |
92 |
bigbasket
93 |
94 |
95 |
96 |
About Us
97 |
98 |
99 |
100 |
In News
101 |
102 |
103 |
104 |
Green bigbasket
105 |
106 |
107 |
108 |
Privacy Policy
109 |
110 |
111 |
112 |
Affiliate
113 |
114 |
115 |
116 |
117 |
Terms and Conditions
118 |
119 |
120 |
121 |
122 |
Careers At bigbasket
123 |
124 |
125 |
126 |
127 |
bb Instant
128 |
129 |
130 |
131 |
132 |
bb Daily
133 |
134 |
135 |
136 |
137 |
bb Blog
138 |
139 |
140 |
141 |
142 |
bbnow
143 |
144 |
145 |
146 |
147 |
Help
148 |
149 |
150 |
151 |
152 |
FAQs
153 |
154 |
155 |
156 |
157 |
Contact Us
158 |
159 |
160 |
161 |
162 |
bb Wallet FAQs
163 |
164 |
165 |
166 |
167 |
bb Wallet T&Cs
168 |
169 |
170 |
171 |
172 |
Vendor Connect
173 |
174 |
175 |
176 |
177 |
Download Our App
178 |
179 |
180 |
181 |
184 |
185 |
186 |
187 |
190 |
191 |
192 |
193 |
194 |
Get Social With Us
195 |
196 |
197 |
198 |
201 |
202 |
203 |
204 |
207 |
208 |
209 |
210 |
213 |
214 |
215 |
216 |
219 |
220 |
221 |
222 |
223 |
224 |
POPULAR CATEGORIES:
225 |
226 |
227 |
228 |
229 | Sunflower Oils, Wheat Atta, Ghee, Milk, Health Drinks, Flakes, Organic F&V, Namkeen, Eggs, Floor
230 | Cleaners, Other Juices, Leafy Vegetables, Frozen Veg Food, Diapers & Wipes,
231 |
232 |
233 |
234 |
POPULAR BRANDS:
235 |
236 |
237 |
238 |
239 | Amul, Nescafe , MTR, RED BULL , elite cake, Pediasure, Yummiez, Yera, Yakult, Britannia, Wow Momo,
240 | Fortune , Haldirams , Ferrero, Lays, Patanjali, McCain, kwality walls, Cadbury Dairy Milk, Pedigree,
241 |
242 |
243 |
244 |
245 |
CITIES WE SERVE:
246 |
247 |
248 |
249 |
Bangalore, Hyderabad, Mumbai, Pune, Chennai, Delhi, Mysore, Madurai, Coimbatore, Vijayawada-Guntur,
250 | Kolkata, Ahmedabad-Gandhinagar, Nashik Business, Lucknow-Kanpur, Gurgaon, Vadodara, Visakhapatnam,
251 | Surat, Nagpur, Patna, Indore, Chandigarh Tricity, Jaipur, Bhopal, Noida-Ghaziabad, Kochi, Krishna
252 | District, Bhubaneshwar-Cuttack, Guwahati, Renigunta, Hubli, Davanagere, Trichy, Amravati, Raipur,
253 | Rajkot, Gwalior, Bareilly, Allahabad, Hyderabad Rural, Bangalore Rural, Chennai Rural, Vizag Rural,
254 | Lucknow Rural, Noida Rural, Ahmedabad Rural, Bhopal Rural, Bhubaneswar Rural, Coimbatore Rural,
255 | Chandigarh Rural, Gurugram Rural, Guwahati Rural, Indore Rural, Kochi Rural, Kolkata Rural, Mumbai
256 | Rural, Mysore Rural, Nagpur Rural, Patna Rural, Pune Rural, Surat Rural, Vadodara Rural, Jaipur Rural,
257 | Ranchi, Nashik, Agra,
258 |
259 |
260 |
261 |
262 |
PAYMENT OPTIONS:
263 |
264 |
265 |
266 |
267 |
269 |
270 |
271 |
272 |
273 |
275 |
276 |
277 |
278 |
279 |
281 |
282 |
283 |
284 |
285 |
287 |
288 |
289 |
290 |
291 |
293 |
294 |
295 |
296 |
297 |
299 |
300 |
301 |
302 |
303 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
Copyright © 2021-2023 Supermarket Grocery Supplies Pvt Ltd
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
--------------------------------------------------------------------------------