From ff7bb8720cd3615d8efecd79c9f3fec1d1de87f1 Mon Sep 17 00:00:00 2001 From: Aarav238 Date: Wed, 12 Oct 2022 15:04:16 +0530 Subject: [PATCH] Issue resolved --- account.html | 5 +++-- allproducts.html | 5 +++-- cart.html | 5 +++-- contact.html | 12 +++++++++++- index.html | 5 +++-- productdetail.html | 6 ++++-- style.css | 12 +++++++++++- 7 files changed, 38 insertions(+), 12 deletions(-) diff --git a/account.html b/account.html index 5a91c48..473648e 100644 --- a/account.html +++ b/account.html @@ -8,6 +8,7 @@ Account Details + @@ -36,7 +37,7 @@ - +
@@ -151,7 +152,7 @@

Follow Us

Indicator.style.transform = "translateX(0px)"; } const ball = document.querySelector(".toggle-ball"); - const items = document.querySelectorAll(".row,body,.container,.menu-icon,.navbar,.header,.toggle"); + const items = document.querySelectorAll(".row,body,.cartIcon,.container,.menu-icon,.navbar,.header,.toggle"); ball.addEventListener("click",()=>{ items.forEach(item=>{ diff --git a/allproducts.html b/allproducts.html index d206d29..9d90107 100644 --- a/allproducts.html +++ b/allproducts.html @@ -14,6 +14,7 @@ + @@ -39,7 +40,7 @@ - +
@@ -294,7 +295,7 @@

Follow Us

} } const ball = document.querySelector(".toggle-ball"); - const items = document.querySelectorAll(".row,body,.menu-icon,.container,.navbar,.header,.toggle"); + const items = document.querySelectorAll(".row,body,.cartIcon,.page-btn,.menu-icon,.container,.navbar,.header,.toggle"); ball.addEventListener("click",()=>{ items.forEach(item=>{ diff --git a/cart.html b/cart.html index 4bcac87..8867d79 100644 --- a/cart.html +++ b/cart.html @@ -12,6 +12,7 @@ href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet" /> + - +
@@ -250,7 +251,7 @@

Follow Us

renderItemsAndCosts(); } const ball = document.querySelector(".toggle-ball"); - const items = document.querySelectorAll(".row,body,.menu-icon,.container,.navbar,.header,.toggle"); + const items = document.querySelectorAll(".row,body,.cartIcon,.menu-icon,.container,.navbar,.header,.toggle"); ball.addEventListener("click",()=>{ items.forEach(item=>{ diff --git a/contact.html b/contact.html index c597a6b..bda0b02 100644 --- a/contact.html +++ b/contact.html @@ -12,6 +12,7 @@ + @@ -36,7 +37,7 @@ - + @@ -77,6 +78,15 @@

Contact Us

MenuItems.style.maxHeight = "0px"; } } + const ball = document.querySelector(".toggle-ball"); + const items = document.querySelectorAll(".row,body,.cartIcon,.menu-icon,.container,.navbar,.header,.toggle"); + ball.addEventListener("click",()=>{ + + items.forEach(item=>{ + item.classList.toggle("active") + }) + ball.classList.toggle("active") + }) diff --git a/index.html b/index.html index ef48e47..3383f8a 100644 --- a/index.html +++ b/index.html @@ -18,6 +18,7 @@ rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" /> + - +
@@ -505,7 +506,7 @@

Follow Us

const ball = document.querySelector(".toggle-ball"); - const items = document.querySelectorAll(".row,body,.menu-icon,.container,.navbar,.header,.toggle"); + const items = document.querySelectorAll(".row,body,.cartIcon,.menu-icon,.container,.navbar,.header,.toggle"); ball.addEventListener("click",()=>{ items.forEach(item=>{ diff --git a/productdetail.html b/productdetail.html index a517f9f..b3a65d2 100644 --- a/productdetail.html +++ b/productdetail.html @@ -7,12 +7,14 @@ Product Details + + - +
@@ -297,7 +299,7 @@

Follow Us

}; const ball = document.querySelector(".toggle-ball"); - const items = document.querySelectorAll(".row,body,.menu-icon,.container,.navbar,.header,.toggle"); + const items = document.querySelectorAll(".row,body,.cartIcon,.menu-icon,.container,.navbar,.header,.toggle"); ball.addEventListener("click",()=>{ items.forEach(item=>{ diff --git a/style.css b/style.css index e0dd9eb..88f6676 100644 --- a/style.css +++ b/style.css @@ -897,6 +897,7 @@ form a { transform: scaleX(1); } + /* HOVER ANIMATION */ /* #box:hover { @@ -1044,6 +1045,15 @@ body.active{ transform: translateX(-20px); + + +} + +.cartIcon.active{ + color: white; +} +.page-btn.active{ + color: white; } /*footer image mouse style to pointer*/ @@ -1058,4 +1068,4 @@ body.active{ .useful-links,.socialbtns{ color:#D3D3D3; } - +