├── .vscode └── settings.json ├── assets ├── img │ ├── bgforall.jpg │ └── jiomartlogo.png ├── css │ ├── signup.css │ ├── showallproduct.css │ ├── useraccount.css │ ├── productView.css │ ├── cartpage.css │ ├── makepayment.css │ ├── ordersummary.css │ ├── style.css │ └── navbarfooter.css └── js │ ├── payment.js │ ├── addorremoveproduct.js │ ├── signup.js │ ├── makepayment.js │ ├── cartpage.js │ ├── useraccount.js │ ├── productview.js │ ├── ordersummary.js │ ├── showallproduct.js │ ├── navbar.js │ └── index.js ├── index.html ├── pages ├── index.html ├── signup.html ├── showallproduct.html ├── productView.html ├── cartpage.html ├── useraccount.html ├── ordersummary.html ├── makepayment.html └── finalPayment.html └── README.md /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "liveServer.settings.port": 5501 3 | } -------------------------------------------------------------------------------- /assets/img/bgforall.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sukhdev-bajiya/jiomart_clone/HEAD/assets/img/bgforall.jpg -------------------------------------------------------------------------------- /assets/img/jiomartlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sukhdev-bajiya/jiomart_clone/HEAD/assets/img/jiomartlogo.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Document 8 | 9 | 10 | 11 | 12 | 15 | -------------------------------------------------------------------------------- /pages/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Buy Grocery Online | Daily Needs Supermarket - JioMart 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /pages/signup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Signup || Signin - JioMart 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /pages/showallproduct.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | All Product - JioMart 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /pages/productView.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Buy Grocery Online | Daily Needs Supermarket - JioMart 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /pages/cartpage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | My Cart | Daily Needs Supermarket - JioMart 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 26 | 27 | -------------------------------------------------------------------------------- /pages/useraccount.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Signup || Signin - JioMart 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 28 | -------------------------------------------------------------------------------- /pages/ordersummary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | My Cart | Daily Needs Supermarket - JioMart 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 28 | -------------------------------------------------------------------------------- /pages/makepayment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Jio Mart Payment Gateway | Daily Needs Supermarket - JioMart 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 41 | 42 | -------------------------------------------------------------------------------- /pages/finalPayment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Final Payment 9 | 10 | 11 | 12 | 13 |
14 | 15 |
16 |
17 |
18 |
19 |
20 |

Scan and Pay via any UPI App

21 |
22 | 24 |
25 |

Show QR Code

26 |
27 |
28 |
29 |
30 |
31 | Or 32 |
33 |
34 |
35 |

Enter Your UPI ID

36 |

37 | Login with the same number or register with a new number to access 38 | your account with PhonePe 39 |

40 |
41 | 42 | 45 |

46 |
47 | 48 |

49 | By generating OTP, you are agreeing to PhonePe’s 50 | terms & conditions. 51 |

