From 5e83f5f90fb7656ae1fa08fb4269eae5eeeee347 Mon Sep 17 00:00:00 2001 From: sachinganesh Date: Fri, 28 Apr 2023 15:58:54 +0530 Subject: [PATCH] code added --- dist/Js/main.js | 9 ++++++--- dist/Js/navbar.js | 43 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 47 insertions(+), 5 deletions(-) diff --git a/dist/Js/main.js b/dist/Js/main.js index 7417074..bfc287c 100644 --- a/dist/Js/main.js +++ b/dist/Js/main.js @@ -11,7 +11,7 @@ } function naChanges(){ - $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#fff"); + $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#000"); } setTimeout(naChanges, 1000); win.on('scroll', function() { @@ -22,15 +22,18 @@ let img_src = `./dist/assets/imgs/anwi-logo-2.png`; $(".logo-menu-wrap").find("a img").attr("src",img_src); $(".main-menu").find("nav ul li a").addClass("text-white"); + debugger; $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#fff"); + $('.header-bottom-flex').find('svg path').attr('fill','#fff') } else { header.addClass('stick'); - + debugger; $(".header-bottom").addClass("sticky-bar stick"); let src = `./dist/assets/imgs/anwi-logo-1.png`; $(".logo-menu-wrap").find("a img").attr("src",src); $(".main-menu").find("nav ul li a").removeClass("text-white"); - $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","currentcolor"); + $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#000"); + $('.header-bottom-flex').find('svg path').attr('fill','#000') } }); diff --git a/dist/Js/navbar.js b/dist/Js/navbar.js index 5ffd261..51f5f1c 100644 --- a/dist/Js/navbar.js +++ b/dist/Js/navbar.js @@ -74,10 +74,49 @@ function navINIT() {