浏览代码

code added

sachinganesh 2 年前
父节点
当前提交
5e83f5f90f
共有 2 个文件被更改,包括 47 次插入5 次删除
  1. 6
    3
      dist/Js/main.js
  2. 41
    2
      dist/Js/navbar.js

+ 6
- 3
dist/Js/main.js 查看文件

@@ -11,7 +11,7 @@
11 11
 
12 12
     }
13 13
    function naChanges(){
14
-    $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#fff");
14
+    $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#000");
15 15
    }
16 16
    setTimeout(naChanges, 1000);
17 17
    win.on('scroll', function() {
@@ -22,15 +22,18 @@
22 22
         let img_src = `./dist/assets/imgs/anwi-logo-2.png`;
23 23
         $(".logo-menu-wrap").find("a img").attr("src",img_src);
24 24
         $(".main-menu").find("nav ul li a").addClass("text-white");
25
+        debugger;
25 26
         $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#fff");
27
+        $('.header-bottom-flex').find('svg path').attr('fill','#fff')
26 28
     } else {
27 29
         header.addClass('stick');
28
-     
30
+     debugger;
29 31
             $(".header-bottom").addClass("sticky-bar stick");
30 32
             let src = `./dist/assets/imgs/anwi-logo-1.png`;
31 33
             $(".logo-menu-wrap").find("a img").attr("src",src);
32 34
             $(".main-menu").find("nav ul li a").removeClass("text-white");
33
-            $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","currentcolor");
35
+            $("body.product_pg").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#000");
36
+            $('.header-bottom-flex').find('svg path').attr('fill','#000')
34 37
       
35 38
     }
36 39
 });

+ 41
- 2
dist/Js/navbar.js 查看文件