52 |
53 |
54 |
55 |
56 |
57 |
58 | 59 |
60 |
61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /assets/css/signup.css: -------------------------------------------------------------------------------- 1 | #signupSection_container { 2 | margin-top: 125px; 3 | padding: 25px 50px; 4 | } 5 | 6 | #footer_section { 7 | display: none; 8 | } 9 | 10 | .signup_container { 11 | display: grid; 12 | grid-template-columns: 1fr 1.4fr; 13 | box-shadow: rgb(0 0 0 / 16%) 0px 1px 4px; 14 | border-radius: 20px; 15 | overflow: hidden; 16 | } 17 | 18 | #signupSection_container .signup_footer_section { 19 | padding: 10px; 20 | font-size: 14px; 21 | text-align: center; 22 | } 23 | 24 | #signupSection_container .signup_footer_section span { 25 | color: red; 26 | cursor: pointer; 27 | } 28 | 29 | .signup_container .signup_container_rightpart1 { 30 | padding: 38px 101px; 31 | display: block; 32 | } 33 | 34 | .signup_container .signup_container_rightpart1 h1 { 35 | padding: 0; 36 | margin: 0 0 8px; 37 | font-family: JioBold; 38 | font-size: 24px; 39 | color: #000; 40 | } 41 | 42 | .signup_container .signup_container_rightpart1>p { 43 | font-family: JioMedium; 44 | font-size: 14px; 45 | color: rgba(0, 0, 0, .6); 46 | margin-bottom: 35px; 47 | margin-top: 15px; 48 | } 49 | 50 | .signup_container .signup_container_rightpart1 div { 51 | display: flex; 52 | font-size: 16px; 53 | align-items: center; 54 | margin-bottom: 41px; 55 | } 56 | 57 | .signup_container .signup_container_rightpart1 button { 58 | background: #008ecc; 59 | font-family: JioMedium; 60 | font-size: 14px; 61 | color: #fff; 62 | line-height: 20px; 63 | border-radius: 50%; 64 | letter-spacing: 1px; 65 | text-transform: capitalize; 66 | padding: 10px 6px; 67 | width: 50px; 68 | height: 50px; 69 | margin: 0; 70 | border: 0; 71 | position: relative; 72 | overflow: hidden; 73 | display: block; 74 | margin: auto; 75 | cursor: pointer; 76 | } 77 | 78 | .signup_container .signup_container_rightpart1 div input { 79 | padding: 9px 0 9px 3rem; 80 | margin: 0; 81 | width: calc(100% - 3.5rem); 82 | transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; 83 | outline: none; 84 | box-shadow: none; 85 | background: none; 86 | border: none; 87 | font-size: 16px; 88 | } 89 | 90 | .signup_container .signup_container_rightpart1 div #usersigninotp1 { 91 | display: none; 92 | padding: 9px 0 9px 0; 93 | } 94 | 95 | .signup_container .signup_container_rightpart1 div span { 96 | margin-right: -41px; 97 | border-right: 1px solid gray; 98 | padding-right: 7px; 99 | } -------------------------------------------------------------------------------- /assets/js/payment.js: -------------------------------------------------------------------------------- 1 | document.querySelector("#HideButton").addEventListener("click", HideCover); 2 | function HideCover() { 3 | let HideCo = document.querySelector("#qrcode_cover"); 4 | HideCo.style.display = "none"; 5 | ConfirmPayment(); 6 | } 7 | 8 | document 9 | .getElementById("UPIconfirmBtn") 10 | .addEventListener("click", ConfirmPayment); 11 | 12 | function ConfirmPayment() { 13 | document.getElementById("UPIconfirmBtn").style.display = "none"; 14 | document.getElementById("EnterUPIid").disabled = "true"; 15 | document.getElementById("waitingforPayment").style.display = "block"; 16 | 17 | let i = 5; 18 | let seted = setInterval(() => { 19 | document.getElementById( 20 | "waitingforPayment" 21 | ).innerHTML = `Waiting for Payment Confirmation... ${i--} Sec`; 22 | if (i == 0) { 23 | clearInterval(seted); 24 | document.getElementById("waitingforPayment").style.display = "none"; 25 | } 26 | document.getElementById("waitingforPayment").style.color = "grey"; 27 | }, 1000); 28 | setTimeout(() => { 29 | showcartpageupdate(); 30 | }, 5000); 31 | } 32 | 33 | document.getElementById("EnterUPIid").addEventListener("keyup", ConvertToBlue); 34 | 35 | function ConvertToBlue() { 36 | let inp = document.getElementById("EnterUPIid").value; 37 | console.log(inp); 38 | document.getElementById("UPIconfirmBtn").style.backgroundColor = "#1b5e9d8f"; 39 | document.getElementById("UPIconfirmBtn").disabled = true; 40 | document.getElementById("UPIconfirmBtn").style.color = "white"; 41 | if (inp.length >= 1) { 42 | document.getElementById("UPIconfirmBtn").disabled = false; 43 | document.getElementById("UPIconfirmBtn").style.backgroundColor = "#004584"; 44 | document.getElementById("UPIconfirmBtn").style.color = "white"; 45 | } 46 | } 47 | 48 | async function showcartpageupdate() { 49 | try { 50 | let res = await fetch( 51 | `https://jsonserver-twny.onrender.com/items?item_addtocart=true` 52 | ); 53 | let data = await res.json(); 54 | document.getElementById("Successfull").style.display = "flex"; 55 | data.forEach((element) => { 56 | fetch(`https://jsonserver-twny.onrender.com/items/${element.id}`, { 57 | method: "PATCH", 58 | body: JSON.stringify({ 59 | item_addtocart: false, 60 | item_quantity: 0, 61 | }), 62 | headers: { "Content-Type": "application/json" }, 63 | }); 64 | }); 65 | 66 | setTimeout(() => { 67 | document.getElementById("Successfull").style.display = "none"; 68 | window.open("./index.html", "_Self"); 69 | }, 3000); 70 | } catch (error) { 71 | console.log(error); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /assets/js/addorremoveproduct.js: -------------------------------------------------------------------------------- 1 | function updateproductValuesplus(id, val) { 2 | fetch(`https://jsonserver-twny.onrender.com/items/${id}`, { 3 | method: "PATCH", 4 | body: JSON.stringify({ 5 | item_quantity: val + 1, 6 | item_addtocart: true, 7 | }), 8 | headers: { "Content-Type": "application/json" }, 9 | }); 10 | if (val == 1) { 11 | showAddtocartProductList(); 12 | } 13 | pageload(); 14 | } 15 | 16 | function updateproductValuesminus(id, val) { 17 | let tgfl = true; 18 | if (val == 1) { 19 | tgfl = false; 20 | } 21 | fetch(`https://jsonserver-twny.onrender.com/items/${id}`, { 22 | method: "PATCH", 23 | body: JSON.stringify({ 24 | item_quantity: val - 1, 25 | item_addtocart: tgfl, 26 | }), 27 | headers: { "Content-Type": "application/json" }, 28 | }); 29 | pageload(); 30 | } 31 | 32 | function likeProductvalue(id, val) { 33 | fetch(`https://jsonserver-twny.onrender.com/items/${id}`, { 34 | method: "PATCH", 35 | body: JSON.stringify({ 36 | item_like: !val, 37 | }), 38 | headers: { "Content-Type": "application/json" }, 39 | }); 40 | pageload(); 41 | } 42 | 43 | function showSelectProductDetails(id) { 44 | localStorage.setItem("selectProductIdandshowDetails", id); 45 | window.open("./productView.html", "_Self"); 46 | } 47 | 48 | function pageload() { 49 | setTimeout(() => { 50 | location.reload(); 51 | }, 500); 52 | } 53 | showAddtocartProductList(); 54 | async function showAddtocartProductList() { 55 | try { 56 | let res = await fetch( 57 | `https://jsonserver-twny.onrender.com/items?item_addtocart=true` 58 | ); 59 | let data = await res.json(); 60 | let totalPayment = 0; 61 | let savePayment = 0; 62 | let count = 0; 63 | data.forEach((element) => { 64 | if (element.item_quantity != 0) { 65 | let div = document.createElement("div"); 66 | div.className = "mc_item"; 67 | div.innerHTML = ` 68 |
${element.item_name.slice(0, 20)}...
69 |
₹ ${element.item_final_price}.00x${ 70 | element.item_quantity 71 | }
72 | `; 73 | document.getElementById("navbarCartpopup_items").append(div); 74 | totalPayment += element.item_final_price * element.item_quantity; 75 | savePayment += element.item_disc_price * element.item_quantity; 76 | count++; 77 | } 78 | }); 79 | document.querySelector(".mc_amount").innerText = `₹ ${totalPayment}.00`; 80 | document.querySelector( 81 | ".mc_savings" 82 | ).innerHTML = `You save ₹ ${savePayment}.00`; 83 | document.querySelector(".items").innerHTML = `${count} item(s)`; 84 | document.getElementById("countOfCart").innerHTML = data.length; 85 | } catch (error) { 86 | console.log(error); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Problem Statement 2 | 3 | Our Problem statement is to build a pixel-perfect Jio Mart website clone. Previously we did a clone of a few web pages but in this problem, we were supposed to make pages dynamic. 4 | 5 | ## Idea 6 | Since I'm pursuing a Full Stack Web Development course at Masai School I was given a project to clone an Indian e-commerce website, Jio Mart. I was given a team of four members including me and the task was to clone the pixel-perfect clone of the website. Let's look at how we designed it 👇 7 | 8 | 9 | ## **JioMart landing page** 👇 💻 10 | ![image](https://user-images.githubusercontent.com/106476212/183395391-642faa6b-28ba-4f4e-a581-81f6e1368149.png) 11 | 12 | 13 | ## **JioMart side navbar** 👇 💻 14 | ![dz5PYg_Ym](https://user-images.githubusercontent.com/106476212/183393393-b3fcc979-bb7f-49bf-9f49-26f31722a220.png) 15 | 16 | 17 | ## **JioMart SignIn and SignUp page** 👇 💻 18 | > ![j2aww3zxi](https://user-images.githubusercontent.com/106476212/183393587-577d3901-12f2-4eac-bef3-76bb187b0b3e.png) 19 | 20 | > ### SignIn and SignUp otp page 21 | > ![image](https://user-images.githubusercontent.com/106476212/183393643-fb7b9b0b-db18-43b9-8be0-e640b6392dc2.png) 22 | 23 | 24 | ## **User profile page** 👇 💻 25 | 26 | > after login user shows all demo data 27 | ![image](https://user-images.githubusercontent.com/106476212/183393688-b0895c34-78af-43ec-8849-726eec031262.png) 28 | 29 | > User can update his profile 30 | > ![06](https://user-images.githubusercontent.com/106476212/183396026-4b3ac27e-5eb1-4714-905a-365a7383155f.png) 31 | 32 | > User see his updated profile
33 | > ![image](https://user-images.githubusercontent.com/106476212/183393783-fe2e527e-6f2e-4f77-8ed5-c228bc2a47c4.png)
34 | > ![image](https://user-images.githubusercontent.com/106476212/183393840-bebe89fa-c3ec-41bd-8bcb-ba128f482fa3.png) 35 | 36 | ## **Product categories** 👇 💻 37 | 38 | > ### Groceries 39 | > ![image](https://user-images.githubusercontent.com/106476212/183393892-933b95db-0d84-48d7-b640-9e1dd5cf8739.png) 40 | 41 | > ### Show product full info 42 | > ![image](https://user-images.githubusercontent.com/106476212/183393972-ce55905c-a12d-4428-9286-4dd505bc4097.png) 43 | 44 | > ### Home & Kitchen 45 | > ![image](https://user-images.githubusercontent.com/106476212/183394012-67ed1aaf-110e-4698-a69a-bfbd8d94bf64.png) 46 | 47 | > ### Electronics 48 | > ![image](https://user-images.githubusercontent.com/106476212/183394049-68622b28-7dd6-471d-895d-17d5eb3bbd3d.png) 49 | 50 | > ### Beauty 51 | > ![image](https://user-images.githubusercontent.com/106476212/183394085-07396eb6-8215-43fa-a0e6-578fda4b9c3b.png) 52 | 53 | ## **Cart Page** 👇 💻 54 | 55 | > ### My cart page 56 | ![image](https://user-images.githubusercontent.com/106476212/183394154-2fa1df36-3b28-4b02-bb19-fd5a3dd8306c.png) 57 | 58 | > ### Order Summary 59 | ![image](https://user-images.githubusercontent.com/106476212/183394197-53902404-1839-4a10-975c-4dadd19ca63c.png) 60 | 61 | > ### Payment Details 62 | ![image](https://user-images.githubusercontent.com/106476212/183394233-e22dcbf2-3215-4f22-bcf0-b44bf8b280aa.png) 63 | 64 | > ### Select type of pay 65 | ![image](https://user-images.githubusercontent.com/106476212/183394273-150ccefe-9eee-456c-a6e5-8dee5119a726.png) 66 | 67 | > ### Wait for payment 5s 68 | ![image](https://user-images.githubusercontent.com/106476212/183394299-38d569e0-0f11-4907-a357-8a26e9295ab4.png) 69 | 70 | 71 | > ### Payment Done 72 | 73 | ![14.png]![image](https://user-images.githubusercontent.com/106476212/183394337-68fbd256-40ec-4a9e-8fbe-f8328b9bc502.png) 74 | 75 | > ### Return to home page ** 76 | 77 | 78 | ## Team Members 79 | > ### •[Sukhdev Bajiya](https://github.com/sukhdev-bajiya) 80 | > ### •[Ayush Kumar](https://github.com/ayush-kr05) 81 | > ### • [ALOK YADAV](https://github.com/alok1910010) 82 | > ### • [Niranjan Ajay Ghone](https://github.com/TheSkyEr4998) 83 | 84 | 85 | # Project 86 | > GitHub - [Code](https://github.com/sukhdev-bajiya/jiomart_clone)
87 | > Netlify - [Live demo](jiomart-clone.netlify.app)
88 | > Hash node - [Blog](https://jiomart-clone.hashnode.dev/jiomartclone) 89 | 90 | # Technology Used 91 | > • HTML
92 | > • CSS
93 | > • JAVASCRIPT
94 | > • DOM
95 | > • JSON Server
96 | > • Local Storage 97 | 98 | # Tools 99 | > • VS Code
100 | > • Github
101 | > • Postman
102 | > • Heroku 103 | 104 | 105 | 106 | System display size 💻 = 1024 to 1680 pixels 107 | -------------------------------------------------------------------------------- /assets/js/signup.js: -------------------------------------------------------------------------------- 1 | document.body.innerHTML = ` 2 | 3 |
4 |
5 | 6 |
7 |
8 | 9 | 26 |
27 | 29 |
30 | 31 | 32 | 33 | `; 34 | 35 | var otpforUser; 36 | function checkMobilenumber1() { 37 | if (document.getElementById("userMobileNumber1").value.length == 10) { 38 | document 39 | .getElementById("inputMobilenumberAlert1") 40 | .setAttribute("onclick", "gotoOtpPartinSignupstep1()"); 41 | document.getElementById("inputMobilenumberAlert1").innerHTML = "Send OTP"; 42 | document.getElementById("inputMobilenumberAlert1").style.color = "green"; 43 | document.getElementById("inputMobilenumberAlert1").style.cursor = "pointer"; 44 | } else { 45 | document.getElementById("inputMobilenumberAlert1").innerHTML = 46 | "Please enter 10 digit number."; 47 | document.getElementById("inputMobilenumberAlert1").style.color = "red"; 48 | } 49 | } 50 | 51 | function gotoOtpPartinSignupstep1() { 52 | otpforUser = Math.floor(Math.random() * 1000 + 1000); 53 | alert(`Your one time OTP is ${otpforUser}`); 54 | document.getElementById("usersigninotp1").style.display = "block"; 55 | document.getElementById("inputMobilenumberAlert1").style.display = "none"; 56 | document 57 | .getElementById("gotoOtpPartinSignup1") 58 | .setAttribute("onclick", "gotoOtpPartinSignupstep2()"); 59 | resendotpfun(); 60 | } 61 | function resendotpfun() { 62 | setTimeout(() => { 63 | clearInterval(seted); 64 | document.getElementById("inputMobilenumberAlert2").innerHTML = 65 | "For resend otp click on Send OTP"; 66 | document.getElementById("inputMobilenumberAlert1").style.display = "block"; 67 | }, 6000); 68 | let i = 5; 69 | let seted = setInterval(() => { 70 | document.getElementById( 71 | "inputMobilenumberAlert2" 72 | ).innerHTML = `Waiting for OTP... ${i--} Sec`; 73 | document.getElementById("inputMobilenumberAlert2").style.color = "gray"; 74 | }, 1000); 75 | } 76 | function gotoOtpPartinSignupstep2() { 77 | let otp = document.getElementById("usersigninotp1").value; 78 | if (otpforUser == otp) { 79 | let userndata = document.getElementById("userMobileNumber1").value; 80 | checkuserallreadyLoginornot(userndata); 81 | } else { 82 | alert("Please enter valid opt"); 83 | } 84 | } 85 | async function checkuserallreadyLoginornot(userndata) { 86 | try { 87 | let res = await fetch( 88 | `https://jsonserver-twny.onrender.com/jiomartuserdata?user_number=${userndata}` 89 | ); 90 | let data = await res.json(); 91 | console.log(data); 92 | if (data.length == 0) { 93 | fetch("https://jsonserver-twny.onrender.com/jiomartuserdata", { 94 | method: "POST", 95 | body: JSON.stringify({ 96 | user_number: userndata, 97 | user_fname: "Guest", 98 | }), 99 | headers: { "Content-Type": "application/json" }, 100 | }); 101 | alert("Signup successful"); 102 | window.open("./signup.html", "_Self"); 103 | } else { 104 | localStorage.setItem("jiomartUserNotLogin", true); 105 | localStorage.setItem("userNumberOndata", userndata); 106 | localStorage.setItem("userNumberOndataID", data[0].id); 107 | alert("Login successful"); 108 | window.open("./useraccount.html", "_Self"); 109 | } 110 | } catch (error) { 111 | console.log(error); 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /assets/css/showallproduct.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: rgb(241, 238, 238); 3 | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 4 | } 5 | 6 | hr { 7 | color: rgb(250, 249, 249); 8 | } 9 | 10 | .arrow { 11 | border: solid rgb(73, 68, 68); 12 | border-width: 0 2px 2px 0; 13 | display: inline-block; 14 | padding: 3px; 15 | } 16 | 17 | .subhead { 18 | font-size: 20px; 19 | } 20 | 21 | .right { 22 | transform: rotate(-45deg); 23 | -webkit-transform: rotate(-45deg); 24 | } 25 | 26 | .contentSection { 27 | margin-top: 112px; 28 | display: flex; 29 | justify-content: space-between; 30 | padding: 20px; 31 | } 32 | 33 | .leftSide { 34 | width: 22%; 35 | height: auto; 36 | } 37 | 38 | .leftdivs { 39 | border-radius: 10px; 40 | padding: 5%; 41 | line-height: 6px; 42 | height: auto; 43 | background-color: white; 44 | box-shadow: rgb(255, 255, 255) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px; 45 | } 46 | 47 | .leftdivs p { 48 | margin: 10px 0; 49 | } 50 | 51 | .rightSide { 52 | width: 75%; 53 | } 54 | 55 | .rightSide>div:first-child>img { 56 | width: 100%; 57 | } 58 | 59 | button { 60 | height: 25px; 61 | align-items: center; 62 | } 63 | 64 | a { 65 | color: #323232; 66 | text-decoration: none; 67 | transition: all .3s ease 0s; 68 | } 69 | 70 | .sortBut_buttons { 71 | display: flex; 72 | justify-content: end; 73 | align-items: center; 74 | margin: 10px 0; 75 | gap: 20px; 76 | font-size: 20px; 77 | font-weight: 700; 78 | } 79 | 80 | .sortBut_buttons button { 81 | padding: 5px 10px 30px 10px; 82 | font-size: 16px; 83 | border: none; 84 | outline: none; 85 | border-radius: 5px; 86 | border-bottom: 1px solid gray; 87 | border-top: 1px solid gray; 88 | background-color: #008ecc; 89 | font-weight: 700; 90 | color: white; 91 | cursor: pointer; 92 | } 93 | 94 | #products_display { 95 | display: grid; 96 | grid-template-columns: repeat(4, 1fr); 97 | height: auto; 98 | gap: 15px; 99 | position: relative; 100 | } 101 | 102 | #products_display::-webkit-scrollbar { 103 | display: none; 104 | } 105 | 106 | #products_display>div { 107 | background: #ffff; 108 | border: 1px solid rgba(111, 114, 132, .25); 109 | border-radius: 5px; 110 | display: flex; 111 | flex-direction: column; 112 | align-items: center; 113 | cursor: pointer; 114 | } 115 | 116 | #products_display>div>div:first-child { 117 | width: 205px; 118 | display: flex; 119 | justify-content: space-between; 120 | padding: 5px; 121 | position: absolute; 122 | z-index: 1; 123 | } 124 | 125 | #products_display>div>div>.homepage_TopDeals_part_dis_section { 126 | background-image: url(https://www.jiomart.com/assets/version1659035733/smartweb/images/icons/offer_bg.svg); 127 | background-size: 100%; 128 | background-repeat: no-repeat; 129 | height: 45px; 130 | width: 45px; 131 | font-size: 10px; 132 | font-weight: 700; 133 | padding: 6px 0 0 11px; 134 | color: white; 135 | } 136 | 137 | #products_display>div>div>span:first-child>span { 138 | font-size: 12px; 139 | } 140 | 141 | #products_display .homepage_TopDeals_part_pro_detail { 142 | display: flex; 143 | flex-direction: column; 144 | align-items: center; 145 | height: 175px; 146 | width: 205px; 147 | z-index: 0; 148 | overflow: hidden; 149 | margin-top: 15px; 150 | } 151 | 152 | #products_display .homepage_TopDeals_part_pro_detail>img { 153 | height: 70%; 154 | transition: all 0.2s ease-out; 155 | } 156 | 157 | #products_display .homepage_TopDeals_part_pro_detail>img:hover { 158 | transform: scale(1.1, 1.1); 159 | transition: all 0.3s ease-in-out; 160 | } 161 | 162 | 163 | #products_display .homepage_TopDeals_part_pro_detail>p { 164 | font-size: 14px; 165 | font-family: JioBold; 166 | line-height: 16px; 167 | text-align: left; 168 | letter-spacing: .01px; 169 | color: #000; 170 | display: block; 171 | max-height: 101px; 172 | margin: 0 0 8px; 173 | overflow: hidden; 174 | min-height: 32px; 175 | z-index: 1; 176 | padding: 10px; 177 | padding-bottom: 0; 178 | font-weight: 600; 179 | } 180 | 181 | #products_display .homepage_TopDeals_part_price_box { 182 | width: 100%; 183 | padding: 0 5px; 184 | } 185 | 186 | #products_display .homepage_TopDeals_part_price_box>p:first-child { 187 | font-size: 20px; 188 | font-weight: 700; 189 | } 190 | 191 | #products_display .homepage_TopDeals_part_price_box>p:last-child { 192 | color: #00a100; 193 | font-family: JioMedium; 194 | font-size: 14px; 195 | margin-top: 2px; 196 | } 197 | 198 | 199 | #search-div button { 200 | background-color: white; 201 | border: none; 202 | border-radius: 0 7px 7px 0; 203 | padding: 10px 14px; 204 | height: 36px; 205 | } 206 | 207 | #search-div button i { 208 | font-size: 18px; 209 | margin-bottom: 5px; 210 | } -------------------------------------------------------------------------------- /assets/css/useraccount.css: -------------------------------------------------------------------------------- 1 | .my_acc_heading { 2 | padding: 20px; 3 | font-size: 30px; 4 | } 5 | 6 | #Account_Section_Parent { 7 | margin-top: 112px; 8 | width: 100%; 9 | min-width: 1024px; 10 | } 11 | 12 | #Account_Section { 13 | display: flex; 14 | } 15 | 16 | /* css for left part */ 17 | 18 | #Payment_Account_div { 19 | width: 43%; 20 | background-color: white; 21 | display: flex; 22 | justify-content: center; 23 | } 24 | 25 | #Payment_Account_div>div { 26 | background-color: #008ecc; 27 | padding: 4px 10px; 28 | width: 80%; 29 | border-radius: 8px; 30 | height: 240px; 31 | } 32 | 33 | #Payment_Account_1 img { 34 | border-radius: 80px; 35 | background-color: white; 36 | } 37 | 38 | #Payment_Account_1 { 39 | display: flex; 40 | align-items: center; 41 | margin: 0 20px 20px 20px; 42 | color: white; 43 | } 44 | 45 | #Payment_Account_1>div { 46 | margin: 5px 20px; 47 | 48 | } 49 | 50 | #Payment_Account_1>div>i { 51 | font-size: 65px; 52 | } 53 | 54 | .userImage { 55 | width: 60px; 56 | } 57 | 58 | .userDetails_account * { 59 | margin: 5px; 60 | } 61 | 62 | .dullBlue { 63 | color: #66bbe0; 64 | } 65 | 66 | #Payment_Account_2 { 67 | width: 100%; 68 | /* background-color: beige; */ 69 | } 70 | 71 | #Payment_Account_2> :first-child button { 72 | width: 45%; 73 | margin: 5px; 74 | padding: 12px 8px; 75 | font-size: 17px; 76 | text-align: left; 77 | border: none; 78 | background-color: #66bbe0; 79 | color: white; 80 | border-radius: 5px; 81 | cursor: pointer; 82 | } 83 | 84 | #Payment_Account_2> :last-child button { 85 | width: 93%; 86 | margin: 5px; 87 | padding: 12px 8px; 88 | font-size: 17px; 89 | text-align: left; 90 | border: none; 91 | background-color: #66bbe0; 92 | color: white; 93 | border-radius: 5px; 94 | cursor: pointer; 95 | } 96 | 97 | #Payment_Account_2 i { 98 | margin-right: 10px; 99 | } 100 | 101 | /* CSS For Right Part */ 102 | 103 | #Info_Account_div { 104 | width: 57%; 105 | background-color: white; 106 | padding: 5px 20px; 107 | box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px; 108 | border-radius: 8px; 109 | } 110 | 111 | #Info_Account_div {} 112 | 113 | .heading_of_account_info { 114 | width: 100%; 115 | display: flex; 116 | justify-content: space-between; 117 | } 118 | 119 | .heading_of_account_info button { 120 | background-color: white; 121 | color: rgb(178, 2, 2); 122 | font-weight: bold; 123 | font-size: 18px; 124 | border: none; 125 | } 126 | 127 | #All_Info_Data { 128 | display: flex; 129 | width: 100%; 130 | } 131 | 132 | #All_Info_Data_1 { 133 | width: 50%; 134 | padding: 5px 20px; 135 | } 136 | 137 | #All_Info_Data_2 { 138 | width: 50%; 139 | padding: 5px 20px; 140 | } 141 | 142 | #All_Info_Data>div>div>p, 143 | #All_Info_Data>div>div>h3 { 144 | margin: 1px; 145 | } 146 | 147 | #All_Info_Data>div>div { 148 | margin: 10px 5px; 149 | } 150 | 151 | .dullgrey { 152 | color: rgb(169, 156, 156); 153 | font-weight: bold; 154 | } 155 | 156 | .editAddress { 157 | cursor: pointer; 158 | } 159 | 160 | #WishListSection { 161 | width: 100%; 162 | min-width: 600px; 163 | margin-top: 50px; 164 | } 165 | 166 | .ListButtons { 167 | width: 25%; 168 | display: flex; 169 | margin-left: 5%; 170 | flex-direction: column; 171 | box-shadow: rgb(99 99 99 / 20%) 0px 2px 8px 0px; 172 | border-radius: 8px; 173 | } 174 | 175 | .ListButtons button { 176 | background-color: white; 177 | 178 | border: none; 179 | border-bottom: 1px solid rgb(203, 201, 201); 180 | text-align: left; 181 | padding: 19px 10px; 182 | font-size: 16px; 183 | color: rgb(55, 53, 53); 184 | cursor: pointer; 185 | } 186 | 187 | /* Update Address Popup */ 188 | 189 | #UpdateAddress_PopUp_section { 190 | width: 100%; 191 | height: 100vh; 192 | background-color: rgba(0, 0, 0, 0.475); 193 | position: fixed; 194 | top: 0; 195 | right: 0; 196 | display: block; 197 | z-index: 6; 198 | display: none; 199 | } 200 | 201 | #UpdateAddress_PopUp { 202 | width: 100%; 203 | height: 100vh; 204 | display: flex; 205 | flex-direction: column; 206 | justify-content: center; 207 | align-items: center; 208 | gap: 13px; 209 | } 210 | 211 | #ClosePopBtn_address { 212 | padding: 7px 16px; 213 | border-radius: 50px; 214 | border: none; 215 | font-size: 25px; 216 | color: rgb(202, 4, 4); 217 | cursor: pointer; 218 | } 219 | 220 | #UpdateAddress { 221 | background-color: white; 222 | width: 430px; 223 | height: auto; 224 | border-radius: 20px; 225 | padding: 5px 20px; 226 | } 227 | 228 | #UpdateAddress>p { 229 | text-align: center; 230 | font-size: 20px; 231 | font-weight: 700; 232 | } 233 | 234 | #profileUpdateForm { 235 | display: flex; 236 | flex-direction: column; 237 | } 238 | 239 | #profileUpdateForm input, 240 | #profileUpdateForm select { 241 | font-size: 14px; 242 | padding: 5px 10px; 243 | margin: 3px 0 5px 0; 244 | outline: none; 245 | border: none; 246 | border-bottom: 1px solid gray; 247 | border-radius: 5px; 248 | } 249 | 250 | #profileUpdateForm input[type="submit"] { 251 | background-color: #66bbe0; 252 | cursor: pointer; 253 | color: white; 254 | font-weight: 700; 255 | letter-spacing: 1px; 256 | font-size: 18px; 257 | } 258 | 259 | #profileUpdateForm input[type="submit"]:hover { 260 | background-color: #00b3ff; 261 | color: white; 262 | } -------------------------------------------------------------------------------- /assets/css/productView.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 4 | "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", 5 | "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 6 | } 7 | 8 | #product_Overview_Nav { 9 | margin-top: 112px; 10 | background-color: aliceblue; 11 | font-size: 13px; 12 | } 13 | 14 | #product_Overview_Nav a { 15 | text-decoration: none; 16 | color: black; 17 | } 18 | 19 | #product_Overview_Nav>ul { 20 | list-style: none; 21 | display: flex; 22 | margin: 10px 15px; 23 | } 24 | 25 | #product_Overview_Nav>ul li { 26 | padding: 4px; 27 | } 28 | 29 | #product_Overview_section { 30 | width: 100%; 31 | display: grid; 32 | grid-template-columns: repeat(2, 1fr); 33 | gap: 15px; 34 | padding: 0 25px; 35 | } 36 | 37 | .All_Images_of_Selected_Product { 38 | display: grid; 39 | grid-template-columns: 0.8fr 4fr; 40 | } 41 | 42 | .AllImagesSlider { 43 | overflow: hidden; 44 | overflow-y: scroll; 45 | height: 375px; 46 | margin: auto; 47 | cursor: all-scroll; 48 | } 49 | 50 | .AllImagesSlider::-webkit-scrollbar { 51 | width: 10px; 52 | } 53 | 54 | .AllImagesSlider img { 55 | width: 90%; 56 | margin: 5px; 57 | padding: 5px; 58 | border: 1px solid rgb(111 114 132 / 30%); 59 | border-radius: 5px; 60 | } 61 | 62 | .NameDesc_of_Selected_Product { 63 | background-color: white; 64 | padding: 20px; 65 | } 66 | 67 | .NameDesc_of_Selected_Product p { 68 | padding: 2px 0; 69 | } 70 | 71 | .all_prices_div { 72 | display: flex; 73 | align-items: center; 74 | gap: 25px; 75 | } 76 | 77 | .final_price_PO { 78 | font-size: 20px; 79 | font-weight: bolder; 80 | } 81 | 82 | .price_PO { 83 | font-size: 17px; 84 | font-weight: 500; 85 | } 86 | 87 | .price_POO { 88 | font-size: 16px; 89 | font-weight: 500; 90 | color: grey; 91 | } 92 | 93 | .Product_Names_Desc * { 94 | margin: 4px; 95 | } 96 | 97 | .all_prices_div * { 98 | margin: 0; 99 | } 100 | 101 | .all_prices_div { 102 | margin-top: 20px; 103 | } 104 | 105 | .all_prices_div i { 106 | font-size: 27px; 107 | color: #7f7f7f; 108 | cursor: pointer; 109 | } 110 | 111 | .Product_fullName { 112 | font-size: 22px; 113 | font-weight: bolder; 114 | } 115 | 116 | .save_price { 117 | font-size: 17px; 118 | padding: 2px 0; 119 | } 120 | 121 | .showGreenText { 122 | color: #00a651; 123 | font-weight: 600; 124 | font-size: 20px; 125 | padding: 2px 0; 126 | } 127 | 128 | .showBlueText { 129 | color: #008ecc; 130 | font-weight: 600; 131 | font-size: 17px; 132 | } 133 | 134 | .Add_To_Cart_Btn { 135 | background-color: #008ecc; 136 | width: 180px; 137 | border: none; 138 | padding: 5px; 139 | border-radius: 5px; 140 | display: flex; 141 | justify-content: space-around; 142 | font-size: 17px; 143 | align-items: center; 144 | margin: 10px 0; 145 | } 146 | 147 | .txt_btnn { 148 | color: white; 149 | } 150 | 151 | .add_plus { 152 | color: #9ad8f3; 153 | background-color: #17aded; 154 | padding: 2px 4px; 155 | border-radius: 50px; 156 | } 157 | 158 | .enter_pincode_divv { 159 | display: flex; 160 | width: 50%; 161 | padding: 5px 10px; 162 | border: none; 163 | font-size: 17px; 164 | outline: none; 165 | margin-top: 15px; 166 | } 167 | 168 | .enter_pincode_divv>input { 169 | width: 80%; 170 | padding: 5px 10px; 171 | border: none; 172 | border-bottom: 2px solid #7f7f7f; 173 | font-size: 17px; 174 | outline: none; 175 | } 176 | 177 | .enter_pincode_divv>button { 178 | background-color: white; 179 | border: none; 180 | border-bottom: 2px solid #7f7f7f; 181 | font-size: 17px; 182 | color: rgb(178, 28, 5); 183 | font-weight: bold; 184 | } 185 | 186 | .enter_pincode_divv>i { 187 | font-size: 22px; 188 | margin-top: 4px; 189 | margin-right: 4px; 190 | color: #7f7f7f; 191 | } 192 | 193 | /* .enter_pincode_div button{ 194 | margin: 0; 195 | } */ 196 | .location_btn { 197 | color: grey; 198 | } 199 | 200 | .Available_Offers_Parent_div>div { 201 | display: flex; 202 | gap: 20px; 203 | } 204 | 205 | .Available_Offers_Parent_div>h3 { 206 | margin: 10px 0; 207 | } 208 | .Available_Offers_Parent_div>h3:first-child>span{ 209 | padding: 4px 9px; 210 | background-color: #7f7f7f56; 211 | border-radius: 50%; 212 | font-size: 14px; 213 | } 214 | .Available_Offer_div { 215 | height: auto; 216 | padding: 5px 10px; 217 | box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, 218 | rgba(60, 64, 67, 0.15) 0px 1px 3px 1px; 219 | border-radius: 8px; 220 | } 221 | 222 | .Available_Offers_1 { 223 | display: inline; 224 | font-weight: bold; 225 | font-size: 10px; 226 | color: #05b905; 227 | border: 1px solid #40eb40; 228 | padding: 5px !important; 229 | border-radius: 40px; 230 | } 231 | 232 | .Available_Offers_2 { 233 | font-size: 13px; 234 | font-weight: 620; 235 | padding: 8px 0 !important; 236 | } 237 | 238 | .Available_Offers_3 { 239 | font-size: 15px; 240 | font-weight: 420; 241 | color: grey; 242 | cursor: pointer; 243 | } 244 | 245 | .SeeMorePo { 246 | color: rgb(196, 5, 5); 247 | font-size: 17px; 248 | text-align: right; 249 | } 250 | 251 | .SelectedFromImagesSlider>img { 252 | width: 100%; 253 | } 254 | 255 | #Item_Description { 256 | padding: 0 30px; 257 | } 258 | 259 | #first_desc { 260 | border-top: 1px solid #7f7f7f; 261 | padding-top: 5px; 262 | padding-left: 30px; 263 | margin: 10px 0; 264 | } 265 | 266 | #second_desc { 267 | border-top: 1px solid #7f7f7f; 268 | padding-top: 5px; 269 | padding-left: 30px; 270 | margin: 10px 0; 271 | } 272 | 273 | #Item_Description p, 274 | #Item_Description h3 { 275 | padding: 5px 0; 276 | } -------------------------------------------------------------------------------- /assets/js/makepayment.js: -------------------------------------------------------------------------------- 1 | document.body.innerHTML = ` 2 | 3 |
4 |
5 |
6 | 7 | `; 8 | 9 | showcartpageData(); 10 | async function showcartpageData() { 11 | try { 12 | let res = await fetch( 13 | `https://jsonserver-twny.onrender.com/items?item_addtocart=true` 14 | ); 15 | let data = await res.json(); 16 | let totalPayment = 0; 17 | let savePayment = 0; 18 | let count = 0; 19 | data.forEach((element) => { 20 | totalPayment += element.item_final_price * element.item_quantity; 21 | savePayment += element.item_disc_price * element.item_quantity; 22 | count++; 23 | }); 24 | document.querySelector(".mc_amount").innerText = `₹ ${totalPayment}.00`; 25 | document.querySelector( 26 | ".mc_savings" 27 | ).innerHTML = `You save ₹ ${savePayment}.00`; 28 | document.querySelector(".items").innerHTML = `${count} item(s)`; 29 | 30 | let coupanPayment = (totalPayment * 20) / 100; 31 | document.getElementById("cartDataSection_container").innerHTML = ` 32 |
33 |

PAYMENT DETAILS

34 |
35 | Your Cart 39 |
40 | 44 | Order Summary 45 |
46 | Payment 50 |
51 |
52 | 53 |
54 |
55 |
56 |

Payment Methods

57 | 62 | 67 |
68 | 69 | 73 |

Paytm

74 |
75 |
76 | 77 | 81 |

Phone Pay | UPI

82 |
83 |
84 | 85 | 89 |

JioMoney

90 |
91 |
92 | 93 | 97 |

MobiKwik

98 |
99 |
100 | 101 | 105 |

Freecharge Pay Later | UPI | Wallet

106 |
107 |
108 | 109 | 113 |

Google Pay

114 |
115 |
116 | 117 | 120 |

PAYZAPP

121 |
122 | 127 |
128 |
129 | 130 |
131 |
132 |

Payment Details

133 |
134 |

MRP Total

135 |

${totalPayment + savePayment}.00

136 |
137 |
138 |

Product Discount

139 |

-₹${savePayment + coupanPayment}

140 |
141 |
142 |

Total Amount

143 |

${ 144 | totalPayment - coupanPayment 145 | }

146 |
147 |
148 |

You save ₹${savePayment + coupanPayment}

149 |
150 |
151 | 156 |
157 | `; 158 | } catch (error) { 159 | console.log(error); 160 | } 161 | } 162 | 163 | // JS for Final Payment Page 164 | -------------------------------------------------------------------------------- /assets/css/cartpage.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #f6f6f7; 3 | } 4 | 5 | #cartDataSection_container { 6 | margin-top: 112px; 7 | padding: 25px 40px; 8 | display: grid; 9 | grid-template-columns: 1.5fr 1fr; 10 | } 11 | 12 | .cartDataliftside_container { 13 | margin: 0 10px; 14 | padding: 10px 0; 15 | } 16 | 17 | .cartDataliftside_container>div { 18 | background-color: white; 19 | padding: 10px; 20 | } 21 | 22 | .cartDataliftside_container>h1 { 23 | margin: 10px 0; 24 | } 25 | 26 | .cartDataliftside_container>div>h4 { 27 | width: 100%; 28 | display: flex; 29 | justify-content: space-between; 30 | text-align: justify; 31 | padding-right: 50px; 32 | } 33 | 34 | .offersUpdateinAddcartPage { 35 | font-size: 12px; 36 | margin: 25px 5px; 37 | display: flex; 38 | } 39 | 40 | .offersUpdateinAddcartPage>span { 41 | background-image: url(https://www.jiomart.com/msassets/images/icons/offer-green.svg); 42 | height: 16px; 43 | width: 16px; 44 | background-size: 100%; 45 | } 46 | 47 | .offersUpdateinAddcartPage>p { 48 | margin-left: 5px; 49 | } 50 | 51 | .addproducttocartpageitems>div { 52 | display: flex; 53 | margin: 10px 0; 54 | } 55 | 56 | .addproducttocartpageitems>div>div:first-child { 57 | width: 95px; 58 | } 59 | 60 | .addproducttocartpageitems>div>div:first-child>img { 61 | width: 100%; 62 | } 63 | 64 | .addproducttocartpageitems>div>div:nth-child(2) { 65 | margin-left: 10px; 66 | width: 70%; 67 | } 68 | 69 | .addproducttocartpageitems>div>div:nth-child(2)>p:first-child { 70 | font-size: 20px; 71 | font-weight: 600; 72 | } 73 | 74 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(2) { 75 | font-size: 16px; 76 | margin: 10px 0; 77 | } 78 | 79 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(2)>span:first-child { 80 | font-weight: 600; 81 | } 82 | 83 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(2)>span:nth-child(2) { 84 | font-family: JioMedium; 85 | font-size: 14px; 86 | color: rgba(0, 0, 0, .5); 87 | text-decoration: line-through; 88 | padding: 0 8px 0 0; 89 | } 90 | 91 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(2)>span:nth-child(3) { 92 | font-family: JioMedium; 93 | color: #00a100; 94 | padding: 0 8px 0 0; 95 | } 96 | 97 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(3) { 98 | font-size: 14px; 99 | } 100 | 101 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(3)>span { 102 | color: blue; 103 | cursor: pointer; 104 | } 105 | 106 | .addproducttocartpageitems>div>div:nth-child(2)>#homepage_TopDeals_part_Addtocart_btn { 107 | width: 40%; 108 | margin-left: 70%; 109 | } 110 | 111 | .cartDatarightside_container>div:first-child { 112 | display: flex; 113 | align-items: center; 114 | justify-content: space-around; 115 | margin: 25px 0; 116 | } 117 | 118 | .cartDatarightside_container>div:first-child hr { 119 | transform: rotate(90deg); 120 | width: 1px; 121 | border: none; 122 | border-bottom: 25px solid grey; 123 | } 124 | 125 | .cartDatarightside_container>div:nth-child(2)>div:first-child { 126 | display: flex; 127 | justify-content: space-between; 128 | margin: 15px 0; 129 | 130 | } 131 | 132 | .cartDatarightside_container>div:nth-child(2)>div:first-child input { 133 | width: 69%; 134 | padding: 5px 10px; 135 | font-size: 16px; 136 | border: none; 137 | outline: none; 138 | border-radius: 5px; 139 | border-bottom: 1px solid gray; 140 | } 141 | 142 | .cartDatarightside_container>div:nth-child(2)>div:first-child button { 143 | padding: 5px 10px; 144 | font-size: 16px; 145 | border: none; 146 | outline: none; 147 | border-radius: 5px; 148 | border-bottom: 1px solid gray; 149 | border-top: 1px solid gray; 150 | background-color: #008ecc; 151 | font-weight: 700; 152 | color: white; 153 | cursor: pointer; 154 | } 155 | 156 | .cartDatarightside_container>div:nth-child(2)>div:first-child span { 157 | font-size: 12px; 158 | color: red; 159 | font-weight: 600; 160 | cursor: pointer; 161 | } 162 | 163 | .cartDatarightside_container>div:nth-child(2)>div:nth-child(2) { 164 | font-family: JioMedium; 165 | font-size: 16px; 166 | color: #000; 167 | line-height: 20px; 168 | padding: 0 0 16px; 169 | text-align: left; 170 | margin-bottom: 25px; 171 | } 172 | 173 | .cartDatarightside_container>div:nth-child(2)>div:nth-child(2) a { 174 | text-decoration: none; 175 | font-weight: 700; 176 | font-family: JioBold; 177 | font-size: 16px; 178 | color: #008ecc; 179 | line-height: 20px; 180 | border-bottom: 1px solid #008ecc; 181 | padding-bottom: 1px; 182 | } 183 | 184 | .cartDatarightside_container>div:nth-child(3) h4 { 185 | font-family: JioBold; 186 | color: #000; 187 | line-height: 22px; 188 | display: inline-block; 189 | width: 100%; 190 | font-size: 18px; 191 | margin: 15px 0; 192 | } 193 | 194 | .cartDatarightside_container>div:nth-child(3)>div { 195 | padding: 0 0 8px; 196 | display: flex; 197 | width: 100%; 198 | border-bottom: 1px solid rgba(0, 0, 0, .1); 199 | justify-content: space-between; 200 | margin: 0 0 8px 0px; 201 | font-size: 14px; 202 | } 203 | 204 | .cartDatarightside_container>div:nth-child(3)>div:nth-child(3) label, 205 | .cartDatarightside_container>div:nth-child(3)>div:nth-child(2) label { 206 | color: gray; 207 | } 208 | 209 | .cartDatarightside_container>div:nth-child(3)>div:nth-child(4) { 210 | color: #000 !important; 211 | font-weight: 600; 212 | } 213 | 214 | .cartDatarightside_container>div:nth-child(3)>p { 215 | text-align: end; 216 | color: green; 217 | font-weight: 500; 218 | font-size: 14px; 219 | } 220 | 221 | .cartDatarightside_container>div:nth-child(4) { 222 | display: flex; 223 | justify-content: end; 224 | margin: 20px 0; 225 | } 226 | 227 | .cartDatarightside_container>div:nth-child(4)>button { 228 | background: #008ecc; 229 | font-family: JioMedium; 230 | font-size: 14px; 231 | color: #fff; 232 | line-height: 20px; 233 | border-radius: 4px; 234 | box-shadow: none !important; 235 | letter-spacing: 1px; 236 | text-transform: capitalize; 237 | padding: 10px 6px; 238 | width: 50%; 239 | height: 100%; 240 | margin: 0; 241 | border: 0; 242 | position: relative; 243 | overflow: hidden; 244 | cursor: pointer; 245 | } -------------------------------------------------------------------------------- /assets/js/cartpage.js: -------------------------------------------------------------------------------- 1 | document.body.innerHTML = ` 2 | 3 |
4 |
5 |
6 | 7 | `; 8 | 9 | showcartpageData(); 10 | async function showcartpageData() { 11 | try { 12 | let res = await fetch( 13 | `https://jsonserver-twny.onrender.com/items?item_addtocart=true` 14 | ); 15 | let data = await res.json(); 16 | let totalPayment = 0; 17 | let savePayment = 0; 18 | let count = 0; 19 | data.forEach((element) => { 20 | totalPayment += element.item_final_price * element.item_quantity; 21 | savePayment += element.item_disc_price * element.item_quantity; 22 | count++; 23 | }); 24 | document.querySelector(".mc_amount").innerText = `₹ ${totalPayment}.00`; 25 | document.querySelector( 26 | ".mc_savings" 27 | ).innerHTML = `You save ₹ ${savePayment}.00`; 28 | document.querySelector(".items").innerHTML = `${count} item(s)`; 29 | document.getElementById("cartDataSection_container").innerHTML = ` 30 |
31 |

My Cart (${count})

32 |
33 |

Basket (${count} items)₹${totalPayment}.00

34 | 35 |
36 | 37 |

Offer is 38 | applicable only on products sold by Reliance Retail . For specific exclusions & offer 39 | details refer T&C

40 |
41 |
42 | 43 |
44 |
45 |
46 |
47 |
48 | Your 49 | Cart 50 |
51 | Order Summary 52 |
Payment 54 | 55 |
56 |
57 |
58 |

Payment Details

59 |
60 | ₹${ 61 | totalPayment + savePayment 62 | }.00 63 |
64 | 65 |
- 67 | ₹${savePayment}.00
68 | 69 |
70 | ₹${totalPayment}.00 71 |
72 |

You Save ₹${savePayment}.00

73 | 74 | 75 |
76 |
77 | 79 |
80 |
81 | `; 82 | data.forEach((element) => { 83 | let buttonInt; 84 | if (element.item_quantity == 0) { 85 | buttonInt = ` `; 86 | } else { 87 | buttonInt = ` 88 | 89 | `; 90 | } 91 | let div = document.createElement("div"); 92 | div.innerHTML = ` 93 |
94 | 96 |
97 | 98 |
99 |

${element.item_name.slice(0, 20)}...

100 |

₹${ 101 | element.item_final_price * element.item_quantity 102 | }.00 ₹${ 103 | element.item_price * element.item_quantity 104 | }.00 You Save ₹${ 105 | element.item_disc_price * element.item_quantity 106 | }.00

107 |

Sold By Reliance Retail

108 |
109 | ${buttonInt} 110 |
111 |
112 | `; 113 | document.querySelector(".addproducttocartpageitems").append(div); 114 | }); 115 | 116 | if (localStorage.getItem("jiomartUserNotLogin") == "false") { 117 | document.getElementById("applyCouponPart1").innerHTML = ` 118 |
119 |

Apply Coupon