@@ -74,10 +74,49 @@ function navINIT() {
74 74
                             </div>
75 75
                             <div class="header-action-wrap header-action-flex header-action-width header-action-mrg-1">
76 76
                                 <div class="same-style">
77
-                                <a href="./myaccount.html" class="my_avatar"><i class="fa-solid fa-user"></i></a>
77
+                                <a href="./myaccount.html" class="my_avatar">
78
+                      
79
+                                <?xml version="1.0" encoding="utf-8"?>
80
+                                <!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
81
+                                <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
82
+                                     viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;width: 20px;" xml:space="preserve">
83
+                                <style type="text/css">
84
+                                    
85
+                                </style>
86
+                                <path fill="#fff" class="st0" d="M11.1,12c-3-0.5-5-3.2-4.8-6C6.6,2.9,9,0.7,12,0.7c3,0,5.4,2.2,5.6,5.2c0.2,2.9-1.7,5.5-4.8,6
87
+                                    c1.4,0,2.8,0.2,4.1,0.8c3.4,1.5,5.4,4.1,6.1,7.6c0.1,0.5,0.1,1,0.2,1.6c0,0.8-0.4,1.3-1.2,1.3c-4.4,0-8.9,0-13.3,0
88
+                                    c-2.3,0-4.5,0-6.8,0c-0.9,0-1.3-0.5-1.3-1.3c0.1-4.4,3-8.1,7-9.5C8.9,12.1,10,11.9,11.1,12L11.1,12z M12,22.1c0.5,0,1.1,0,1.6,0
89
+                                    c2.7,0,5.5,0,8.2,0c0.2,0,0.3,0,0.3-0.3c0-0.6-0.1-1.2-0.2-1.7c-0.9-3.6-3.8-6.3-7.4-6.8c-0.9-0.1-1.9-0.1-2.9-0.1
90
+                                    c-0.7,0-1.4,0-2,0.1c-4.2,0.6-7.5,4.2-7.6,8.5c0,0.3,0,0.3,0.3,0.3C5.5,22.1,8.8,22.1,12,22.1L12,22.1z M12,10.8
91
+                                    c2.5,0,4.5-2,4.5-4.4c0-2.2-1.7-4.5-4.4-4.5c-2.7,0-4.5,2.1-4.5,4.4C7.5,8.9,9.5,10.8,12,10.8z"/>
92
+                                </svg>
93
+                                
94
+                                </a>
78 95
                                 </div>
79 96
                                 <div class="same-style header-cart">
80
-                                <a class="cart-active1 position-relative" href="./shopping-cart.html"><i class="fa-solid fa-cart-shopping"></i>
97
+                                <a class="cart-active1 position-relative" href="./shopping-cart.html">
98
+                                <?xml version="1.0" encoding="utf-8"?>
99
+                                <!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
100
+                                <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
101
+                                     viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;width: 20px;" xml:space="preserve">
102
+                              
103
+                                <path fill="#fff" class="st0" d="M0.5,1.1c0.1-0.2,0.4-0.4,0.6-0.4c0.6,0,1.2,0,1.8,0C4,0.9,4.8,1.5,5.1,2.5c0.2,0.4,0.3,0.8,0.4,1.2
104
+                                    c0.1,0.2,0.1,0.2,0.3,0.2c1.2,0,2.3,0,3.4,0c1.5,0,3,0,4.4,0.1c0.9,0,1.8,0,2.6,0c1.3,0,2.6,0,3.8,0.1c0.8,0,1.7,0,2.5,0
105
+                                    c0.1,0,0.2,0,0.3,0c0.4,0.1,0.5,0.3,0.5,0.8c-0.3,1.2-0.6,2.3-0.8,3.5c-0.1,0.6-0.3,1.3-0.5,1.9c-0.4,1.2-1.2,1.9-2.5,2.1
106
+                                    c-1.3,0.2-2.6,0.3-3.9,0.4c-1.4,0.1-2.7,0.3-4.1,0.4c-1,0.1-2,0.2-3.1,0.3c-0.1,0-0.2,0.1-0.3,0.2c-0.4,0.7-0.2,1.3,0.2,1.8
107
+                                    C8.8,15.9,9.2,16,9.6,16c3.3,0,6.6,0,10,0c0.1,0,0.3,0,0.4,0c0.2,0.1,0.4,0.3,0.4,0.5c0,0.3-0.2,0.5-0.4,0.5c-0.1,0-0.3,0-0.4,0
108
+                                    c-3.3,0-6.5,0-9.8,0c-1.2,0-2.1-0.6-2.5-1.6c-0.3-0.7-0.2-1.4,0.1-2c0.2-0.3,0.1-0.6,0-0.9C6.3,9.4,5.2,6.2,4.1,3
109
+                                    C3.9,2.2,3.5,1.9,2.7,1.9c-0.5,0-1,0-1.4,0c-0.3,0-0.6-0.1-0.7-0.4C0.5,1.6,0.5,1.2,0.5,1.1z M7.3,5.1c-0.2,0-0.6,0-1.1,0
110
+                                    C6,5.1,6,5.1,6.1,5.3c0.3,1,0.6,2,1,2.9c0.4,1.4,0.9,2.7,1.3,4.1c0,0.1,0.1,0.2,0.2,0.2c0.8-0.1,1.5-0.2,2.3-0.2
111
+                                    c0.9-0.1,1.9-0.2,2.8-0.3c0.9-0.1,1.9-0.2,2.8-0.3c1-0.1,1.9-0.2,2.9-0.3c0.9-0.1,1.5-0.5,1.7-1.4c0.4-1.5,0.7-3,1.1-4.5
112
+                                    c0-0.1,0-0.2-0.1-0.2c-0.4,0-0.8,0-1.1,0c-2,0-4.1,0-6.1-0.1c-1,0-2,0-3,0C10.4,5.1,9,5.1,7.3,5.1L7.3,5.1z"/>
113
+                                <path fill="#fff" class="st0" d="M18.1,23.2c-1.3,0.1-2.4-0.9-2.5-2.3c-0.1-1.3,0.9-2.4,2.2-2.6c1.4-0.1,2.5,0.9,2.6,2.3
114
+                                    C20.5,22.1,19.3,23.2,18.1,23.2L18.1,23.2z M19.2,20.8c0-0.7-0.6-1.3-1.3-1.3c-0.7,0-1.3,0.6-1.3,1.3c0,0.7,0.6,1.3,1.3,1.3
115
+                                    C18.7,22.1,19.2,21.5,19.2,20.8L19.2,20.8z"/>
116
+                                <path  fill="#fff"  class="st0" d="M7.8,23.2c-1.3,0-2.4-1.1-2.4-2.4c0-1.4,1.1-2.4,2.4-2.4c1.3,0,2.4,1.1,2.4,2.5C10.3,22.1,9.2,23.2,7.8,23.2
117
+                                    L7.8,23.2z M7.8,22.1c0.7,0,1.3-0.6,1.3-1.3c0-0.7-0.6-1.3-1.3-1.3s-1.3,0.6-1.3,1.3C6.5,21.5,7.1,22.1,7.8,22.1z"/>
118
+                                </svg>
119
+                                
81 120
                                 <span class="position-absolute cartnumcount d-none" >0</span>
82 121
                                 </a>
83 122
                                 </div>

正在加载...
取消
保存