VIEW ALL 120 |
121 |
122 | Log in to see best offers and cashback deals 123 |
124 | `; 125 | } else { 126 | document.getElementById("applyCouponPart1").innerHTML = ` 127 |
128 | 129 |
130 | `; 131 | } 132 | document.getElementById("countOfCart").innerHTML = data.length; 133 | } catch (error) { 134 | console.log(error); 135 | } 136 | } 137 | function goonordersummarypage() { 138 | window.open("./ordersummary.html", "_Self"); 139 | } 140 | 141 | function applyCouponcodeandGet() { 142 | let promo = document.getElementById("userPromoCode").value; 143 | if (promo == "masai20") { 144 | alert("Coupon add successful"); 145 | localStorage.setItem("userPromoCode", true); 146 | window.open("./ordersummary.html", "_Self"); 147 | } else { 148 | alert("Please enter a valid coupon code."); 149 | } 150 | } 151 | -------------------------------------------------------------------------------- /assets/css/makepayment.css: -------------------------------------------------------------------------------- 1 | #footer_section { 2 | margin-top: 500px; 3 | } 4 | 5 | #PaymentDetailsHeading { 6 | margin-top: 120px; 7 | display: flex; 8 | justify-content: space-between; 9 | width: 90%; 10 | } 11 | 12 | #PaymentDetailsHeading img { 13 | width: 30px; 14 | } 15 | 16 | #PaymentDetailsHeading>div:last-child { 17 | display: flex; 18 | align-items: center; 19 | justify-content: space-around; 20 | margin: 25px 0; 21 | gap: 22px; 22 | } 23 | 24 | #PaymentDetailsHeading>div:last-child hr { 25 | transform: rotate(90deg); 26 | width: 1px; 27 | border: none; 28 | border-bottom: 25px solid grey; 29 | } 30 | 31 | #payment_section { 32 | /* margin-top: 142px; */ 33 | display: flex; 34 | gap: 20px; 35 | } 36 | 37 | #payment_methods { 38 | width: 60%; 39 | /* background-color: aquamarine; */ 40 | padding: 30px; 41 | } 42 | 43 | #payment_options { 44 | display: flex; 45 | flex-direction: column; 46 | gap: 20px; 47 | margin-left: 10%; 48 | box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; 49 | padding: 10px; 50 | border-radius: 8px; 51 | } 52 | 53 | #payment_options>div { 54 | display: flex; 55 | align-items: center; 56 | gap: 10px; 57 | border-bottom: 1px dotted grey; 58 | padding-bottom: 5px; 59 | } 60 | 61 | .gpayLogo { 62 | width: 50px; 63 | } 64 | 65 | .credit-logo>i { 66 | font-size: 45px; 67 | color: brown; 68 | } 69 | 70 | .debit-logo>i { 71 | font-size: 45px; 72 | color: blue; 73 | } 74 | 75 | .codLogo>i { 76 | font-size: 45px; 77 | color: rgb(47, 78, 202); 78 | } 79 | 80 | .bold_options { 81 | font-weight: 600; 82 | font-size: 18px; 83 | margin-left: 20px; 84 | } 85 | 86 | #payment_details { 87 | width: 29%; 88 | } 89 | 90 | #payment_Details_main { 91 | display: flex; 92 | flex-direction: column; 93 | gap: 20px; 94 | padding: 15px; 95 | box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; 96 | border-radius: 8px; 97 | margin-top: 32px; 98 | } 99 | 100 | #payment_Details_main>div { 101 | display: flex; 102 | justify-content: space-between; 103 | border-bottom: 1px dotted grey; 104 | padding-bottom: 4px; 105 | padding: 0 8px 5px 5px; 106 | } 107 | 108 | .balck_TP { 109 | color: black; 110 | font-weight: 700; 111 | } 112 | 113 | .yousaveIt { 114 | color: rgb(3, 172, 3); 115 | font-weight: 650; 116 | border: none !important; 117 | } 118 | 119 | .yousaveIt>p { 120 | width: 100%; 121 | text-align: right; 122 | } 123 | 124 | .grey_Tp { 125 | color: grey; 126 | font-weight: 550; 127 | } 128 | 129 | #ProceedToPay { 130 | padding: 10px 20px; 131 | font-size: 20px; 132 | border-radius: 8px; 133 | background-color: #008ecc; 134 | color: white; 135 | border: none; 136 | margin-top: 60px; 137 | /* margin-left: 50px; */ 138 | cursor: pointer; 139 | display: block; 140 | } 141 | 142 | #ProceedToPay>span { 143 | font-weight: 600; 144 | } 145 | 146 | /*====================== CSS For Final Payment Page */ 147 | 148 | body { 149 | margin: 0; 150 | } 151 | 152 | #payment_nav { 153 | width: 100%; 154 | height: 75px; 155 | background-color: #fafafd; 156 | display: flex; 157 | justify-content: center; 158 | align-items: center; 159 | } 160 | 161 | #payment_nav img { 162 | width: 155px; 163 | } 164 | 165 | #payment_display { 166 | width: 100%; 167 | display: flex; 168 | justify-content: center; 169 | align-items: center; 170 | height: 91vh; 171 | background-color: antiquewhite; 172 | background-image: url("https://wallpaperaccess.com/full/4597135.jpg"); 173 | border-radius: 10px; 174 | } 175 | 176 | .main_payment_content { 177 | width: 400px; 178 | height: auto; 179 | background-color: white; 180 | text-align: left; 181 | box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; 182 | border-radius: 10px; 183 | margin: 80px; 184 | border: 2px solid purple; 185 | margin-left: 651px; 186 | } 187 | 188 | .qrcode { 189 | width: 100%; 190 | height: 40%; 191 | display: flex; 192 | align-items: center; 193 | justify-content: center; 194 | position: relative; 195 | margin: 15px; 196 | margin-left: -4px; 197 | } 198 | 199 | .qrcode img { 200 | width: 180px; 201 | } 202 | 203 | #qrcode_cover { 204 | height: 100%; 205 | background-color: rgba(255, 255, 255, 0.724); 206 | position: absolute; 207 | display: flex; 208 | justify-content: center; 209 | align-items: center; 210 | border: 1px solid grey; 211 | width: 190px; 212 | } 213 | 214 | #qrcode_cover p { 215 | display: inline; 216 | background-color: #004584; 217 | color: white; 218 | padding: 7px 10px; 219 | border-radius: 60px; 220 | cursor: pointer; 221 | } 222 | 223 | .UpperHalfPay { 224 | padding: 10px; 225 | text-align: center; 226 | } 227 | 228 | .orDiv { 229 | display: flex; 230 | font-size: 20px; 231 | color: rgb(48, 46, 46); 232 | } 233 | 234 | .orDiv>hr { 235 | width: 42%; 236 | } 237 | 238 | .OrPhoneNodiv { 239 | padding: 7px 20px; 240 | display: flex; 241 | flex-direction: column; 242 | align-items: center; 243 | } 244 | 245 | .UpperHalfPay h2 { 246 | margin: 0; 247 | } 248 | 249 | .PaymentInputsButton { 250 | display: flex; 251 | flex-direction: column; 252 | width: 90%; 253 | gap: 10px; 254 | } 255 | 256 | .PaymentInputsButton input { 257 | padding: 10px 20px; 258 | border: 1px solid #004584; 259 | border-radius: 10px; 260 | font-size: 18px; 261 | outline: none; 262 | color: black; 263 | align-self: center; 264 | margin-left: 4%; 265 | width: 95%; 266 | text-align: center; 267 | } 268 | 269 | .h2mZero { 270 | margin: 0; 271 | color: #024687; 272 | } 273 | 274 | .PaymentInputsButton button { 275 | padding: 10px 20px; 276 | border: 1px solid #004584; 277 | background-color: #1b5e9d8f; 278 | border-radius: 70px; 279 | font-size: 18px; 280 | outline: none; 281 | color: white; 282 | width: 95%; 283 | margin-left: 4%; 284 | cursor: pointer; 285 | } 286 | 287 | .TermsInfoPara { 288 | font-size: 14px; 289 | color: grey; 290 | text-align: center; 291 | } 292 | 293 | .TermsInfoPara span { 294 | color: #5f259f; 295 | } 296 | 297 | .PaymentInputsButton { 298 | text-align: center; 299 | } 300 | 301 | #waitingforPayment { 302 | display: none; 303 | } 304 | 305 | #Successfull { 306 | width: 100%; 307 | height: 100vh; 308 | background-color: rgba(240, 248, 255, 0.66); 309 | display: flex; 310 | justify-content: center; 311 | align-items: center; 312 | position: fixed; 313 | top: 0; 314 | right: 0; 315 | display: none; 316 | } -------------------------------------------------------------------------------- /assets/css/ordersummary.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #f6f6f7; 3 | } 4 | 5 | #cartDataSection_container { 6 | margin-top: 112px; 7 | padding: 25px 40px; 8 | display: grid; 9 | grid-template-columns: 1.5fr 1fr; 10 | } 11 | 12 | .cartDataliftside_container { 13 | margin: 0 10px; 14 | padding: 10px 0; 15 | } 16 | 17 | .cartDataliftside_container>div { 18 | background-color: white; 19 | padding: 10px; 20 | } 21 | 22 | .cartDataliftside_container>h1 { 23 | margin: 10px 0; 24 | } 25 | 26 | .cartDataliftside_container>div>h4 { 27 | width: 100%; 28 | display: flex; 29 | justify-content: space-between; 30 | text-align: justify; 31 | padding-right: 50px; 32 | } 33 | 34 | .offersUpdateinAddcartPage { 35 | font-size: 12px; 36 | margin: 25px 5px; 37 | display: flex; 38 | } 39 | 40 | .offersUpdateinAddcartPage>span { 41 | background-image: url(https://www.jiomart.com/msassets/images/icons/offer-green.svg); 42 | height: 16px; 43 | width: 16px; 44 | background-size: 100%; 45 | } 46 | 47 | .offersUpdateinAddcartPage>p { 48 | margin-left: 5px; 49 | } 50 | 51 | .addproducttocartpageitems>div { 52 | display: flex; 53 | margin: 10px 0; 54 | } 55 | 56 | .addproducttocartpageitems>div>div:first-child { 57 | width: 95px; 58 | } 59 | 60 | .addproducttocartpageitems>div>div:first-child>img { 61 | width: 100%; 62 | } 63 | 64 | .addproducttocartpageitems>div>div:nth-child(2) { 65 | margin-left: 10px; 66 | width: 70%; 67 | } 68 | 69 | .addproducttocartpageitems>div>div:nth-child(2)>p:first-child { 70 | font-size: 20px; 71 | font-weight: 600; 72 | } 73 | 74 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(2) { 75 | font-size: 16px; 76 | margin: 10px 0; 77 | } 78 | 79 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(2)>span:first-child { 80 | font-weight: 600; 81 | } 82 | 83 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(2)>span:nth-child(2) { 84 | font-family: JioMedium; 85 | font-size: 14px; 86 | color: rgba(0, 0, 0, .5); 87 | text-decoration: line-through; 88 | padding: 0 8px 0 0; 89 | } 90 | 91 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(2)>span:nth-child(3) { 92 | font-family: JioMedium; 93 | color: #00a100; 94 | padding: 0 8px 0 0; 95 | } 96 | 97 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(3) { 98 | font-size: 14px; 99 | } 100 | 101 | .addproducttocartpageitems>div>div:nth-child(2)>p:nth-child(3)>span { 102 | color: blue; 103 | cursor: pointer; 104 | } 105 | 106 | .addproducttocartpageitems>div>div:nth-child(2)>p:last-child { 107 | text-align: end; 108 | font-weight: 600; 109 | color: gray; 110 | margin-top: -25px; 111 | } 112 | 113 | .cartDatarightside_container>div:first-child { 114 | display: flex; 115 | align-items: center; 116 | justify-content: space-around; 117 | margin: 25px 0; 118 | } 119 | 120 | .cartDatarightside_container>div:first-child hr { 121 | transform: rotate(90deg); 122 | width: 1px; 123 | border: none; 124 | border-bottom: 25px solid grey; 125 | } 126 | 127 | .cartDatarightside_container>div:nth-child(2)>div:first-child { 128 | display: flex; 129 | justify-content: space-between; 130 | margin: 15px 0; 131 | 132 | } 133 | 134 | .cartDatarightside_container>div:nth-child(2)>div:first-child input { 135 | width: 69%; 136 | padding: 5px 10px; 137 | font-size: 16px; 138 | border: none; 139 | outline: none; 140 | border-radius: 5px; 141 | border-bottom: 1px solid gray; 142 | } 143 | 144 | #userAddressShowForD button { 145 | padding: 5px 10px; 146 | font-size: 16px; 147 | border: none; 148 | outline: none; 149 | border-radius: 5px; 150 | border-bottom: 1px solid gray; 151 | border-top: 1px solid gray; 152 | background-color: #008ecc; 153 | font-weight: 700; 154 | color: white; 155 | cursor: pointer; 156 | } 157 | 158 | #userAddressShowForD pre input { 159 | width: 69%; 160 | padding: 5px 10px; 161 | font-size: 16px; 162 | border: none; 163 | outline: none; 164 | border-radius: 5px; 165 | border-bottom: 1px solid gray; 166 | margin: 5px 0; 167 | font-size: 16px; 168 | text-transform: uppercase; 169 | font-weight: 500; 170 | } 171 | 172 | .cartDatarightside_container>div:nth-child(2)>div:first-child span { 173 | font-size: 12px; 174 | color: red; 175 | font-weight: 600; 176 | cursor: pointer; 177 | } 178 | 179 | .cartDatarightside_container>div:nth-child(2)>div:nth-child(2) { 180 | font-family: JioMedium; 181 | font-size: 16px; 182 | color: #000; 183 | line-height: 20px; 184 | padding: 0 0 16px; 185 | text-align: left; 186 | margin-bottom: 25px; 187 | } 188 | 189 | .cartDatarightside_container>div:nth-child(2)>div:nth-child(2) a { 190 | text-decoration: none; 191 | font-weight: 700; 192 | font-family: JioBold; 193 | font-size: 16px; 194 | color: #008ecc; 195 | line-height: 20px; 196 | border-bottom: 1px solid #008ecc; 197 | padding-bottom: 1px; 198 | } 199 | 200 | .cartDatarightside_container>div:nth-child(3) h4 { 201 | font-family: JioBold; 202 | color: #000; 203 | line-height: 22px; 204 | display: inline-block; 205 | width: 100%; 206 | font-size: 18px; 207 | margin: 15px 0; 208 | } 209 | 210 | .cartDatarightside_container>div:nth-child(3)>div { 211 | padding: 0 0 8px; 212 | display: flex; 213 | width: 100%; 214 | border-bottom: 1px solid rgba(0, 0, 0, .1); 215 | justify-content: space-between; 216 | margin: 0 0 8px 0px; 217 | font-size: 14px; 218 | } 219 | 220 | .cartDatarightside_container>div:nth-child(3)>div:nth-child(3) label, 221 | .cartDatarightside_container>div:nth-child(3)>div:nth-child(2) label { 222 | color: gray; 223 | } 224 | 225 | .cartDatarightside_container>div:nth-child(3)>div:nth-child(4) { 226 | color: #000 !important; 227 | font-weight: 600; 228 | } 229 | 230 | .cartDatarightside_container>div:nth-child(3)>p { 231 | text-align: end; 232 | color: green; 233 | font-weight: 500; 234 | font-size: 14px; 235 | } 236 | 237 | .cartDatarightside_container>div:nth-child(4) { 238 | display: flex; 239 | justify-content: end; 240 | margin: 20px 0; 241 | } 242 | 243 | .cartDatarightside_container>div:nth-child(4)>button { 244 | background: #008ecc; 245 | font-family: JioMedium; 246 | font-size: 14px; 247 | color: #fff; 248 | line-height: 20px; 249 | border-radius: 4px; 250 | box-shadow: none !important; 251 | letter-spacing: 1px; 252 | text-transform: capitalize; 253 | padding: 10px 6px; 254 | width: 50%; 255 | height: 100%; 256 | margin: 0; 257 | border: 0; 258 | position: relative; 259 | overflow: hidden; 260 | cursor: pointer; 261 | } -------------------------------------------------------------------------------- /assets/js/useraccount.js: -------------------------------------------------------------------------------- 1 | document.body.innerHTML = ` 2 | 3 |
4 |
5 | 6 |
7 |
8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 18 |
19 |
20 | 21 |
22 |

EDIT PROFILE

23 |
24 | 25 | 26 | 27 | 28 | 29 | 35 | 36 | 37 | 38 | 39 | 40 | 43 | 44 | 45 | 46 | 47 | 48 | 49 |
50 |
51 |
52 |
53 | 54 | `; 55 | 56 | dataShowUserAccount(); 57 | async function dataShowUserAccount() { 58 | let userndata = localStorage.getItem("userNumberOndata"); 59 | let res = await fetch( 60 | `https://jsonserver-twny.onrender.com/jiomartuserdata?user_number=${userndata}` 61 | ); 62 | let data = await res.json(); 63 | 64 | document.getElementById("Account_Section_Parent").innerHTML = ` 65 | 66 |

My Account

67 |
68 | 69 | 71 | 72 |
73 |
74 |
75 |
76 | 77 |
78 | 85 |
86 | 87 |
88 |
89 | 95 | 100 |
101 |
102 | 106 |
107 |
108 |
109 |
110 | 112 | 113 |
114 | 118 | 119 |
120 | 121 |
122 |
123 |

Full Name

124 |

${data[0].user_name || "Guest"}

125 | 126 |
127 |
128 |

Email id

129 |

${data[0].user_email || "guest@example.com"}

130 |
131 | 132 | 133 |
134 | 135 |
136 |
137 |

DOB

138 |

${data[0].user_dathofbirth || "YYYY/MM/DD"}

140 |
141 |

Mobile Number

142 |

+91-${data[0].user_number}

144 |
145 |

Default Address

146 |

${data[0].user_address || "India"} ${ 147 | data[0].user_pincode || "" 148 | }

149 |
150 | 151 |
152 | 153 |
154 |
155 |
156 | `; 157 | } 158 | 159 | function ClosePopBtn_address() { 160 | document.getElementById("UpdateAddress_PopUp_section").style.display = "none"; 161 | } 162 | 163 | function ShowChangeAddressPop() { 164 | document.getElementById("UpdateAddress_PopUp_section").style.display = 165 | "block"; 166 | } 167 | document.querySelector("form").addEventListener("submit", (event) => { 168 | event.preventDefault(); 169 | let userndata = localStorage.getItem("userNumberOndataID"); 170 | let fname = document.getElementById("firstName").value; 171 | let lname = document.getElementById("lastName").value; 172 | let genderSelect = document.getElementById("genderSelect").value; 173 | let dobofuser = document.getElementById("dobofuser").value; 174 | let email = document.getElementById("email").value; 175 | let usermobilenumber = document.getElementById("usermobilenumber").value; 176 | let userAddress = document.getElementById("userAddress").value; 177 | let userAddressPincode = document.getElementById("userAddressPincode").value; 178 | localStorage.setItem("userpincodelocal", userAddressPincode); 179 | fetch(`https://jsonserver-twny.onrender.com/jiomartuserdata/${userndata}`, { 180 | method: "PATCH", 181 | body: JSON.stringify({ 182 | user_fname: fname, 183 | user_lname: lname, 184 | user_name: fname + " " + lname, 185 | user_number: usermobilenumber, 186 | user_email: email, 187 | user_dathofbirth: dobofuser, 188 | user_gender: genderSelect, 189 | user_address: userAddress, 190 | user_pincode: userAddressPincode, 191 | }), 192 | headers: { "Content-Type": "application/json" }, 193 | }); 194 | ClosePopBtn_address(); 195 | dataShowUserAccount(); 196 | }); 197 | 198 | function logountUser() { 199 | localStorage.clear(); 200 | window.open("./index.html", "_Salf"); 201 | } 202 | 203 | function movetocartpage() { 204 | window.open("./cartpage.html", "_Salf"); 205 | } 206 | -------------------------------------------------------------------------------- /assets/js/productview.js: -------------------------------------------------------------------------------- 1 | document.body.innerHTML = ` 2 | 3 |
4 |
5 |
6 |
7 |
8 | 9 | `; 10 | dishplayProductOnItemData(); 11 | async function dishplayProductOnItemData() { 12 | try { 13 | let id = localStorage.getItem("selectProductIdandshowDetails"); 14 | let res = await fetch(`https://jsonserver-twny.onrender.com/items/${id}`); 15 | let data = await res.json(); 16 | 17 | document.getElementById("product_Overview_Nav").innerHTML = ` 18 |
    19 |
  • 20 | Home 21 |
  • 22 |
  • 23 | 24 |
  • 25 |
  • 26 | All Categories 28 |
  • 29 |
  • 30 | 31 |
  • 32 |
  • 33 | ${data.item_name} 35 |
  • 36 |
37 | `; 38 | let buttonInt; 39 | if (data.item_quantity == 0) { 40 | buttonInt = ` `; 41 | } else { 42 | buttonInt = ` 43 | 44 | `; 45 | } 46 | 47 | let likeornot; 48 | if (data.item_like) { 49 | likeornot = 'style="color:red"'; 50 | } 51 | document.getElementById("product_Overview_section").innerHTML = ` 52 |
53 |
54 | 55 |
56 | 61 |
62 |
63 | 64 |
65 |
66 |

${data.item_name}

67 |
68 | 69 |
70 |

₹ ${data.item_final_price}.00

71 |

M.R.P: ₹ ${data.item_price}.00

72 | 73 |
74 | 75 |
76 |

77 | You Save : ₹ ${data.item_disc_price}.00 Inclusive of 78 | all taxes 79 |

80 |

In Stock

81 |

Sold By Reliance Retail

82 |

Inaugural Offer Free Shipping

83 |
84 | 85 |
${buttonInt}
86 | 87 |
88 | 89 | 96 |
97 | 98 |
99 |

Available Offers 3

100 |
101 |
102 |

BUY MORE SAVE MORE

103 |

104 | Get Sugar at ₹ 9 only on Grocery Shopping of Min. ₹ 1499. 105 |

106 |

View 1 Offer

107 |
108 |
109 |

ADDITIONAL OFFERS

110 |

111 | Get Sugar at Rs.9 only on Grocery Shopping of Min. 1499. 112 |

113 |

View 1 offer

114 |
115 |
116 |

BANK OFFERS

117 |

118 | Pay using Paytm Wallet & Get up to Rs. 750/- Cashback. 119 |

120 |

View 6 more offers

121 |
122 |
123 |

SEE MORE

124 |
125 |
126 | `; 127 | 128 | data.item_other_img_url.forEach((element) => { 129 | let img = document.createElement("img"); 130 | img.src = element; 131 | document.querySelector(".AllImagesSlider").append(img); 132 | }); 133 | 134 | document.getElementById("Item_Description").innerHTML = ` 135 |
136 |

Description

137 |
138 |

139 | ${data.item_name}
140 | Keep clothes looking fresh and clean with Surf Excel Matic Top Load 141 | Detergent Powder that ensures tough stain removal from your clothes. 142 | This detergent powder is suitable for both your white and coloured 143 | clothes. It removes dirt from clothes, thereby removing dullness from 144 | them and leaving a pleasant fragrance. So go ahead and buy this 145 | product online today! 146 |

147 |

148 | Disclaimer:
Despite our attempts to provide you with the 149 | most accurate information possible, the actual packaging, ingredients 150 | and colour of the product may sometimes vary. Please read the label, 151 | directions and warnings carefully before use. 152 |

153 |
154 |
155 | 156 |
157 |

Features & Details

158 |
159 |

Removes tough stains

160 |

Leaves a pleasant scent

161 |
162 | 163 |
164 | `; 165 | if (localStorage.getItem("userpincodelocal") == null) { 166 | document 167 | .getElementById("pincodeFromPopUp1") 168 | .setAttribute("value", "302034"); 169 | } else { 170 | document.getElementById("pincodeFromPopUp1").value = 171 | localStorage.getItem("userpincodelocal"); 172 | } 173 | } catch (error) { 174 | console.log(error); 175 | } 176 | } 177 | -------------------------------------------------------------------------------- /assets/js/ordersummary.js: -------------------------------------------------------------------------------- 1 | document.body.innerHTML = ` 2 | 3 |
4 |
5 |
6 | 7 | `; 8 | 9 | showcartpageData(); 10 | async function showcartpageData() { 11 | try { 12 | let res = await fetch( 13 | `https://jsonserver-twny.onrender.com/items?item_addtocart=true` 14 | ); 15 | let data = await res.json(); 16 | let totalPayment = 0; 17 | let savePayment = 0; 18 | let count = 0; 19 | data.forEach((element) => { 20 | totalPayment += element.item_final_price * element.item_quantity; 21 | savePayment += element.item_disc_price * element.item_quantity; 22 | count++; 23 | }); 24 | document.querySelector(".mc_amount").innerText = `₹ ${totalPayment}.00`; 25 | document.querySelector( 26 | ".mc_savings" 27 | ).innerHTML = `You save ₹ ${savePayment}.00`; 28 | document.querySelector(".items").innerHTML = `${count} item(s)`; 29 | 30 | let coupanPayment = (totalPayment * 20) / 100; 31 | document.getElementById("cartDataSection_container").innerHTML = ` 32 |
33 |

Order Summary

34 |
35 |

Select Delivery Address

36 |
37 | 38 |
39 |
40 |
41 |

Basket (${count} items)₹${totalPayment}.00

42 | 43 |
44 | 45 |

Offer is 46 | applicable only on products sold by Reliance Retail . For specific exclusions & offer 47 | details refer T&C

48 |
49 |
50 | 51 |
52 |
53 |
54 |
55 |
56 | Your 57 | Cart 58 |
59 | Order Summary 60 |
Payment 62 | 63 |
64 |
65 |
66 |
67 |

Payment Details

68 |
69 | ₹${ 70 | totalPayment + savePayment 71 | }.00 72 |
73 | 74 |
- 76 | ₹${savePayment}.00
77 | 78 |
79 | ₹${totalPayment}.00 80 |
81 |
82 | - ₹${coupanPayment} 83 |
84 |
85 | ₹${ 86 | totalPayment - coupanPayment 87 | } 88 |
89 |

You Save ₹${ 90 | savePayment + coupanPayment 91 | }

92 | 93 | 94 |
95 |
96 | 97 |
98 |
99 | `; 100 | data.forEach((element) => { 101 | let div = document.createElement("div"); 102 | div.innerHTML = ` 103 |
104 | 106 |
107 | 108 |
109 |

${element.item_name.slice(0, 20)}...

110 |

₹${ 111 | element.item_final_price * element.item_quantity 112 | }.00 ₹${ 113 | element.item_price * element.item_quantity 114 | }.00 You Save ₹${ 115 | element.item_disc_price * element.item_quantity 116 | }.00

117 |

Sold By Reliance Retail

118 |

Qty : ${element.item_quantity}

119 |
120 | `; 121 | document.querySelector(".addproducttocartpageitems").append(div); 122 | }); 123 | 124 | if (localStorage.getItem("userPromoCode") == "true") { 125 | } 126 | document.getElementById("countOfCart").innerHTML = data.length; 127 | } catch (error) { 128 | console.log(error); 129 | } 130 | } 131 | 132 | function goonmakepaymentpage() { 133 | let pay = document 134 | .getElementById("cart_netpay_makepayment") 135 | .innerText.slice(1, 100); 136 | console.log(pay); 137 | localStorage.setItem("usemakepayment", pay); 138 | window.open("./makepayment.html", "_Self"); 139 | } 140 | 141 | checkuserdatainoderpage(); 142 | async function checkuserdatainoderpage() { 143 | try { 144 | let userndata = localStorage.getItem("userNumberOndata"); 145 | let res = await fetch( 146 | `https://jsonserver-twny.onrender.com/jiomartuserdata?user_number=${userndata}` 147 | ); 148 | let data = await res.json(); 149 | document.getElementById("userAddressShowForD").innerHTML = ` 150 |
151 |     
152 |     
153 | 
154 |     
155 |     
156 | `; 157 | } catch (error) { 158 | console.log(error); 159 | } 160 | } 161 | function updateDaddressFun() { 162 | if ( 163 | document.getElementById("updateDaddressID").innerText == 164 | "Change/Add Address" 165 | ) { 166 | document.getElementById("userAddressShowForDAddress").disabled = false; 167 | document.getElementById("userAddressShowForDPincode").disabled = false; 168 | document.getElementById("updateDaddressID").innerHTML = "Update Address"; 169 | } else { 170 | document.getElementById("userAddressShowForDAddress").disabled = true; 171 | document.getElementById("userAddressShowForDPincode").disabled = true; 172 | document.getElementById("updateDaddressID").innerHTML = 173 | "Change/Add Address"; 174 | let userndata = localStorage.getItem("userNumberOndataID"); 175 | fetch(`https://jsonserver-twny.onrender.com/jiomartuserdata/${userndata}`, { 176 | method: "PATCH", 177 | body: JSON.stringify({ 178 | user_address: document.getElementById("userAddressShowForDAddress") 179 | .value, 180 | user_pincode: document.getElementById("userAddressShowForDPincode") 181 | .value, 182 | }), 183 | headers: { "Content-Type": "application/json" }, 184 | }); 185 | } 186 | } 187 | -------------------------------------------------------------------------------- /assets/js/showallproduct.js: -------------------------------------------------------------------------------- 1 | document.body.innerHTML = ` 2 | 3 |
4 |
5 |
6 |
7 | 8 |
9 |
10 |
11 | 12 |
13 |
14 |

Sort by:

15 | 16 | 17 | 18 | 19 | 20 |
21 |
22 | 23 |
24 |
25 |
26 | 27 | 28 | 29 | 30 | `; 31 | 32 | let locaValue = localStorage.getItem("productsCategory"); 33 | 34 | if (locaValue == "Top_Deals" || locaValue == "fruitsNvegies") { 35 | document.querySelector(".leftSide").innerHTML = ` 36 |
37 |

Categories

38 |
39 |

Fruits & Vegetables

40 |
41 |

Dairy & Bakery

42 |
43 |

Staples

44 |
45 |

Snacks & Branded Foods

46 |
47 |

Beverages

48 |
49 |

Personal Care

50 |
51 |

Home Care

52 |
53 |

Home & Kitchen

54 |
55 |

Mom & Baby Care

56 |
57 |

Books

58 |
59 |

Pets

60 |
61 | `; 62 | } else if (locaValue == "kitchenware") { 63 | document.querySelector(".leftSide").innerHTML = ` 64 |
65 |

Categories

66 |
67 |

Kitchenware

68 |
69 |

Dining

70 |
71 |

Furnishing

72 |
73 |

Home Decor

74 |
75 |

Furniture

76 |
77 |

Home Appliances

78 |
79 |

Toys, Games & Fitness

80 |
81 |

Electrical

82 |
83 |

Bathroom & Laundry Accessories

84 |
85 |

Disposables

86 |
87 |

Stationery

88 |
89 |

Bags & Travel Luggage

90 |
91 |

Mops, Brushes & Scrubs

92 |
93 |

Auto Care

94 |
95 |

Garden & Outdoor

96 |
97 |

Carpentry & work accessories

98 |
99 |

Pooja Needs

100 |
101 |

Bathroom & Laundry

102 |
103 |

Industrial & Scientific Supplies

104 |
105 | `; 106 | } else if (locaValue == "mens") { 107 | document.querySelector(".leftSide").innerHTML = ` 108 |
109 |

Categories

110 |
111 |

Men

112 |
113 |

Women

114 |
115 |

Boys

116 |
117 |

Girls

118 |
119 |

Junior Boys

120 |
121 |

Infants

122 |
123 |

Toys & Baby Care

124 |
125 | `; 126 | } else if (locaValue == "Electronics") { 127 | document.querySelector(".leftSide").innerHTML = ` 128 |
129 |

Categories

130 |
131 |

Mobiles & Tablets

132 |
133 |

TV & Speaker

134 |
135 |

Home Appliances

136 |
137 |

Computers

138 |
139 |

Cameras

140 |
141 |

Kitchen Appliances

142 |
143 |

Personal Care & Grooming

144 |
145 |

Smart Devices

146 |
147 |

Gaming

148 |
149 |

Accessories

150 |
151 |

Phones

152 |
153 |

Office Products

154 |
155 |

Health Care Devices

156 |
157 | `; 158 | } else if (locaValue == "makeup") { 159 | document.querySelector(".leftSide").innerHTML = ` 160 |
161 |

Categories

162 |
163 |

Hair

164 |
165 |

Skin Care

166 |
167 |

Fragrances

168 |
169 |

Personal Care

170 |
171 |

Mom & Baby

172 |
173 |

Men's Grooming

174 |
175 |

Tools & Appliances

176 |
177 |

Covid Essentials

178 |
179 |

Wellness

180 |
181 |

Fitness

182 |
183 |

Treatments

184 |
185 | `; 186 | } 187 | 188 | dishplayData2(""); 189 | async function dishplayData2(valFOR) { 190 | try { 191 | document.getElementById("products_display").innerHTML = ""; 192 | let res = await fetch( 193 | `https://jsonserver-twny.onrender.com/items?item_category=${locaValue}&_sort=${valFOR}` 194 | ); 195 | let data = await res.json(); 196 | 197 | data.forEach((element) => { 198 | let buttonInt; 199 | if (element.item_quantity == 0) { 200 | buttonInt = ` `; 201 | } else { 202 | buttonInt = ` 203 | 204 | `; 205 | } 206 | let div = document.createElement("div"); 207 | div.innerHTML = ` 208 |
${ 209 | element.item_discount 210 | }%
off
211 |
214 | 217 |

${element.item_name.slice(0, 50)}

218 |
219 |
220 |

₹ ${element.item_final_price}.00

221 |

M.R.P: ₹ ${ 222 | element.item_price 223 | }.00

224 |

Save ₹ ${element.item_disc_price}.00

225 |
226 |
${buttonInt}
227 | `; 228 | 229 | document.getElementById("products_display").append(div); 230 | }); 231 | } catch (error) { 232 | console.log(error); 233 | } 234 | } 235 | -------------------------------------------------------------------------------- /assets/css/style.css: -------------------------------------------------------------------------------- 1 | * { 2 | margin: 0; 3 | padding: 0; 4 | box-sizing: border-box; 5 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 6 | -webkit-user-select: none; 7 | -moz-user-select: none; 8 | -ms-user-select: none; 9 | user-select: none; 10 | } 11 | 12 | body { 13 | display: flex; 14 | flex-direction: column; 15 | align-items: center; 16 | background-color: #ffff; 17 | } 18 | 19 | section { 20 | max-width: 1680px; 21 | min-width: 1024px; 22 | height: auto; 23 | width: 100%; 24 | margin: 0 auto; 25 | position: relative; 26 | } 27 | 28 | #homepage_top_slider_part{ 29 | margin-top: 112px; 30 | } 31 | .homePage-topslideshow-container { 32 | position: relative; 33 | margin: auto; 34 | } 35 | 36 | .homePage-topslideshow-container img { 37 | vertical-align: middle; 38 | } 39 | 40 | .homePage-topslideshow-container .prev, 41 | .homePage-topslideshow-container .next { 42 | cursor: pointer; 43 | position: absolute; 44 | top: 50%; 45 | width: auto; 46 | padding: 16px; 47 | margin-top: -22px; 48 | color: white; 49 | font-weight: bold; 50 | font-size: 18px; 51 | transition: 0.6s ease; 52 | border-radius: 0 3px 3px 0; 53 | user-select: none; 54 | } 55 | 56 | .homePage-topslideshow-container .next { 57 | right: 0; 58 | border-radius: 3px 0 0 3px; 59 | } 60 | 61 | .homePage-topslideshow-container .prev:hover, 62 | .homePage-topslideshow-container .next:hover { 63 | background-color: rgba(0, 225, 255, 0.61); 64 | } 65 | 66 | .homePage-topslideshow-dots-container { 67 | display: flex; 68 | justify-content: center; 69 | position: absolute; 70 | width: 100%; 71 | bottom: 5px; 72 | } 73 | 74 | .homePage-topslideshow-dots-container .dot { 75 | cursor: pointer; 76 | height: 10px; 77 | width: 10px; 78 | margin: 0 2px; 79 | background-color: #ffff; 80 | border-radius: 50%; 81 | display: inline-block; 82 | transition: background-color 0.6s ease; 83 | border: 1px solid rgb(148, 148, 148); 84 | } 85 | 86 | .homePage-topslideshow-dots-container .active, 87 | .homePage-topslideshow-dots-container .dot:hover { 88 | background-color: #007bff; 89 | border: 2px solid white; 90 | } 91 | 92 | /* Fading animation */ 93 | .homePage-topslideshow-container .homePage-topslideshow-image { 94 | display: none; 95 | animation-name: fade; 96 | animation-duration: 1.5s; 97 | } 98 | 99 | 100 | @keyframes fade { 101 | from { 102 | opacity: .4 103 | } 104 | 105 | to { 106 | opacity: 1 107 | } 108 | } 109 | 110 | #homepage_top__part_all_category { 111 | margin: 10px 0; 112 | } 113 | 114 | section>img { 115 | width: 100%; 116 | } 117 | 118 | .homepage_boxwithhad_part { 119 | padding: 0 50px; 120 | } 121 | 122 | .homepage_boxwithhad_part h1 { 123 | padding: 20px 0; 124 | font-size: 20px; 125 | color: #000; 126 | text-align: start; 127 | width: 100%; 128 | } 129 | 130 | .homepage_boxwithhad_part_items { 131 | display: grid; 132 | grid-template-columns: repeat(4, 1fr); 133 | gap: 20px; 134 | } 135 | 136 | .homepage_boxwithhad_part_items>div { 137 | background: #efd6da; 138 | border-radius: 15px; 139 | position: relative; 140 | width: 100%; 141 | height: 300px; 142 | display: flex; 143 | flex-direction: column; 144 | align-items: center; 145 | justify-content: center; 146 | } 147 | 148 | .homepage_boxwithhad_part_items>div:hover { 149 | box-shadow: rgba(122, 122, 122, 0.3) 5px 5px, rgba(167, 167, 167, 0.25) 6px 6px, rgba(0, 0, 0, 0.25) 0px 25px 50px -12px; 150 | } 151 | 152 | .homepage_boxwithhad_part_items>div>span { 153 | position: absolute; 154 | color: #fff; 155 | font-size: 16px; 156 | font-family: JioBold; 157 | width: 100%; 158 | text-transform: uppercase; 159 | background: url(https://www.jiomart.com/assets/version1659035733/smartweb/images/offer_bg.png) no-repeat top center; 160 | height: 38px; 161 | background-size: 100%; 162 | text-align: center; 163 | padding: 8px 0 0; 164 | top: 0; 165 | font-weight: 600; 166 | z-index: 1; 167 | } 168 | 169 | .homepage_boxwithhad_part_items>div>span>span { 170 | font-style: italic; 171 | font-size: 18px; 172 | } 173 | 174 | .homepage_boxwithhad_part_items>div>div { 175 | margin-top: 25px; 176 | height: 235px; 177 | width: 200px; 178 | transition: all 0.2s ease-out; 179 | } 180 | 181 | .homepage_boxwithhad_part_items>div:hover div { 182 | transform: scale(1.1, 1.1); 183 | transition: all 0.3s ease-in-out; 184 | } 185 | 186 | .homepage_boxwithhad_part_items>div>div>img { 187 | vertical-align: middle; 188 | border-style: none; 189 | max-width: 100%; 190 | cursor: pointer; 191 | } 192 | 193 | .homepage_boxwithhad_part_items>div>div>p { 194 | font-size: 16px; 195 | font-weight: 600; 196 | font-family: JioBold; 197 | color: #000; 198 | display: -webkit-box; 199 | display: -ms-flexbox; 200 | display: flex; 201 | -webkit-box-pack: center; 202 | -ms-flex-pack: center; 203 | justify-content: center; 204 | overflow: hidden; 205 | height: 38px; 206 | } 207 | 208 | .homepage_bottam_box_twoImage_part_items { 209 | display: grid; 210 | grid-template-columns: repeat(2, 1fr); 211 | gap: 20px; 212 | padding: 10px 15px; 213 | } 214 | 215 | .homepage_bottam_box_twoImage_part_items>img { 216 | width: 100%; 217 | cursor: pointer; 218 | } 219 | 220 | .homepage_bottam_box_twoImagebyRound_part_items { 221 | display: grid; 222 | grid-template-columns: repeat(2, 1fr); 223 | gap: 20px; 224 | padding: 10px 15px; 225 | } 226 | 227 | .homepage_bottam_box_twoImagebyRound_part_items>div { 228 | width: 100%; 229 | border-radius: 12px; 230 | overflow: hidden; 231 | cursor: pointer; 232 | } 233 | 234 | .homepage_bottam_box_twoImagebyRound_part_items>div>img { 235 | width: 100%; 236 | transition: all 0.2s ease-out; 237 | } 238 | 239 | .homepage_bottam_box_twoImagebyRound_part_items>div>img:hover { 240 | transform: scale(1.1, 1.1); 241 | transition: all 0.3s ease-in-out; 242 | } 243 | 244 | #homepage_OffersonGroceriesallproduct_part .homepage_boxwithhad_part_items>div { 245 | background-color: #007bff57 !important; 246 | } 247 | 248 | #homepage_OffersonHousehold_Personalcareallproduct_part .homepage_boxwithhad_part_items>div { 249 | background-color: #c8f9c2 !important; 250 | } 251 | 252 | .homepage_bottam_box_fiveImagebyRound_part_items { 253 | display: grid; 254 | grid-template-columns: repeat(5, 1fr); 255 | gap: 20px; 256 | padding: 10px 15px; 257 | } 258 | 259 | .homepage_bottam_box_fiveImagebyRound_part_items>div { 260 | width: 100%; 261 | border-radius: 12px; 262 | overflow: hidden; 263 | cursor: pointer; 264 | } 265 | 266 | .homepage_bottam_box_fiveImagebyRound_part_items>div>img { 267 | width: 100%; 268 | transition: all 0.2s ease-out; 269 | } 270 | 271 | .homepage_bottam_box_fiveImagebyRound_part_items>div>img:hover { 272 | transform: scale(1.05, 1.05); 273 | transition: all 0.3s ease-in-out; 274 | } 275 | 276 | #homepage_Shopbycategorieso_part { 277 | margin-top: 25px; 278 | } 279 | 280 | .homepage_sliderLiftRightarrow_images_container { 281 | position: absolute; 282 | width: 100%; 283 | display: flex; 284 | justify-content: space-between; 285 | background: antiquewhite; 286 | top: 50%; 287 | height: 0; 288 | } 289 | 290 | .homepage_sliderLiftRightarrow_images_container .prev { 291 | background-image: url(https://www.jiomart.com/assets/version1659035733/smartweb/images/icons/left_arrow.svg); 292 | } 293 | 294 | .homepage_sliderLiftRightarrow_images_container .next { 295 | background-image: url(https://www.jiomart.com/assets/version1659035733/smartweb/images/icons/right_arrow.svg); 296 | } 297 | 298 | .homepage_sliderLiftRightarrow_images_container .prev, 299 | .homepage_sliderLiftRightarrow_images_container .next { 300 | cursor: pointer; 301 | position: absolute; 302 | top: 50%; 303 | width: 50px; 304 | height: 50px; 305 | background-size: 100%; 306 | background-repeat: no-repeat; 307 | } 308 | 309 | .homepage_sliderLiftRightarrow_images_container .next { 310 | right: 0; 311 | border-radius: 3px 0 0 3px; 312 | } 313 | 314 | .homepage_Shopbycategorieso_part_iteams { 315 | display: grid; 316 | grid-template-columns: repeat(8, 18%); 317 | overflow-x: auto; 318 | height: auto; 319 | margin: 0 50px; 320 | gap: 25px; 321 | } 322 | 323 | .homepage_Shopbycategorieso_part_iteams::-webkit-scrollbar { 324 | display: none; 325 | } 326 | 327 | .homepage_Shopbycategorieso_part_iteams>div { 328 | display: flex; 329 | flex-direction: column; 330 | align-items: center; 331 | justify-content: center; 332 | width: 100%; 333 | height: 200px; 334 | cursor: pointer; 335 | background: #fff; 336 | border: 1px solid rgba(111, 114, 132, .25); 337 | border-radius: 12px; 338 | } 339 | 340 | .homepage_Shopbycategorieso_part_iteams>div>img { 341 | width: 55%; 342 | transition: all 0.2s ease-out; 343 | } 344 | 345 | .homepage_Shopbycategorieso_part_iteams>div:hover>img { 346 | transform: scale(1.2, 1.2); 347 | transition: all 0.3s ease-in-out; 348 | } 349 | 350 | .homepage_Shopbycategorieso_part_iteams>div>p { 351 | margin: 10px 0; 352 | text-align: center; 353 | display: block; 354 | font-size: 16px; 355 | font-weight: 700; 356 | font-family: JioBold; 357 | color: #000; 358 | overflow: hidden; 359 | } 360 | 361 | .homepage_top_Shop_from_Top_Categories_part_iteams { 362 | display: flex; 363 | overflow-x: auto; 364 | height: auto; 365 | margin: 0 50px; 366 | gap: 25px; 367 | } 368 | 369 | .homepage_top_Shop_from_Top_Categories_part_iteams::-webkit-scrollbar { 370 | display: none; 371 | } 372 | 373 | .homepage_top_Shop_from_Top_Categories_part_iteams>img { 374 | width: 100%; 375 | transition: all 0.2s ease-out; 376 | } 377 | 378 | .homepage_top_Shop_from_Top_Categories_part_iteams>img:hover { 379 | transform: scale(1.05, 1.05); 380 | transition: all 0.3s ease-in-out; 381 | } 382 | 383 | .homepage_TopDeals_part_all_category_iteams { 384 | display: flex; 385 | overflow-x: auto; 386 | height: auto; 387 | margin: 0 50px; 388 | gap: 15px; 389 | position: relative; 390 | } 391 | 392 | .homepage_TopDeals_part_all_category_iteams::-webkit-scrollbar { 393 | display: none; 394 | } 395 | 396 | .homepage_TopDeals_part_all_category_iteams>div { 397 | background: #ffff; 398 | border: 1px solid rgba(111, 114, 132, .25); 399 | border-radius: 5px; 400 | display: flex; 401 | flex-direction: column; 402 | align-items: center; 403 | cursor: pointer; 404 | } 405 | 406 | .homepage_TopDeals_part_all_category_iteams>div>div:first-child { 407 | width: 205px; 408 | display: flex; 409 | justify-content: space-between; 410 | padding: 5px; 411 | position: absolute; 412 | z-index: 1; 413 | } 414 | 415 | .homepage_TopDeals_part_all_category_iteams>div>div>.homepage_TopDeals_part_dis_section{ 416 | background-image: url(https://www.jiomart.com/assets/version1659035733/smartweb/images/icons/offer_bg.svg); 417 | background-size: 100%; 418 | background-repeat: no-repeat; 419 | height: 45px; 420 | width: 45px; 421 | font-size: 10px; 422 | font-weight: 700; 423 | padding: 6px 0 0 11px; 424 | color: white; 425 | } 426 | 427 | .homepage_TopDeals_part_all_category_iteams>div>div>span:first-child>span { 428 | font-size: 12px; 429 | } 430 | 431 | .homepage_TopDeals_part_all_category_iteams .homepage_TopDeals_part_pro_detail { 432 | display: flex; 433 | flex-direction: column; 434 | align-items: center; 435 | height: 175px; 436 | width: 205px; 437 | z-index: 0; 438 | overflow: hidden; 439 | margin-top: 15px; 440 | } 441 | 442 | .homepage_TopDeals_part_all_category_iteams .homepage_TopDeals_part_pro_detail>img { 443 | width: 60%; 444 | transition: all 0.2s ease-out; 445 | } 446 | 447 | .homepage_TopDeals_part_all_category_iteams .homepage_TopDeals_part_pro_detail>img:hover { 448 | transform: scale(1.1, 1.1); 449 | transition: all 0.3s ease-in-out; 450 | } 451 | 452 | 453 | .homepage_TopDeals_part_all_category_iteams .homepage_TopDeals_part_pro_detail>p { 454 | font-size: 14px; 455 | font-family: JioBold; 456 | line-height: 16px; 457 | text-align: left; 458 | letter-spacing: .01px; 459 | color: #000; 460 | display: block; 461 | max-height: 101px; 462 | margin: 0 0 8px; 463 | overflow: hidden; 464 | min-height: 32px; 465 | z-index: 1; 466 | padding: 10px; 467 | padding-bottom: 0; 468 | font-weight: 600; 469 | } 470 | 471 | .homepage_TopDeals_part_all_category_iteams .homepage_TopDeals_part_price_box { 472 | width: 100%; 473 | padding: 0 5px; 474 | } 475 | 476 | .homepage_TopDeals_part_all_category_iteams .homepage_TopDeals_part_price_box>p:first-child { 477 | font-size: 20px; 478 | font-weight: 700; 479 | } 480 | 481 | .homepage_TopDeals_part_all_category_iteams .homepage_TopDeals_part_price_box>p:last-child { 482 | color: #00a100; 483 | font-family: JioMedium; 484 | font-size: 14px; 485 | margin-top: 2px; 486 | } 487 | 488 | #homepage_TopDeals_part_Addtocart_btn { 489 | width: 100%; 490 | padding: 10px; 491 | 492 | } 493 | 494 | #homepage_TopDeals_part_Addtocart_btn>button { 495 | background: #008ecc; 496 | width: 100%; 497 | font-size: 14px; 498 | border-radius: 4px; 499 | padding: 0 8px 0 16px; 500 | border: 0; 501 | color: #fff; 502 | font-family: JioMedium; 503 | cursor: pointer; 504 | display: flex; 505 | align-items: center; 506 | justify-content: space-around; 507 | line-height: 32px; 508 | } 509 | #homepage_TopDeals_part_Addtocart_btn>button>.qty_minus { 510 | width: 24px; 511 | height: 24px; 512 | border-radius: 50%; 513 | background: rgba(255, 255, 255, .1) url(https://www.jiomart.com/assets/version1659035733/smartweb/images/icons/minus-bulecolor.svg) center no-repeat; 514 | } 515 | #homepage_TopDeals_part_Addtocart_btn>button>.add_plus { 516 | width: 24px; 517 | height: 24px; 518 | border-radius: 50%; 519 | background: rgba(255, 255, 255, .1) url(https://www.jiomart.com/assets/version1659035733/smartweb/images/icons/add_plus.svg) center no-repeat; 520 | } 521 | 522 | 523 | #homepage_bank_and_paytm_add_part{ 524 | margin: 25px 0; 525 | } 526 | .homepage_bank_and_paytm_add_part_iteams { 527 | display: flex; 528 | overflow-x: auto; 529 | height: auto; 530 | margin: 0 50px; 531 | gap: 15px; 532 | } 533 | 534 | .homepage_bank_and_paytm_add_part_iteams::-webkit-scrollbar { 535 | display: none; 536 | } 537 | 538 | .homepage_bank_and_paytm_add_part_iteams>img { 539 | width: 50%; 540 | } 541 | 542 | /* @media (min-width: 320px) and (max-width: 1024px) { 543 | 544 | } */ 545 | -------------------------------------------------------------------------------- /assets/css/navbarfooter.css: -------------------------------------------------------------------------------- 1 | /* ================================CSS For Navbar ============================ */ 2 | #nav-dropdowns-section { 3 | width: 100%; 4 | height: 100vh; 5 | margin-top: 113px; 6 | top: 0; 7 | background-color: rgba(20, 125, 218, 0.787); 8 | z-index: 5; 9 | } 10 | 11 | a { 12 | cursor: pointer; 13 | } 14 | 15 | #navabar_section { 16 | width: 100%; 17 | display: flex; 18 | flex-direction: column; 19 | align-items: center; 20 | position: fixed; 21 | top: 0; 22 | /* overflow: hidden; */ 23 | z-index: 5; 24 | } 25 | 26 | #nav-top { 27 | width: 100%; 28 | display: flex; 29 | justify-content: space-around; 30 | align-items: center; 31 | height: 72px; 32 | background-color: #008ecc; 33 | color: white; 34 | min-width: 1230px; 35 | } 36 | 37 | #logosM { 38 | width: 200px; 39 | display: flex; 40 | align-items: center; 41 | justify-content: space-around; 42 | } 43 | 44 | #logosM img { 45 | width: 110px; 46 | } 47 | 48 | #logosM i { 49 | font-size: 30px; 50 | } 51 | 52 | #nav-top a { 53 | text-decoration: none; 54 | color: white; 55 | /* width: 30px; */ 56 | } 57 | 58 | #login-div { 59 | display: block; 60 | } 61 | 62 | #login-div i, 63 | #login-div span { 64 | font-size: 18px; 65 | margin: 0 2px; 66 | } 67 | 68 | #after_login_div { 69 | display: none; 70 | } 71 | 72 | #after_login_div a { 73 | display: flex; 74 | gap: 15px; 75 | } 76 | 77 | #after_login_div i { 78 | font-size: 32px; 79 | margin: 0 2px; 80 | } 81 | 82 | #after_login_div { 83 | font-size: 22px; 84 | 85 | } 86 | 87 | #cart-div { 88 | position: relative; 89 | } 90 | 91 | /* #cart-div>div{ 92 | position: relative; 93 | } 94 | #cart-div>div p{ 95 | margin: 0; 96 | } */ 97 | #cart-div:hover .cartpopup_container { 98 | display: block; 99 | } 100 | 101 | #cart-div .cartpopup_container .mc_title { 102 | display: flex; 103 | justify-content: space-between; 104 | padding: 10px; 105 | } 106 | 107 | #cart-div .cartpopup_container .mc_title h2 { 108 | text-transform: uppercase; 109 | } 110 | 111 | #cart-div .cartpopup_container .cartpopup_items .mc_item { 112 | display: flex; 113 | justify-content: space-between; 114 | padding: 10px; 115 | } 116 | 117 | #cart-div .cartpopup_container .mc_footer { 118 | display: flex; 119 | justify-content: space-between; 120 | padding: 10px; 121 | } 122 | 123 | #cart-div .cartpopup_container .mc_footer .mc_price .mc_amount { 124 | font-size: 21px; 125 | font-weight: 700; 126 | } 127 | 128 | #cart-div .cartpopup_container .mc_footer .mc_price .mc_savings { 129 | color: #05b905; 130 | } 131 | 132 | #cart-div .cartpopup_container .mc_footer .mc_cartBtn { 133 | width: 200px; 134 | margin: 6px; 135 | border-radius: 5px; 136 | color: white; 137 | font-weight: 700; 138 | background: #008ecc; 139 | border: none; 140 | letter-spacing: 1.5px; 141 | } 142 | 143 | .cartpopup_container { 144 | color: black; 145 | display: none; 146 | position: absolute; 147 | width: 401px; 148 | height: auto; 149 | right: 5px; 150 | top: 51px; 151 | padding: 5px; 152 | background-color: rgb(255, 255, 255); 153 | z-index: 2; 154 | border-radius: 5px; 155 | box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px; 156 | } 157 | 158 | .cartpopup_container>.trishalCartcontainer { 159 | background: rgb(255, 255, 255); 160 | height: 21px; 161 | width: 21px; 162 | position: absolute !important; 163 | right: 21px; 164 | top: -9px !important; 165 | transform: rotate(45deg); 166 | } 167 | 168 | #cart-div>div>span { 169 | position: fixed; 170 | top: 0; 171 | } 172 | 173 | #cart-div a { 174 | position: relative; 175 | } 176 | 177 | #cart-div i, 178 | #cart-div span { 179 | font-size: 18px; 180 | margin: 0 2px; 181 | } 182 | 183 | #search-div { 184 | position: relative; 185 | display: flex; 186 | width: 60%; 187 | } 188 | 189 | #search_div_results { 190 | position: absolute; 191 | width: 100%; 192 | background-color: #ffffff; 193 | top: 37px; 194 | left: 0; 195 | border-radius: 7px; 196 | z-index: 1; 197 | height: 250px; 198 | padding: 10px; 199 | overflow: hidden; 200 | display: none; 201 | } 202 | 203 | #search_div_results>p { 204 | color: black; 205 | font-size: 21px; 206 | padding: 9px; 207 | border-bottom: 1px solid gray; 208 | cursor: pointer; 209 | } 210 | 211 | #search-div input { 212 | width: 100%; 213 | font-size: 17px; 214 | height: 30px; 215 | padding: 6px 20px; 216 | border-radius: 7px 0 0 7px; 217 | outline: none; 218 | border: none; 219 | } 220 | 221 | #search-div button { 222 | background-color: white; 223 | border: none; 224 | border-radius: 0 7px 7px 0; 225 | padding: 0 14px; 226 | } 227 | 228 | #countOfCart { 229 | background-color: red; 230 | padding: 1px 6px; 231 | border-radius: 80px; 232 | font-size: 12px !important; 233 | font-weight: bold; 234 | position: absolute; 235 | top: -10px; 236 | left: 5px 237 | } 238 | 239 | #slider_Menu_BTN { 240 | cursor: pointer; 241 | } 242 | 243 | #logosM { 244 | width: 200px; 245 | display: flex; 246 | align-items: center; 247 | justify-content: space-around; 248 | } 249 | 250 | #logosM img { 251 | width: 110px; 252 | } 253 | 254 | #logosM i { 255 | font-size: 30px; 256 | } 257 | 258 | #nav-top a { 259 | text-decoration: none; 260 | color: white; 261 | position: relative; 262 | } 263 | 264 | #login-div { 265 | display: block; 266 | } 267 | 268 | #login-div i, 269 | #login-div span { 270 | font-size: 18px; 271 | margin: 0 2px; 272 | } 273 | 274 | #after_login_div { 275 | display: none; 276 | } 277 | 278 | #after_login_div a { 279 | display: flex; 280 | gap: 15px; 281 | } 282 | 283 | #after_login_div i { 284 | font-size: 32px; 285 | margin: 0 2px; 286 | } 287 | 288 | #after_login_div { 289 | font-size: 22px; 290 | 291 | } 292 | 293 | #cart-div>div>span { 294 | position: fixed; 295 | top: 0; 296 | } 297 | 298 | #cart-div i, 299 | #cart-div span { 300 | font-size: 18px; 301 | margin: 0 2px; 302 | } 303 | 304 | #search-div { 305 | display: flex; 306 | width: 60%; 307 | } 308 | 309 | #search-div input { 310 | width: 100%; 311 | font-size: 17px; 312 | height: 30px; 313 | padding: 18px 20px; 314 | border-radius: 7px 0 0 7px; 315 | outline: none; 316 | border: none; 317 | } 318 | 319 | #search-div button { 320 | background-color: white; 321 | border: none; 322 | border-radius: 0 7px 7px 0; 323 | padding: 0 14px; 324 | } 325 | 326 | #countOfCart { 327 | background-color: red; 328 | padding: 1px 4px; 329 | border-radius: 80px; 330 | font-size: 10px !important; 331 | font-weight: bold; 332 | position: absolute; 333 | top: -9px; 334 | left: 9px; 335 | } 336 | 337 | #slider_Menu_BTN { 338 | cursor: pointer; 339 | } 340 | 341 | /*======================== CSS for bottom navbar ================================*/ 342 | 343 | #nav-bottom { 344 | width: 100%; 345 | height: 40px; 346 | background-color: #ececed; 347 | display: flex; 348 | justify-content: center; 349 | min-width: 1024px; 350 | 351 | } 352 | 353 | #nav-bottom-options { 354 | width: 95%; 355 | display: flex; 356 | justify-content: space-evenly; 357 | align-items: center; 358 | color: #767676; 359 | } 360 | 361 | #nav-bottom-options>div { 362 | will-change: 70px; 363 | height: 30px; 364 | /* background-color: rgb(252, 228, 198); */ 365 | display: flex; 366 | align-items: center; 367 | gap: 12px; 368 | } 369 | 370 | #nav-bottom-options h4 { 371 | color: black; 372 | font-size: 16px; 373 | } 374 | 375 | #nav-bottom-options a { 376 | text-decoration: none; 377 | } 378 | 379 | #nav-bottom-options>div i { 380 | font-size: 16px; 381 | transition: 0.5s; 382 | } 383 | 384 | #nav-bottom-options>div:hover i { 385 | transform: rotate(-180deg); 386 | } 387 | 388 | #nav-bottom-options>div:first-child:hover i { 389 | transform: rotate(0deg); 390 | } 391 | 392 | #location-option-div { 393 | cursor: pointer; 394 | } 395 | 396 | #location-option-div p { 397 | margin: 0; 398 | font-size: 14px; 399 | } 400 | 401 | #location-option-div>i { 402 | font-size: 27px !important; 403 | } 404 | 405 | #pincode { 406 | cursor: pointer; 407 | font-weight: bold; 408 | color: black; 409 | } 410 | 411 | /*========================CSS For Footer=========================================================*/ 412 | 413 | #footer_section { 414 | max-width: 1680px; 415 | min-width: 1024px; 416 | background-color: #ededef; 417 | bottom: 0; 418 | width: 100%; 419 | margin-top: 10px; 420 | } 421 | 422 | footer { 423 | /* display: flex; 424 | justify-content: space-around; */ 425 | font-size: 14px; 426 | display: grid; 427 | grid-template-columns: repeat(3, 1fr); 428 | gap: 25px; 429 | padding: 0 20px; 430 | } 431 | 432 | .ContactUs { 433 | padding: 0 8% 0 3%; 434 | border-left: 2px solid rgb(171, 167, 167); 435 | color: grey; 436 | margin-top: 10px; 437 | } 438 | 439 | .ContactUs>div>p { 440 | padding: 2px 0; 441 | } 442 | 443 | .ContactUs h3 { 444 | color: black; 445 | } 446 | 447 | .ContactUs img { 448 | width: 40%; 449 | } 450 | 451 | .ContactUs span { 452 | color: blue; 453 | } 454 | 455 | .ContactUs img { 456 | padding: 10px; 457 | } 458 | 459 | footer li { 460 | margin: 9px 0; 461 | list-style: none; 462 | } 463 | 464 | footer a { 465 | text-decoration: none; 466 | color: grey; 467 | } 468 | 469 | .copyright { 470 | display: flex; 471 | justify-content: space-around; 472 | align-items: center; 473 | margin-top: 50px; 474 | border-top: 1px solid rgb(159, 155, 155); 475 | font-size: 14px; 476 | color: rgb(24, 23, 23); 477 | padding: 5px 0; 478 | } 479 | 480 | 481 | /* ===========================Css For Dropdown ====================================*/ 482 | 483 | /* #nav-dropdowns-section { 484 | width: 100%; 485 | height: 100vh; 486 | position: fixed; 487 | margin-top: 113px; 488 | top: 0; 489 | display: none; 490 | background-color: rgba(20, 125, 218, 0.787); 491 | } */ 492 | 493 | /* =========================== Css For Dropdown ====================================*/ 494 | 495 | 496 | #nav-bottom ul { 497 | list-style: none; 498 | padding: 0; 499 | margin: 0; 500 | } 501 | 502 | #nav-bottom-options>div>div a { 503 | color: black; 504 | font-weight: 640; 505 | 506 | } 507 | 508 | #nav-bottom-options li:hover { 509 | background-color: white; 510 | } 511 | 512 | #nav-bottom-options li:hover a { 513 | color: #008ecc; 514 | } 515 | 516 | .navigation_submenu li { 517 | padding: 8px 12px; 518 | margin: 2px 1px; 519 | } 520 | 521 | #Groceries-option { 522 | position: relative; 523 | } 524 | 525 | #Groceries-dropdown { 526 | position: fixed; 527 | top: 112px; 528 | background: #ececed; 529 | display: none; 530 | width: 600px; 531 | } 532 | 533 | #Groceries-option:hover #Groceries-dropdown { 534 | display: block; 535 | } 536 | 537 | #Groceries-dropdown ul { 538 | height: auto; 539 | display: grid; 540 | grid-template-columns: repeat(2, 1fr); 541 | } 542 | 543 | #Groceries-dropdown ul li { 544 | width: 280px; 545 | } 546 | 547 | 548 | #premiumfruits-option { 549 | position: relative; 550 | } 551 | 552 | #premiumfruits-dropdown { 553 | position: fixed; 554 | top: 112px; 555 | background: #ececed; 556 | display: none; 557 | width: 600px; 558 | } 559 | 560 | #premiumfruits-option:hover #premiumfruits-dropdown { 561 | display: block; 562 | } 563 | 564 | #premiumfruits-dropdown ul { 565 | height: auto; 566 | display: grid; 567 | grid-template-columns: repeat(2, 1fr); 568 | } 569 | 570 | #premiumfruits-dropdown ul li { 571 | width: 280px; 572 | } 573 | 574 | #homekitchen-option { 575 | position: relative; 576 | } 577 | 578 | #homekitchen-dropdown { 579 | position: fixed; 580 | top: 112px; 581 | background: #ececed; 582 | display: none; 583 | width: 600px; 584 | } 585 | 586 | #homekitchen-dropdown ul { 587 | height: auto; 588 | display: grid; 589 | grid-template-columns: repeat(2, 1fr); 590 | } 591 | 592 | #homekitchen-dropdown ul li { 593 | width: 280px; 594 | } 595 | 596 | #homekitchen-option:hover #homekitchen-dropdown { 597 | display: block; 598 | } 599 | 600 | #fashion-option { 601 | position: relative; 602 | } 603 | 604 | #fashion-dropdown { 605 | position: fixed; 606 | top: 112px; 607 | background: #ececed; 608 | display: none; 609 | width: 300px; 610 | } 611 | 612 | #fashion-option:hover #fashion-dropdown { 613 | display: block; 614 | } 615 | 616 | #electronics-option { 617 | position: relative; 618 | } 619 | 620 | #electronics-dropdown { 621 | position: fixed; 622 | top: 112px; 623 | background: #ececed; 624 | display: none; 625 | width: 300px; 626 | } 627 | 628 | #electronics-option:hover #electronics-dropdown { 629 | display: block; 630 | } 631 | 632 | #beauty-option { 633 | position: relative; 634 | } 635 | 636 | #beauty-dropdown { 637 | position: fixed; 638 | top: 112px; 639 | background: #ececed; 640 | display: none; 641 | width: 300px; 642 | } 643 | 644 | #beauty-option:hover #beauty-dropdown { 645 | display: block; 646 | } 647 | 648 | #jwellery-option { 649 | position: relative; 650 | } 651 | 652 | #jwellery-dropdown { 653 | position: fixed; 654 | top: 112px; 655 | background: #ececed; 656 | display: none; 657 | width: 300px; 658 | } 659 | 660 | #jwellery-option:hover #jwellery-dropdown { 661 | display: block; 662 | } 663 | 664 | 665 | /*======================= CSS for location popup ===============================*/ 666 | 667 | #location_popup_section { 668 | position: fixed; 669 | top: 0; 670 | width: 100%; 671 | height: 100vh; 672 | background-color: #4d4d4d77; 673 | display: none; 674 | z-index: 5; 675 | } 676 | 677 | #location_popup { 678 | width: 100%; 679 | height: 100vh; 680 | position: relative; 681 | } 682 | 683 | #location_popup_div { 684 | width: 350px; 685 | min-height: 325px; 686 | max-height: 450px; 687 | background-color: white; 688 | border-radius: 13px; 689 | position: absolute; 690 | top: 120px; 691 | left: 5.5%; 692 | } 693 | 694 | .triangle { 695 | height: 15px; 696 | width: 20px; 697 | background-color: white; 698 | transform: rotate(45deg); 699 | position: absolute; 700 | top: 115px; 701 | left: 7%; 702 | } 703 | 704 | /* Inner Content */ 705 | 706 | #location_popup { 707 | z-index: 1; 708 | } 709 | 710 | #location_popup_div { 711 | padding: 20px; 712 | z-index: 0; 713 | } 714 | 715 | .location_close_btn { 716 | text-align: right; 717 | font-weight: bold; 718 | font-size: 35px; 719 | margin: 0; 720 | cursor: pointer; 721 | margin-left: 30px; 722 | margin-bottom: 20px; 723 | z-index: 1; 724 | } 725 | 726 | .whereDoYouwant { 727 | display: block; 728 | margin-top: 0; 729 | display: flex; 730 | margin: 0; 731 | } 732 | 733 | .where_address_div h5 { 734 | margin-top: 0; 735 | } 736 | 737 | .location_close_btn:hover { 738 | color: red; 739 | } 740 | 741 | .location_popup_lower { 742 | bottom: 0; 743 | border-top: 5px solid #c0bcbc; 744 | } 745 | 746 | .location_popup_lower>h3, 747 | .location_popup_lower>h5 { 748 | margin: 5px; 749 | } 750 | 751 | .enter_pincode_div { 752 | display: flex; 753 | margin-top: 10px; 754 | /* align-items: center; */ 755 | 756 | } 757 | 758 | .enter_pincode_div>input { 759 | width: 80%; 760 | padding: 5px 10px; 761 | border: none; 762 | border-bottom: 2px solid #7f7f7f; 763 | font-size: 17px; 764 | outline: none; 765 | 766 | } 767 | 768 | .enter_pincode_div>button { 769 | background-color: white; 770 | border: none; 771 | border-bottom: 2px solid #7f7f7f; 772 | font-size: 17px; 773 | color: rgb(194, 5, 5); 774 | font-weight: bold; 775 | } 776 | 777 | .enter_pincode_div>i { 778 | font-size: 22px; 779 | margin-top: 4px; 780 | margin-right: 4px; 781 | color: #7f7f7f; 782 | } 783 | 784 | .detect_loc_mark { 785 | width: 70%; 786 | display: flex; 787 | align-items: center; 788 | color: rgb(194, 5, 5); 789 | gap: 20px; 790 | } 791 | 792 | .my_address_div { 793 | width: 170px; 794 | height: 170px; 795 | background-color: #008ecc; 796 | padding: 0 5px; 797 | border-radius: 12px; 798 | color: white; 799 | margin-bottom: 20px; 800 | /* display: none; */ 801 | } 802 | 803 | .my_address_div * { 804 | margin: 0; 805 | padding: 5px; 806 | } 807 | 808 | .my_address_div button { 809 | background-color: #1eafee; 810 | color: white; 811 | border: none; 812 | border-radius: 5px; 813 | } 814 | 815 | .where_address_div { 816 | padding: 0 5px; 817 | margin-bottom: 20px; 818 | /* display: none; */ 819 | } 820 | 821 | .where_address_div>button { 822 | width: 90%; 823 | padding: 8px; 824 | border-radius: 5px; 825 | color: white; 826 | border: none; 827 | font-size: 17px; 828 | background-color: #008ecc; 829 | } 830 | 831 | #location_popup { 832 | z-index: 2; 833 | } 834 | 835 | #locationToBeShown { 836 | margin-left: 20px; 837 | font-size: 14px; 838 | color: #05b905; 839 | } 840 | 841 | /* ================= CSS For Slider Menu ========================================*/ 842 | 843 | #slide_menu_slider_section { 844 | width: 0px; 845 | height: 100vh; 846 | position: fixed; 847 | top: 0; 848 | background-color: rgba(0, 0, 0, 0.389); 849 | display: none; 850 | transition: 1s; 851 | z-index: 5; 852 | } 853 | 854 | #slide_menu_slider { 855 | width: 23%; 856 | height: 100vh; 857 | display: flex; 858 | flex-direction: column; 859 | background-color: #ececed; 860 | } 861 | 862 | .HelloName { 863 | height: 110px; 864 | background-color: rgb(0 142 204); 865 | padding: 5px 20px; 866 | color: white; 867 | } 868 | 869 | .OnlyHelloName { 870 | display: flex; 871 | align-items: center; 872 | justify-content: space-between; 873 | } 874 | 875 | .OnlyHelloName i { 876 | font-size: 25px; 877 | } 878 | 879 | .OnlyHelloName>div { 880 | display: flex; 881 | align-items: center; 882 | gap: 10px; 883 | } 884 | 885 | #CloseSlideMenuSlider { 886 | font-size: 30px; 887 | /* font-weight: bolder; */ 888 | margin: 0; 889 | cursor: pointer; 890 | } 891 | 892 | #CloseSlideMenuSlider:hover { 893 | color: rgb(197, 205, 217); 894 | } 895 | 896 | .HelloNameBtns { 897 | display: flex; 898 | justify-content: space-around; 899 | } 900 | 901 | .HelloNameBtns a { 902 | width: 49%; 903 | padding: 8px; 904 | font-size: 17px; 905 | text-decoration: none; 906 | text-align: center; 907 | background-color: #008ecc; 908 | border: 1px solid white; 909 | color: white; 910 | font-weight: 600; 911 | margin: 5px; 912 | border-radius: 5px; 913 | } 914 | 915 | .HelloNameBtns a:hover { 916 | background-color: white; 917 | color: #008ecc; 918 | } 919 | 920 | .Slider_Content_Option { 921 | height: 75vh; 922 | overflow-y: scroll; 923 | } 924 | 925 | .Slider_Content_Option ul { 926 | list-style: none; 927 | background-color: white; 928 | margin: 2px 0 20px 0; 929 | padding: 0; 930 | } 931 | 932 | .Slider_Content_Option li { 933 | padding: 10px 20px; 934 | margin: 0; 935 | } 936 | 937 | .Slider_Content_Option li a { 938 | text-decoration: none; 939 | color: black; 940 | 941 | } 942 | 943 | .Slider_Content_Option li:hover { 944 | background-color: #7f7f7f; 945 | } 946 | 947 | .ContactUsinsideSlider { 948 | padding: 10px; 949 | background-color: white; 950 | } 951 | 952 | .ContactUsinsideSlider>div>p { 953 | padding: 2px 0; 954 | } 955 | 956 | .ContactUsinsideSliderImg { 957 | display: flex; 958 | } 959 | 960 | .ContactUsinsideSliderImg img { 961 | width: 120px !important; 962 | margin: 10px 5px 10px 5px; 963 | } 964 | 965 | .ContactUsinsideSlider span { 966 | color: blue; 967 | } 968 | 969 | .slider_home_option li:hover { 970 | background-color: #008ecc; 971 | 972 | } 973 | 974 | .slider_home_option li:hover a { 975 | color: white; 976 | } -------------------------------------------------------------------------------- /assets/js/navbar.js: -------------------------------------------------------------------------------- 1 | shownavbar(); 2 | function shownavbar() { 3 | document.getElementById("navabar_section").innerHTML = ` 4 | 5 | 6 | 61 | 62 | 63 | 64 | 369 | `; 370 | document.getElementById("location_popup_section").innerHTML = ` 371 |
372 |
373 |
374 |
375 |
376 |

Where do you want the delivery?

377 | X 378 |
379 | 380 | 381 |
382 |
Get access to your Addresses, Orders, and Wishlist
383 | 384 |
385 | 386 | 396 | 397 |
398 |

Or Enter Pincode

399 |
Select pincode to see product availability.
400 |
401 | 402 | 403 | 404 |
405 | 406 |
407 | 408 |

DETECT MY LOCATION

409 |
410 | 411 |
412 | 413 |
414 | 415 |
416 | `; 417 | 418 | document.getElementById("slide_menu_slider_section").innerHTML = ` 419 |
420 | 421 |
422 |
423 |
424 | 425 |

Hello

426 |

User

427 |
428 |

X

429 |
430 | 431 |
432 | Account 433 | Orders 434 |
435 |
436 | 437 |
438 |
439 | 465 | 466 | 481 |
482 | 483 | 484 |
485 |
486 |

CONTACT US

487 |

WhatsApp us : 70003 70003

488 |

Call Us : 1800 890 1222

489 |

490 | Please note that you are accessing the BETA Version of 491 | www.jiomart.com 492 |

493 |

494 | Should you encounter any bugs, glitches, lack of functionality, 495 | delayed deliveries, billing errors or other problems on the beta 496 | website, please email us on cs@jiomart.com 497 |

498 |
499 |
500 |

DOWNLOAD APP

501 |
502 | 505 | 508 |
509 |
510 |
511 | 512 | 513 |
514 | 515 |
516 | `; 517 | 518 | document.getElementById("footer_section").innerHTML = ` 519 |
520 | 549 | 550 | 573 | 574 |
575 |
576 |

CONTACT US

577 |

WhatsApp us : 70003 70003

578 |

Call Us : 1800 890 1222

579 |

580 | Please note that you are accessing the BETA Version of 581 | www.jiomart.com 582 |

583 |

584 | Should you encounter any bugs, glitches, lack of functionality, 585 | delayed deliveries, billing errors or other problems on the beta 586 | website, please email us on cs@jiomart.com 587 |

588 |
589 |
590 |

DOWNLOAD APP

591 |
592 | 595 | 598 |
599 |
600 |
601 |
602 | 609 | `; 610 | } 611 | 612 | //// ============== Check Login or not ===================================== /// 613 | 614 | // setInterval(function () { 615 | // if (false) { 616 | // document.getElementById("where_address_div").style.display = "none"; 617 | // document.getElementById("my_address_div").style.display = "block"; 618 | // } else { 619 | // document.getElementById("where_address_div").style.display = "block"; 620 | // document.getElementById("my_address_div").style.display = "none"; 621 | // } 622 | // }, 200); 623 | 624 | ///============== JS FOR LOCATION POPUP =================== \\ 625 | 626 | function ShowlocationPopup() { 627 | document.getElementById("location_popup_section").style.display = "block"; 628 | } 629 | 630 | function HidelocationPopup() { 631 | document.getElementById("location_popup_section").style.display = "none"; 632 | } 633 | 634 | ///============== JS FOR Slider Menu =================== \\ 635 | 636 | function ShowSideSliderMenu() { 637 | document.getElementById("slide_menu_slider_section").style.display = "block"; 638 | document.getElementById("slide_menu_slider_section").style.width = "100%"; 639 | } 640 | 641 | function CloseSlideMenuSlider() { 642 | document.getElementById("slide_menu_slider_section").style.display = "none"; 643 | } 644 | 645 | document 646 | .getElementById("pincodeFromPopUp") 647 | .addEventListener("keyup", getLocation); 648 | let pincodeSpan = document.getElementById("locationToBeShown"); 649 | 650 | async function getLocation(e) { 651 | try { 652 | let pincode = document.getElementById("pincodeFromPopUp"); 653 | if (pincode.value.length == 6) { 654 | let res = await fetch( 655 | `https://api.postalpincode.in/pincode/${pincode.value}` 656 | ); 657 | let data = await res.json(); 658 | 659 | DisplayPinCode(data[0]); 660 | } 661 | } catch (error) { 662 | console.log(error); 663 | } 664 | } 665 | 666 | function DisplayPinCode(data) { 667 | pincodeSpan.innerText = ""; 668 | if (data.PostOffice) { 669 | let LocationOfPin = data.PostOffice[0]; 670 | pincodeSpan.innerText = `${LocationOfPin.District}, ${LocationOfPin.State}`; 671 | } else { 672 | pincodeSpan.innerText = data.Message; 673 | } 674 | } 675 | 676 | function pincodeFromPopUpUpdatevaleinlocal() { 677 | localStorage.setItem( 678 | "userpincodelocal", 679 | document.getElementById("pincodeFromPopUp").value 680 | ); 681 | document.getElementById("pincode").innerText = 682 | document.getElementById("pincodeFromPopUp").value; 683 | HidelocationPopup(); 684 | } 685 | document.getElementById("pincode").innerText = 686 | localStorage.getItem("userpincodelocal"); 687 | if (document.getElementById("pincode").innerText == "") { 688 | document.getElementById("pincode").innerText = "302034"; 689 | } 690 | 691 | checkuserdata(); 692 | async function checkuserdata() { 693 | try { 694 | let userndata = localStorage.getItem("userNumberOndata"); 695 | let res = await fetch( 696 | `https://jsonserver-twny.onrender.com/jiomartuserdata?user_number=${userndata}` 697 | ); 698 | let data = await res.json(); 699 | if (data.length == 1) { 700 | document.getElementById("login-div").style.display = "none"; 701 | document.getElementById("after_login_div").style.display = "block"; 702 | document.getElementById("where_address_div").style.display = "none"; 703 | // document.getElementById("my_address_div").style.display = "block"; 704 | 705 | document.getElementById("yourNameAfterLogin_in_navbar").innerHTML = 706 | data[0].user_fname || "User"; 707 | document.getElementById("nameshowAfterLoginSlidebar").innerHTML = 708 | data[0].user_fname || "User"; 709 | } else { 710 | document.getElementById("login-div").style.display = "block"; 711 | document.getElementById("after_login_div").style.display = "none"; 712 | document.getElementById("where_address_div").style.display = "block"; 713 | // document.getElementById("my_address_div").style.display = "none"; 714 | localStorage.setItem("jiomartUserNotLogin", false); 715 | } 716 | } catch (error) { 717 | console.log(error); 718 | } 719 | } 720 | 721 | function showAllProductsInNewPage(val) { 722 | console.log(val); 723 | localStorage.setItem("productsCategory", val); 724 | window.open("./showallproduct.html", "_Self"); 725 | } 726 | 727 | document 728 | .getElementById("search") 729 | .addEventListener("keyup", searchDivResultsInAll); 730 | 731 | async function searchDivResultsInAll() { 732 | try { 733 | document.getElementById("search_div_results").style.display = "block"; 734 | let val = document.getElementById("search").value; 735 | document.getElementById("search_div_results").innerHTML = ""; 736 | let res = await fetch( 737 | `https://jsonserver-twny.onrender.com/items?item_name_like=${val}` 738 | ); 739 | console.log( 740 | `https://jsonserver-twny.onrender.com/items?item_name_like=${val}` 741 | ); 742 | let data = await res.json(); 743 | let as = 5; 744 | if (data.length < 5) { 745 | as = data.length; 746 | } 747 | for (let i = 0; i < as; i++) { 748 | let p = document.createElement("p"); 749 | p.addEventListener("click", () => { 750 | localStorage.setItem("selectProductIdandshowDetails", data[i].id); 751 | window.open("./productView.html", "_Self"); 752 | }); 753 | p.innerHTML = `${data[i].item_name.slice(0, 50)}...`; 754 | document.getElementById("search_div_results").append(p); 755 | } 756 | setTimeout(() => { 757 | document.getElementById("search_div_results").style.display = "none"; 758 | }, 5000); 759 | } catch (error) { 760 | console.log(error); 761 | } 762 | } 763 | document.getElementById("search_div_results").style.display = "none"; 764 | -------------------------------------------------------------------------------- /assets/js/index.js: -------------------------------------------------------------------------------- 1 | // Part - homepage body+++++++++++++++++++++++++++++++++++++++++++++++++ 2 | // Part - homepage body+++++++++++++++++++++++++++++++++++++++++++++++++ 3 | // Part - homepage body+++++++++++++++++++++++++++++++++++++++++++++++++ 4 | // Part - homepage body+++++++++++++++++++++++++++++++++++++++++++++++++ 5 | 6 | document.body.innerHTML = ` 7 | 8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | 31 | `; 32 | 33 | dishplayData(); 34 | dishplayData1(); 35 | async function dishplayData() { 36 | try { 37 | let res = await fetch("https://jsonserver-twny.onrender.com/homepageData"); 38 | let data = await res.json(); 39 | 40 | dishplayDatahompagecontant(data); 41 | } catch (error) { 42 | console.log(error); 43 | } 44 | } 45 | let slideIndex; 46 | function dishplayDatahompagecontant(itemsArryList) { 47 | // Part - homepage_topslider +++++++++++++++++++++++++++++++++++++++++++++++++ 48 | // Part - homepage_topslider +++++++++++++++++++++++++++++++++++++++++++++++++ 49 | // Part - homepage_topslider +++++++++++++++++++++++++++++++++++++++++++++++++ 50 | // Part - homepage_topslider +++++++++++++++++++++++++++++++++++++++++++++++++ 51 | let homepage_topslider = itemsArryList.homepage_topslider; 52 | siahplay_homepage_topslider(); 53 | function siahplay_homepage_topslider() { 54 | document.getElementById("homepage_top_slider_part").innerHTML = ` 55 |
56 |
57 | 58 | 59 |
60 |
61 |
62 | `; 63 | 64 | homepage_topslider.forEach((element, index) => { 65 | let div = document.createElement("div"); 66 | div.className = "homePage-topslideshow-image"; 67 | div.innerHTML = ` `; 68 | document 69 | .querySelector(".homePage-topslideshow-images-container") 70 | .append(div); 71 | let span = document.createElement("span"); 72 | span.className = "dot"; 73 | span.setAttribute("onclick", `currentSlide(${index + 1})`); 74 | document 75 | .querySelector(".homePage-topslideshow-dots-container") 76 | .append(span); 77 | }); 78 | } 79 | 80 | slideIndex = 1; 81 | showSlides(slideIndex); 82 | setInterval(() => { 83 | plusSlides(1); 84 | }, 5000); 85 | 86 | // Part - Adds +++++++++++++++++++++++++++++++++++++++++++++++++ 87 | // Part - Adds +++++++++++++++++++++++++++++++++++++++++++++++++ 88 | // Part - Adds +++++++++++++++++++++++++++++++++++++++++++++++++ 89 | // Part - Adds +++++++++++++++++++++++++++++++++++++++++++++++++ 90 | let homepage_top__part_all_categoryArray = itemsArryList.homepage01; 91 | homepage_top__part_all_categoryArray.forEach((element) => { 92 | let img = document.createElement("img"); 93 | img.src = element; 94 | document.getElementById("homepage_top__part_all_category").append(img); 95 | }); 96 | 97 | // Part - Shop_from_Top_Categories +++++++++++++++++++++++++++++++++++++++++++++++++ 98 | // Part - Shop_from_Top_Categories +++++++++++++++++++++++++++++++++++++++++++++++++ 99 | // Part - Shop_from_Top_Categories +++++++++++++++++++++++++++++++++++++++++++++++++ 100 | // Part - Shop_from_Top_Categories +++++++++++++++++++++++++++++++++++++++++++++++++ 101 | 102 | let homepage_top_Shop_from_Top_Categories_partArray = 103 | itemsArryList.Shop_from_Top_Categories; 104 | document.getElementById( 105 | "homepage_top_Shop_from_Top_Categories_part" 106 | ).innerHTML = ` 107 |

Shop from Top Categories

108 |
109 |
110 | 111 | 112 |
113 |
114 |
115 | `; 116 | homepage_top_Shop_from_Top_Categories_partArray.forEach((element) => { 117 | let img = document.createElement("img"); 118 | img.src = element; 119 | 120 | document 121 | .querySelector(".homepage_top_Shop_from_Top_Categories_part_iteams") 122 | .append(img); 123 | }); 124 | 125 | // Part - hollyday Add +++++++++++++++++++++++++++++++++++++++++++++++++ 126 | // Part - hollyday Add +++++++++++++++++++++++++++++++++++++++++++++++++ 127 | // Part - hollyday Add +++++++++++++++++++++++++++++++++++++++++++++++++ 128 | // Part - hollyday Add +++++++++++++++++++++++++++++++++++++++++++++++++ 129 | let homepage_top_hollyday_part_all_categoryArray = itemsArryList.homepage02; 130 | 131 | homepage_top_hollyday_part_all_categoryArray.forEach((element) => { 132 | let img = document.createElement("img"); 133 | img.src = element; 134 | document 135 | .getElementById("homepage_top_hollyday_part_all_category") 136 | .append(img); 137 | }); 138 | 139 | // Part - bank_and_paytm_add +++++++++++++++++++++++++++++++++++++++++++++++++ 140 | // Part - bank_and_paytm_add +++++++++++++++++++++++++++++++++++++++++++++++++ 141 | // Part - bank_and_paytm_add +++++++++++++++++++++++++++++++++++++++++++++++++ 142 | // Part - bank_and_paytm_add +++++++++++++++++++++++++++++++++++++++++++++++++ 143 | let homepage_bank_and_paytm_add_partArray = itemsArryList.homepage03; 144 | 145 | document.getElementById("homepage_bank_and_paytm_add_part").innerHTML = ` 146 |
147 |
148 | 149 | 150 |
151 |
152 |
153 | `; 154 | 155 | homepage_bank_and_paytm_add_partArray.forEach((element) => { 156 | let img = document.createElement("img"); 157 | img.src = element; 158 | 159 | document 160 | .querySelector(".homepage_bank_and_paytm_add_part_iteams") 161 | .append(img); 162 | }); 163 | setInterval(() => { 164 | homepage_bank_and_paytm_add_part_iteamsslide("right"); 165 | }, 5000); 166 | 167 | // Part - Offers on daily essentials +++++++++++++++++++++++++++++++++++++++++++++++++ 168 | // Part - Offers on daily essentials +++++++++++++++++++++++++++++++++++++++++++++++++ 169 | // Part - Offers on daily essentials +++++++++++++++++++++++++++++++++++++++++++++++++ 170 | // Part - Offers on daily essentials +++++++++++++++++++++++++++++++++++++++++++++++++ 171 | let homepage_Offersondailyessentials_part_itemsArray = 172 | itemsArryList.Offers_on_daily_essentials; 173 | document.getElementById("homepage_Offersondailyessentials_part").innerHTML = ` 174 |

Offers on daily essentials

175 |
176 | `; 177 | 178 | homepage_Offersondailyessentials_part_itemsArray.forEach((element) => { 179 | let div = document.createElement("div"); 180 | div.innerHTML = ` 181 | UP TO ${element.off_set} OFF 182 |
183 | 184 |

${element.name}

185 |
186 | `; 187 | document 188 | .querySelector(".homepage_Offersondailyessentials_part_items") 189 | .append(div); 190 | }); 191 | 192 | // Part - Shop by categories +++++++++++++++++++++++++++++++++++++++++++++++++ 193 | // Part - Shop by categories +++++++++++++++++++++++++++++++++++++++++++++++++ 194 | // Part - Shop by categories +++++++++++++++++++++++++++++++++++++++++++++++++ 195 | // Part - Shop by categories +++++++++++++++++++++++++++++++++++++++++++++++++ 196 | let homepage_Shopbycategorieso_partArray = itemsArryList.Shop_by_categories; 197 | 198 | document.getElementById("homepage_Shopbycategorieso_part").innerHTML = ` 199 |

Shop by categories

200 |
201 |
202 | 203 | 204 |
205 |
206 |
207 | `; 208 | 209 | homepage_Shopbycategorieso_partArray.forEach((element) => { 210 | let div = document.createElement("div"); 211 | div.innerHTML = ` 212 | 213 |

${element.name}

214 | `; 215 | 216 | document 217 | .querySelector(".homepage_Shopbycategorieso_part_iteams") 218 | .append(div); 219 | }); 220 | // Part - Women's Fashion two+++++++++++++++++++++++++++++++++++++++++++++++++ 221 | // Part - Women's Fashion two+++++++++++++++++++++++++++++++++++++++++++++++++ 222 | // Part - Women's Fashion two+++++++++++++++++++++++++++++++++++++++++++++++++ 223 | // Part - Women's Fashion two+++++++++++++++++++++++++++++++++++++++++++++++++ 224 | let homepage_WomensFashiontwo_partArray = itemsArryList.Women_s_Fashion; 225 | document.getElementById("homepage_WomensFashiontwo_part").innerHTML = ` 226 |
227 | `; 228 | homepage_WomensFashiontwo_partArray.forEach((element) => { 229 | let img = document.createElement("img"); 230 | img.src = element; 231 | let div = document.createElement("div"); 232 | div.append(img); 233 | document 234 | .querySelector(".homepage_WomensFashiontwo_part_iteams") 235 | .append(div); 236 | }); 237 | 238 | // Part - Women's Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 239 | // Part - Women's Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 240 | // Part - Women's Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 241 | // Part - Women's Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 242 | let homepage_WomensFashionallproduct_partArray = 243 | itemsArryList.Women_s_Fashion_items; 244 | document.getElementById("homepage_WomensFashionallproduct_part").innerHTML = ` 245 |
246 | `; 247 | homepage_WomensFashionallproduct_partArray.forEach((element) => { 248 | let img = document.createElement("img"); 249 | img.src = element; 250 | let div = document.createElement("div"); 251 | div.append(img); 252 | document 253 | .querySelector(".homepage_WomensFashionallproduct_part_iteams") 254 | .append(div); 255 | }); 256 | 257 | // Part - 05 +++++++++++++++++++++++++++++++++++++++++++++++++ 258 | // Part - 05 +++++++++++++++++++++++++++++++++++++++++++++++++ 259 | // Part - 05 +++++++++++++++++++++++++++++++++++++++++++++++++ 260 | // Part - 05 +++++++++++++++++++++++++++++++++++++++++++++++++ 261 | let homepage_OffersonPersonalcareallproduct_partArray = 262 | itemsArryList.homepage05; 263 | document.getElementById( 264 | "homepage_OffersonPersonalcareallproduct_part" 265 | ).innerHTML = ` 266 |
267 | `; 268 | homepage_OffersonPersonalcareallproduct_partArray.forEach((element) => { 269 | let img = document.createElement("img"); 270 | img.src = element; 271 | document 272 | .querySelector(".homepage_OffersonPersonalcareallproduct_part_iteams") 273 | .append(img); 274 | }); 275 | 276 | // Part - Offers_on_Household_Personal_care +++++++++++++++++++++++++++++++++++++++++++++++++ 277 | // Part - Offers_on_Household_Personal_care +++++++++++++++++++++++++++++++++++++++++++++++++ 278 | // Part - Offers_on_Household_Personal_care +++++++++++++++++++++++++++++++++++++++++++++++++ 279 | // Part - Offers_on_Household_Personal_care +++++++++++++++++++++++++++++++++++++++++++++++++ 280 | let homepage_OffersonHousehold_Personalcareallproduct_partArray = 281 | itemsArryList.Offers_on_Household_Personal_care; 282 | document.getElementById( 283 | "homepage_OffersonHousehold_Personalcareallproduct_part" 284 | ).innerHTML = ` 285 |

Offers on daily essentials

286 |
287 | `; 288 | 289 | homepage_OffersonHousehold_Personalcareallproduct_partArray.forEach( 290 | (element) => { 291 | let div = document.createElement("div"); 292 | div.innerHTML = ` 293 | UP TO ${element.off_set} OFF 294 |
295 | 296 |

${element.name}

297 |
298 | `; 299 | document 300 | .querySelector( 301 | ".homepage_OffersonHousehold_Personalcareallproduct_part_items" 302 | ) 303 | .append(div); 304 | } 305 | ); 306 | 307 | // Part - 06 +++++++++++++++++++++++++++++++++++++++++++++++++ 308 | // Part - 06 +++++++++++++++++++++++++++++++++++++++++++++++++ 309 | // Part - 06 +++++++++++++++++++++++++++++++++++++++++++++++++ 310 | // Part - 06 +++++++++++++++++++++++++++++++++++++++++++++++++ 311 | let homepage_OffersonHouseholdallproduct_partArray = itemsArryList.homepage06; 312 | document.getElementById( 313 | "homepage_OffersonHouseholdallproduct_part" 314 | ).innerHTML = ` 315 |
316 | `; 317 | homepage_OffersonHouseholdallproduct_partArray.forEach((element) => { 318 | let img = document.createElement("img"); 319 | img.src = element; 320 | document 321 | .querySelector(".homepage_OffersonHouseholdallproduct_part_iteams") 322 | .append(img); 323 | }); 324 | 325 | // Part - Offers_on_Groceries +++++++++++++++++++++++++++++++++++++++++++++++++ 326 | // Part - Offers_on_Groceries +++++++++++++++++++++++++++++++++++++++++++++++++ 327 | // Part - Offers_on_Groceries +++++++++++++++++++++++++++++++++++++++++++++++++ 328 | // Part - Offers_on_Groceries +++++++++++++++++++++++++++++++++++++++++++++++++ 329 | 330 | let homepage_OffersonGroceriesallproduct_partArray = 331 | itemsArryList.Offers_on_Groceries; 332 | 333 | document.getElementById( 334 | "homepage_OffersonGroceriesallproduct_part" 335 | ).innerHTML = ` 336 |

Offers on Groceries

337 |
338 | `; 339 | homepage_OffersonGroceriesallproduct_partArray.forEach((element) => { 340 | let div = document.createElement("div"); 341 | div.innerHTML = ` 342 | UP TO ${element.off_set} OFF 343 |
344 | 345 |

${element.name}

346 |
347 | `; 348 | document 349 | .querySelector(".homepage_OffersonGroceriesallproduct_part_items") 350 | .append(div); 351 | }); 352 | 353 | // Part - Hottest Deals +++++++++++++++++++++++++++++++++++++++++++++++++ 354 | // Part - Hottest Deals +++++++++++++++++++++++++++++++++++++++++++++++++ 355 | // Part - Hottest Deals +++++++++++++++++++++++++++++++++++++++++++++++++ 356 | // Part - Hottest Deals +++++++++++++++++++++++++++++++++++++++++++++++++ 357 | let homepage_HottestDealsallproduct_partArray = itemsArryList.Hottest_Deals; 358 | document.getElementById("homepage_HottestDealsallproduct_part").innerHTML = ` 359 |

Hottest Deals

360 |
361 | `; 362 | homepage_HottestDealsallproduct_partArray.forEach((element) => { 363 | let img = document.createElement("img"); 364 | img.src = element; 365 | let div = document.createElement("div"); 366 | div.append(img); 367 | document 368 | .querySelector(".homepage_HottestDealsallproduct_part_iteams") 369 | .append(div); 370 | }); 371 | 372 | // Part - Kid's Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 373 | // Part - Kid's Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 374 | // Part - Kid's Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 375 | // Part - Kid's Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 376 | let homepage_KidsFashionallproduct_partArray = itemsArryList.Kid_s_Fashion; 377 | document.getElementById("homepage_KidsFashionallproduct_part").innerHTML = ` 378 |

Kid's Fashion

379 |
380 | `; 381 | homepage_KidsFashionallproduct_partArray.forEach((element) => { 382 | let img = document.createElement("img"); 383 | img.src = element; 384 | let div = document.createElement("div"); 385 | div.append(img); 386 | document 387 | .querySelector(".homepage_KidsFashionallproduct_part_iteams") 388 | .append(div); 389 | }); 390 | 391 | // Part - Men’s Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 392 | // Part - Men’s Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 393 | // Part - Men’s Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 394 | // Part - Men’s Fashion +++++++++++++++++++++++++++++++++++++++++++++++++ 395 | let homepage_MensFashiontwo_partArray = itemsArryList.Men_s_Fashion; 396 | document.getElementById("homepage_MensFashiontwo_part").innerHTML = ` 397 |

Men’s Fashion

398 |
399 | `; 400 | homepage_MensFashiontwo_partArray.forEach((element) => { 401 | let img = document.createElement("img"); 402 | img.src = element; 403 | let div = document.createElement("div"); 404 | div.append(img); 405 | document.querySelector(".homepage_MensFashiontwo_part_iteams").append(div); 406 | }); 407 | 408 | // Part - Men’s Fashion items+++++++++++++++++++++++++++++++++++++++++++++++++ 409 | // Part - Men’s Fashion items+++++++++++++++++++++++++++++++++++++++++++++++++ 410 | // Part - Men’s Fashion items+++++++++++++++++++++++++++++++++++++++++++++++++ 411 | // Part - Men’s Fashion items+++++++++++++++++++++++++++++++++++++++++++++++++ 412 | let homepage_MensFashionallproduct_partArray = 413 | itemsArryList.Men_s_Fashion_item; 414 | document.getElementById("homepage_MensFashionallproduct_part").innerHTML = ` 415 |
416 | `; 417 | homepage_MensFashionallproduct_partArray.forEach((element) => { 418 | let img = document.createElement("img"); 419 | img.src = element; 420 | let div = document.createElement("div"); 421 | div.append(img); 422 | document 423 | .querySelector(".homepage_MensFashionallproduct_part_iteams") 424 | .append(div); 425 | }); 426 | 427 | // Part - 08 +++++++++++++++++++++++++++++++++++++++++++++++++ 428 | // Part - 08 +++++++++++++++++++++++++++++++++++++++++++++++++ 429 | // Part - 08 +++++++++++++++++++++++++++++++++++++++++++++++++ 430 | // Part - 08 +++++++++++++++++++++++++++++++++++++++++++++++++ 431 | 432 | let homepage_homeCitiPart1_partArray = itemsArryList.homepage08; 433 | document.getElementById("homepage_homeCitiPart1_part").innerHTML = ` 434 |
435 | `; 436 | homepage_homeCitiPart1_partArray.forEach((element) => { 437 | let img = document.createElement("img"); 438 | img.src = element; 439 | document.querySelector(".homepage_homeCitiPart1_part_iteams").append(img); 440 | }); 441 | 442 | // Part - 09 +++++++++++++++++++++++++++++++++++++++++++++++++ 443 | // Part - 09 +++++++++++++++++++++++++++++++++++++++++++++++++ 444 | // Part - 09 +++++++++++++++++++++++++++++++++++++++++++++++++ 445 | // Part - 09 +++++++++++++++++++++++++++++++++++++++++++++++++ 446 | let homepage_homeCitiPart2_partArray = itemsArryList.homepage09; 447 | document.getElementById("homepage_homeCitiPart2_part").innerHTML = ` 448 |
449 | `; 450 | homepage_homeCitiPart2_partArray.forEach((element) => { 451 | let img = document.createElement("img"); 452 | img.src = element; 453 | document.querySelector(".homepage_homeCitiPart2_part_iteams").append(img); 454 | }); 455 | } 456 | 457 | function homepage_Shopbycategorieso_part_iteamsslide(direction) { 458 | var container = document.querySelector( 459 | ".homepage_Shopbycategorieso_part_iteams" 460 | ); 461 | 462 | scrollCompleted = 0; 463 | var slideVar = setInterval(function () { 464 | if (direction == "left") { 465 | container.scrollLeft -= 28; 466 | } else { 467 | container.scrollLeft += 28; 468 | } 469 | scrollCompleted += 10; 470 | if (scrollCompleted >= 100) { 471 | window.clearInterval(slideVar); 472 | } 473 | }, 50); 474 | } 475 | let homepage_bank_and_paytm_add_part_count = 0; 476 | function homepage_bank_and_paytm_add_part_iteamsslide(direction) { 477 | var container = document.querySelector( 478 | ".homepage_bank_and_paytm_add_part_iteams" 479 | ); 480 | 481 | homepage_bank_and_paytm_add_part_count++; 482 | if (homepage_bank_and_paytm_add_part_count == 4) { 483 | container.scrollLeft = 0; 484 | homepage_bank_and_paytm_add_part_count = 0; 485 | } 486 | scrollCompleted = 0; 487 | var slideVar = setInterval(function () { 488 | if (direction == "left") { 489 | container.scrollLeft -= 150; 490 | } else { 491 | container.scrollLeft += 150; 492 | } 493 | scrollCompleted += 10; 494 | if (scrollCompleted >= 100) { 495 | window.clearInterval(slideVar); 496 | } 497 | }, 50); 498 | } 499 | function homepage_top_Shop_from_Top_Categories_part_iteamsslide(direction) { 500 | var container = document.querySelector( 501 | ".homepage_top_Shop_from_Top_Categories_part_iteams" 502 | ); 503 | scrollCompleted = 0; 504 | var slideVar = setInterval(function () { 505 | if (direction == "left") { 506 | container.scrollLeft -= 28; 507 | } else { 508 | container.scrollLeft += 28; 509 | } 510 | scrollCompleted += 10; 511 | if (scrollCompleted >= 100) { 512 | window.clearInterval(slideVar); 513 | } 514 | }, 50); 515 | } 516 | function homepage_TopDeals_part_all_category_iteamsslide(direction) { 517 | var container = document.querySelector( 518 | ".homepage_TopDeals_part_all_category_iteams" 519 | ); 520 | 521 | scrollCompleted = 0; 522 | var slideVar = setInterval(function () { 523 | if (direction == "left") { 524 | container.scrollLeft -= 28; 525 | } else { 526 | container.scrollLeft += 28; 527 | } 528 | scrollCompleted += 10; 529 | if (scrollCompleted >= 100) { 530 | window.clearInterval(slideVar); 531 | } 532 | }, 50); 533 | } 534 | 535 | function plusSlides(n) { 536 | showSlides((slideIndex += n)); 537 | } 538 | 539 | function currentSlide(n) { 540 | showSlides((slideIndex = n)); 541 | } 542 | 543 | function showSlides(n) { 544 | let i; 545 | let slides = document.getElementsByClassName("homePage-topslideshow-image"); 546 | let dots = document.getElementsByClassName("dot"); 547 | if (n > slides.length) { 548 | slideIndex = 1; 549 | } 550 | if (n < 1) { 551 | slideIndex = slides.length; 552 | } 553 | for (i = 0; i < slides.length; i++) { 554 | slides[i].style.display = "none"; 555 | } 556 | for (i = 0; i < dots.length; i++) { 557 | dots[i].className = dots[i].className.replace(" active", ""); 558 | } 559 | slides[slideIndex - 1].style.display = "block"; 560 | dots[slideIndex - 1].className += " active"; 561 | } 562 | 563 | async function dishplayData1() { 564 | try { 565 | let res = await fetch( 566 | "https://jsonserver-twny.onrender.com/items?item_category=Top_Deals" 567 | ); 568 | let data = await res.json(); 569 | 570 | // Part - Top Deals +++++++++++++++++++++++++++++++++++++++++++++++++ 571 | // Part - Top Deals +++++++++++++++++++++++++++++++++++++++++++++++++ 572 | // Part - Top Deals +++++++++++++++++++++++++++++++++++++++++++++++++ 573 | // Part - Top Deals +++++++++++++++++++++++++++++++++++++++++++++++++ 574 | let homepage_TopDeals_part_all_categoryArray = data; 575 | 576 | document.getElementById("homepage_TopDeals_part_all_category").innerHTML = ` 577 |

Top Deals

578 |
579 |
580 | 581 | 582 |
583 |
584 |
585 | `; 586 | homepage_TopDeals_part_all_categoryArray.forEach((element) => { 587 | let buttonInt; 588 | if (element.item_quantity == 0) { 589 | buttonInt = ` `; 590 | } else { 591 | buttonInt = ` 592 | 593 | `; 594 | } 595 | let div = document.createElement("div"); 596 | div.innerHTML = ` 597 |
${ 598 | element.item_discount 599 | }%
off
600 |
603 | 606 |

${element.item_name.slice(0, 50)}

607 |
608 |
609 |

₹ ${element.item_final_price}.00

610 |

M.R.P: ₹ ${ 611 | element.item_price 612 | }.00

613 |

Save ₹ ${element.item_disc_price}.00

614 |
615 |
${buttonInt}
616 | `; 617 | 618 | document 619 | .querySelector(".homepage_TopDeals_part_all_category_iteams") 620 | .append(div); 621 | }); 622 | } catch (error) { 623 | console.log(error); 624 | } 625 | } 626 | --------------------------------------------------------------------------------