소스 검색

added aio landing page

Rahul Katari 1 년 전
부모
커밋
d3532c6cb8

+ 2
- 1
all.css 파일 보기

@@ -1,9 +1,10 @@
1 1
 @import "./libs/bootstrap/css/bootstrap.min.css";
2 2
 @import "./dist/css/main.css";
3 3
 @import "./style.css";
4
+/* @import "./styles/style.css"; */
4 5
 @import "./libs/owlcarousel/Css/owl.carousel.min.css";
5 6
 @import "./libs/owlcarousel/Css/owl.theme.default.min.css";
6
-@import ".dist/css/pages/productdetails.css";
7
+@import "./dist/css/pages/productdetails.css";
7 8
 @import "./dist/css/font_icon.min.css";
8 9
 
9 10
 

BIN
dist/assets/imgs/zeno/aio/Banner-2-DT.jpg 파일 보기


BIN
dist/assets/imgs/zeno/aio/aio1.jpeg 파일 보기


BIN
dist/assets/imgs/zeno/aio/audio.jpg 파일 보기


BIN
dist/assets/imgs/zeno/aio/banner-1-DT.jpg 파일 보기


BIN
dist/assets/imgs/zeno/aio/front.jpeg 파일 보기


BIN
dist/assets/imgs/zeno/aio/icon_typea.png 파일 보기


BIN
dist/assets/imgs/zeno/aio/icon_typed.png 파일 보기


BIN
dist/assets/imgs/zeno/aio/inner-panel.jpeg 파일 보기


BIN
dist/assets/imgs/zeno/aio/ports.png 파일 보기


BIN
dist/assets/imgs/zeno/aio/rear.jpeg 파일 보기


BIN
dist/assets/imgs/zeno/aio/security.jpg 파일 보기


BIN
dist/assets/imgs/zeno/aio/stand.png 파일 보기


+ 2
- 2
dist/css/style.css 파일 보기

@@ -4144,7 +4144,7 @@ textarea:focus {
4144 4144
 .main-menu>nav>ul>li>a {
4145 4145
   font-size: 12px;
4146 4146
   color: #fff;
4147
-  display: inline-block;
4147
+  /* display: inline-block; */
4148 4148
   font-weight: 600;
4149 4149
   ;
4150 4150
 }
@@ -4152,7 +4152,7 @@ textarea:focus {
4152 4152
 .header-bottom.sticky-bar.stick .main-menu>nav>ul>li>a {
4153 4153
   font-size: 12px;
4154 4154
   color: #0A1039;
4155
-  display: inline-block;
4155
+  /* display: inline-block; */
4156 4156
   font-weight: 600;
4157 4157
   ;
4158 4158
 }

+ 280
- 257
dist/js-old/navbar.js 파일 보기

@@ -1,103 +1,102 @@
1 1
 navINIT();
2 2
 
3 3
 function navINIT() {
4
+  async function getAllProdouctsIds() {
5
+    let res = await API_SERVICES_ACTIONS.getAPIService(
6
+      "apis/v4/bizgaze/integrations/products/getallproducts",
7
+      true
8
+    );
9
+    if (res.isError) {
10
+      return;
11
+    }
4 12
 
13
+    res = JSON.parse(res.response.result);
5 14
 
15
+    for (let i = 0; i < res.length; i++) {
16
+      let curr = res[i];
17
+      let productname = curr.productname;
18
+      let id = curr.productid;
6 19
 
7
-   
20
+      // ACCESSORIES
21
+      switch (productname) {
22
+        case "Zeno Sleekbook":
23
+          appendIdNav("zenosleekbook", id);
24
+          break;
25
+        case "Zeno Dualbook":
26
+          appendIdNav("zenodualbook", id);
27
+          break;
28
+        case "FYRO Flagship":
29
+          appendIdNav("fyroflagship", id);
30
+          break;
31
+        case "AIO Fyro":
32
+          // appendIdNav('fyroaio',id);
33
+          break;
34
+        case "AIO Zeno":
35
+        // appendIdNav('zenoaio',id);
36
+        default:
37
+          break;
38
+      }
39
+    }
40
+  }
8 41
 
9
-    async function getAllProdouctsIds(){
10
-        let res = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/products/getallproducts',true);
11
-        if(res.isError){
12
-            return;
13
-        }
42
+  function appendIdNav(className, id) {
43
+    let html = $(`.${className}`).attr("href");
44
+    const pattern = /{[^}]+}/g;
45
+    const replacedString = html.replace(pattern, id);
46
+    $(`.${className}`).parents(".nav-tab-show").removeClass("d-none");
47
+    $(`.${className}`).attr("href", replacedString);
48
+  }
14 49
 
15
-        res = JSON.parse(res.response.result);
16
-    
17
-        for(let i=0;i<res.length;i++){
18
-            let curr = res[i];
19
-            let productname = curr.productname;
20
-            let id = curr.productid;
21
-            
22
-            // ACCESSORIES
23
-            switch (productname) {
24
-                case 'Zeno Sleekbook':
25
-                    appendIdNav('zenosleekbook',id);
26
-                    break;
27
-                case 'Zeno Dualbook':
28
-                    appendIdNav('zenodualbook',id);
29
-                    break;
30
-                case "FYRO Flagship":
31
-                    appendIdNav('fyroflagship',id);
32
-                    break;
33
-                case "AIO Fyro":
34
-                    // appendIdNav('fyroaio',id);
35
-                    break;
36
-                case "AIO Zeno":
37
-                    // appendIdNav('zenoaio',id);
38
-                default:
39
-                    break;
40
-            }
41
-        }
42
-    }
50
+  if (
51
+    !window.location.href.includes("orderconfirmation") &&
52
+    !window.location.href.includes("/w/")
53
+  ) {
54
+    loadCart();
55
+  }
43 56
 
44
-    function appendIdNav(className,id){
45
-        let html = $(`.${className}`).attr('href');
46
-        const pattern = /{[^}]+}/g;
47
-        const replacedString = html.replace(pattern, id);
48
-        $(`.${className}`).parents('.nav-tab-show').removeClass('d-none')
49
-        $(`.${className}`).attr('href',replacedString);
57
+  function loadHelper(src = "./dist/js/utils/helpers.js") {
58
+    if ($(`script[src="${src}"]`).length > 0) {
59
+      return new Promise((resolve) => resolve());
50 60
     }
51
-    
52
-    if(!window.location.href.includes('orderconfirmation')&&!window.location.href.includes('/w/')){
53
-        loadCart();
54
-        
55
-    }
56
-   
57
-    function loadHelper(src = './dist/js/utils/helpers.js'){
58
-        if ($(`script[src="${src}"]`).length > 0) {
59
-          return new Promise((resolve) => resolve());
61
+    return new Promise(function (resolve, reject) {
62
+      var s;
63
+      s = document.createElement("script");
64
+      s.src = src;
65
+      s.onload = resolve;
66
+      s.onerror = reject;
67
+      document.head.appendChild(s);
68
+    });
69
+  }
70
+  async function loadCart() {
71
+    if (!window.location.href.includes("services/paymentmethod.html")) {
72
+      let files = ["./dist/js/shoppingcart/addtocart.js"];
73
+      await loadHelper();
74
+      for (let i = 0; i < files.length; i++) {
75
+        if ($(`script[src="${files[i]}"]`).length > 0) {
76
+          continue;
60 77
         }
61
-        return new Promise(function (resolve, reject) {
62
-            var s;
63
-            s = document.createElement('script');
64
-            s.src = src;
65
-            s.onload = resolve;
66
-            s.onerror = reject;
67
-            document.head.appendChild(s);
68
-        });
69
-    }
70
-    async function loadCart(){
71
-
72
-        if(!window.location.href.includes('services/paymentmethod.html')){
73
-            let files = ['./dist/js/shoppingcart/addtocart.js'];
74
-            await loadHelper();
75
-            for(let i=0;i<files.length;i++){
76
-                if ($(`script[src="${files[i]}"]`).length > 0) {
77
-                    continue;
78
-                }
79
-                try {
80
-                    await loadHelper(files[i])
81
-    
82
-                } catch (error) {
83
-                    return;
84
-                }
85
-            }
78
+        try {
79
+          await loadHelper(files[i]);
80
+        } catch (error) {
81
+          return;
86 82
         }
87
-
88
-         setLengthCart();
89
-         getAllProdouctsIds();
90
-        //console.log("hello");
91
-
92
-        
93
-        
94
-      
83
+      }
95 84
     }
96
-    let URLNAMENAV = window.location.href;
97
-    const isTransparent = URLNAMENAV.includes('login')||URLNAMENAV.includes('orderconfirmation')|| URLNAMENAV.includes('services/paymentmethod.html');
98
-    debugger;
99
-    let nav_html = `
100
-<header class="header-area section-padding-1 transparent-bar" ${isTransparent ?'style="background:#fff"' :''}>
85
+
86
+    setLengthCart();
87
+    getAllProdouctsIds();
88
+    //console.log("hello");
89
+  }
90
+  let URLNAMENAV = window.location.href;
91
+  const isTransparent =
92
+    URLNAMENAV.includes("login") ||
93
+    URLNAMENAV.includes("orderconfirmation") ||
94
+    URLNAMENAV.includes("services/paymentmethod.html");
95
+  debugger;
96
+  let nav_html = `
97
+<header class="header-area section-padding-1 transparent-bar" ${
98
+    isTransparent ? 'style="background:#fff"' : ""
99
+  }>
101 100
             <div class="header-large-device">
102 101
                 <div class="header-bottom sticky-bar">
103 102
                     <div class="container">
@@ -160,7 +159,7 @@ function navINIT() {
160 159
                                                 <div class="position-relative  nav-tab-show">
161 160
                                                     <a class="h-100 nav_items zenoaio" href="/laptopdetails.html?AIO Zeno#productId=106633230000026#itemid=106633240000112">
162 161
                                                         <div  style="" class="align-items-center cursor-pointer d-flex flex-column h-100 justify-content-center rounded-3">
163
-                                                            <img src="https://assets.bizgaze.com/_files/documents/663/801719ca-c57b-4652-8ab9-37e7dcaab746/aio-removebg-preview.png" alt="ora img" class="nav_imgs"/>
162
+                                                            <img src="https://assets.bizgaze.com/_files/documents/663/3e4f2cb7-e48e-4805-a70e-78277dd2ac39/home-aio.png" alt="ora img" class="nav_imgs"/>
164 163
                                                             <p  class="mb-0 text-center text-dark w-100">Zeno All in ones</p>
165 164
                                                         </div>
166 165
                                                     </a>
@@ -263,7 +262,11 @@ function navINIT() {
263 262
                            <h2 class="titleproductnav sub_nav_item me-3 fs-9"></h2></span>
264 263
                                 <ul class="d-flex mb-0 py-3  justify-content-center align-items-center" style="list-style:none;">
265 264
                                     <li>
266
-                                        <a data-overview="#${window.location.href.includes('Zeno')?'overview_data_zeno':'overview_data_fyro'}" class="sub_nav_item overview me-3 fs-9">Overview</a>
265
+                                        <a data-overview="#${
266
+                                          window.location.href.includes("Zeno")
267
+                                            ? "overview_data_zeno"
268
+                                            : "overview_data_fyro"
269
+                                        }" class="sub_nav_item overview me-3 fs-9">Overview</a>
267 270
                                     </li>
268 271
                                     <li>
269 272
                                         <a data-spec="true" class="sub_nav_item me-3 fs-9 overviewspecs">Specifications</a>
@@ -449,189 +452,209 @@ function navINIT() {
449 452
                 </div>
450 453
             </div>
451 454
         </div>`;
452
-    $("#navbar-head").html(nav_html);
453
-
454
-    $('.explandlinavnameparent').click(function (e){
455
+  $("#navbar-head").html(nav_html);
455 456
 
456
-        let parentElement = $(e.target).parents('.expandlinav');
457
-        if($(parentElement).find('.content-expandlinav').hasClass('d-none')){
458
-            const name = $(parentElement).find('.viewall_li').data('name');
459
-            $(parentElement).find('.viewall_li').html(`<a href="${name}">view all</a>`);
460
-            $(parentElement).find('.content-expandlinav').removeClass('d-none');
461
-           }else{
462
-            $(parentElement).find('.viewall_li').html('+');
463
-            $(parentElement).find('.content-expandlinav').addClass('d-none');
464
-           }
465
-    });
466
-
467
-    let width = $(window).width();
468
-    $(".menu-negative-mrg2,.menu-negative-mrg3,.menu-negative-mrg4").css("width", width);
469
-    let ele_page = $("body").hasClass("product_pg");
470
-    if (ele_page == true) {
471
-        $(".header-area").removeClass("bg-white");
472
-        $(".main-menu").find("nav ul li a").addClass("text-white");
473
-        $(".header-bottom.sticky-bar").removeClass("sticky-bar");
474
-        let src = `../dist/assets/imgs/anwi-logo-2.png`;
475
-        $(".logo-menu-wrap").find(".logo a img").attr("src", src);
476
-        $(".main-body").find("iframe").attr("width", width);
477
-        if (width <= 575 && width >= 390) {
478
-            $(".main-body").find("iframe").attr({
479
-                width: width,
480
-                height: 236,
481
-            })
482
-        } else if (width <= 390 && width >= 270) {
483
-            $(".main-body").find("iframe").attr({
484
-                width: width,
485
-                height: 210,
486
-            });
487
-        } else if (width <= 998 && width > 575) {
488
-            $(".main-body").find("iframe").attr({
489
-                width: width,
490
-                height: 530,
491
-            });
492
-        } else if (width <= 2720 && width > 2300) {
493
-            $(".main-body").find("iframe").attr({
494
-                width: width,
495
-                height: 1440,
496
-            });
497
-        } else if(width <= 2300 && width > 1921){
498
-            $(".main-body").find("iframe").attr({
499
-                width: width,
500
-                height: 1132,
501
-            });
502
-        }
503
-        else if(width <= 1920 && width > 1620){
504
-            $(".main-body").find("iframe").attr({
505
-                width: width,
506
-                height: 1083,
507
-            });
508
-        }else {
509
-            $(".main-body").find("iframe").attr({
510
-                width: width,
511
-                height: 861,
512
-            });
513
-        }
457
+  $(".explandlinavnameparent").click(function (e) {
458
+    let parentElement = $(e.target).parents(".expandlinav");
459
+    if ($(parentElement).find(".content-expandlinav").hasClass("d-none")) {
460
+      const name = $(parentElement).find(".viewall_li").data("name");
461
+      $(parentElement)
462
+        .find(".viewall_li")
463
+        .html(`<a href="${name}">view all</a>`);
464
+      $(parentElement).find(".content-expandlinav").removeClass("d-none");
465
+    } else {
466
+      $(parentElement).find(".viewall_li").html("+");
467
+      $(parentElement).find(".content-expandlinav").addClass("d-none");
514 468
     }
469
+  });
515 470
 
516
-
517
-    $("a.ram_data").click(function () {
518
-        let item_id = $(this).attr("accessories_id");
519
-        let loc_path = '/products.html'
520
-        if (window.location.pathname.includes(loc_path)) {
521
-            window.location.href = `?itemid=${item_id}`
522
-        }
523
-        else {
524
-            window.location.href = `/products.html#itemid=${item_id}`;
525
-        }
526
-    })
527
-
528
-
529
-    // $(".main-menu nav ul").find("li").each(function () {
530
-    //     var current = window.location.pathname;
531
-    //     var $this = $(this).find("a");
532
-    //     if (current != "/") {
533
-    //         if ($this.attr('href').indexOf(current) !== -1) {
534
-    //             $(this).addClass('active_nav');
535
-    //         }
536
-    //     }
537
-
538
-    // })
539
-
540
-    // destroy localstorage data
541
-    let loc_path = '/productdetails.html';
542
-    if (window.location.pathname.includes(loc_path) === false) {
543
-        localStorage.removeItem("product_data");
544
-        localStorage.removeItem("top_data")
471
+  let width = $(window).width();
472
+  $(".menu-negative-mrg2,.menu-negative-mrg3,.menu-negative-mrg4").css(
473
+    "width",
474
+    width
475
+  );
476
+  let ele_page = $("body").hasClass("product_pg");
477
+  if (ele_page == true) {
478
+    $(".header-area").removeClass("bg-white");
479
+    $(".main-menu").find("nav ul li a").addClass("text-white");
480
+    $(".header-bottom.sticky-bar").removeClass("sticky-bar");
481
+    let src = `../dist/assets/imgs/anwi-logo-2.png`;
482
+    $(".logo-menu-wrap").find(".logo a img").attr("src", src);
483
+    $(".main-body").find("iframe").attr("width", width);
484
+    if (width <= 575 && width >= 390) {
485
+      $(".main-body").find("iframe").attr({
486
+        width: width,
487
+        height: 236,
488
+      });
489
+    } else if (width <= 390 && width >= 270) {
490
+      $(".main-body").find("iframe").attr({
491
+        width: width,
492
+        height: 210,
493
+      });
494
+    } else if (width <= 998 && width > 575) {
495
+      $(".main-body").find("iframe").attr({
496
+        width: width,
497
+        height: 530,
498
+      });
499
+    } else if (width <= 2720 && width > 2300) {
500
+      $(".main-body").find("iframe").attr({
501
+        width: width,
502
+        height: 1440,
503
+      });
504
+    } else if (width <= 2300 && width > 1921) {
505
+      $(".main-body").find("iframe").attr({
506
+        width: width,
507
+        height: 1132,
508
+      });
509
+    } else if (width <= 1920 && width > 1620) {
510
+      $(".main-body").find("iframe").attr({
511
+        width: width,
512
+        height: 1083,
513
+      });
514
+    } else {
515
+      $(".main-body").find("iframe").attr({
516
+        width: width,
517
+        height: 861,
518
+      });
545 519
     }
546
-    let loc_path1 = '/productcatloguedetails.html';
547
-    if (window.location.pathname.includes(loc_path1) === false) {
548
-        localStorage.removeItem("product_catlogue_obj");
520
+  }
521
+
522
+  $("a.ram_data").click(function () {
523
+    let item_id = $(this).attr("accessories_id");
524
+    let loc_path = "/products.html";
525
+    if (window.location.pathname.includes(loc_path)) {
526
+      window.location.href = `?itemid=${item_id}`;
527
+    } else {
528
+      window.location.href = `/products.html#itemid=${item_id}`;
549 529
     }
530
+  });
550 531
 
551
-    //services pages links and sources
532
+  // $(".main-menu nav ul").find("li").each(function () {
533
+  //     var current = window.location.pathname;
534
+  //     var $this = $(this).find("a");
535
+  //     if (current != "/") {
536
+  //         if ($this.attr('href').indexOf(current) !== -1) {
537
+  //             $(this).addClass('active_nav');
538
+  //         }
539
+  //     }
552 540
 
553
-   
541
+  // })
554 542
 
543
+  // destroy localstorage data
544
+  let loc_path = "/productdetails.html";
545
+  if (window.location.pathname.includes(loc_path) === false) {
546
+    localStorage.removeItem("product_data");
547
+    localStorage.removeItem("top_data");
548
+  }
549
+  let loc_path1 = "/productcatloguedetails.html";
550
+  if (window.location.pathname.includes(loc_path1) === false) {
551
+    localStorage.removeItem("product_catlogue_obj");
552
+  }
555 553
 
554
+  //services pages links and sources
556 555
 
557
-    let $body_pg = $("body").hasClass("services_page");
558
-    let $hm_pg = "../index.html";
559
-    let $nav_img = "../dist/assets/imgs/anwi-logo-1.png";
560
-    let $footer_img = "../dist/assets/imgs/anwi-logo-2.png";
561
-    let $scrool_top_img = "../dist/assets/imgs/Home/rocket-footer.png";
562
-    let $about_pg = $("body").hasClass("about_page");
563
-    if($about_pg == true){
564
-        $(".main-menu").find("nav ul li a").addClass("text-dark");
565
-        let img_src = `./dist/assets/imgs/anwi-logo-1.png`;
566
-        $(".logo-menu-wrap").find(".logo a img").attr("src",img_src);
556
+  let $body_pg = $("body").hasClass("services_page");
557
+  let $hm_pg = "../index.html";
558
+  let $nav_img = "../dist/assets/imgs/anwi-logo-1.png";
559
+  let $footer_img = "../dist/assets/imgs/anwi-logo-2.png";
560
+  let $scrool_top_img = "../dist/assets/imgs/Home/rocket-footer.png";
561
+  let $about_pg = $("body").hasClass("about_page");
562
+  if ($about_pg == true) {
563
+    $(".main-menu").find("nav ul li a").addClass("text-dark");
564
+    let img_src = `./dist/assets/imgs/anwi-logo-1.png`;
565
+    $(".logo-menu-wrap").find(".logo a img").attr("src", img_src);
566
+    $(".header-bottom").addClass("sticky-bar stick");
567
+    $("body.about_page")
568
+      .find(".header-large-device")
569
+      .find(".header-action-wrap")
570
+      .find(".same-style")
571
+      .find("svg")
572
+      .find("path")
573
+      .attr("fill", "#000");
574
+  }
575
+  if ($body_pg == true) {
576
+    $(".header-large-device")
577
+      .find(".logo-menu-wrap .logo")
578
+      .find("a")
579
+      .attr("href", $hm_pg);
580
+    $(".header-large-device")
581
+      .find(".logo-menu-wrap .logo")
582
+      .find("a img")
583
+      .attr("src", $nav_img);
584
+    $(".mobile-logo").find("a").attr("href", $hm_pg);
585
+    $(".mobile-logo").find(".logo a img").attr("src", $nav_img);
586
+    $("body.services_page")
587
+      .find(".header-large-device")
588
+      .find(".header-action-wrap")
589
+      .find(".same-style")
590
+      .find("svg")
591
+      .find("path")
592
+      .attr("fill", "#000");
593
+    $(".main-menu")
594
+      .find("nav ul")
595
+      .find("li a")
596
+      .each(function () {
597
+        $(this).addClass("text-dark");
567 598
         $(".header-bottom").addClass("sticky-bar stick");
568
-        $("body.about_page").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#000");
569
-    }
570
-    if ($body_pg == true) {
571
-        $(".header-large-device").find(".logo-menu-wrap .logo").find("a").attr("href", $hm_pg);
572
-        $(".header-large-device").find(".logo-menu-wrap .logo").find("a img").attr("src", $nav_img);
573
-        $(".mobile-logo").find("a").attr("href", $hm_pg);
574
-        $(".mobile-logo").find(".logo a img").attr("src", $nav_img);
575
-        $("body.services_page").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#000");
576
-        $(".main-menu").find("nav ul").find("li a").each(function () {
577
-            $(this).addClass("text-dark")
578
-            $(".header-bottom").addClass("sticky-bar stick");
579
-            let $arc = $(this).attr("href");
580
-            let $spcial_char = $arc.includes("./");
581
-            if ($spcial_char === true) {
582
-                let $refarence = `.${$arc}`
583
-                $(this).attr("href", $refarence);
584
-            }
585
-            
586
-        });
587
-        $(".same-style").find("a").each(function () {
588
-            let $arc1 = $(this).attr("href");
589
-            let $spcial_char1 = $arc1.includes("./");
590
-            if ($spcial_char1 === true) {
591
-                let $refarence1 = `.${$arc1}`
592
-                $(this).attr("href", $refarence1);
593
-            }
594
-        })
595
-        $(".tab-content").find("img").each(function(){
596
-            let $img_src = $(this).attr("src");
597
-            let $img_src1 = $img_src.includes("./");
598
-            if ($img_src1 === true) {
599
-                let $refarenceimg1 = `.${$img_src}`;
600
-                $(this).attr("src", $refarenceimg1);
601
-            }
602
-        });
603
-        $(".clickable-mainmenu-wrap").find("nav ul").find("li a").each(function () {
604
-            let $arc_mbil = $(this).attr("href");
605
-            let $spcial_char_mbil = $arc_mbil.includes("./");
606
-            if ($spcial_char_mbil === true) {
607
-                let $refarence_mbil = `.${$arc_mbil}`
608
-                $(this).attr("href", $refarence_mbil);
609
-            }
610
-        });
599
+        let $arc = $(this).attr("href");
600
+        let $spcial_char = $arc.includes("./");
601
+        if ($spcial_char === true) {
602
+          let $refarence = `.${$arc}`;
603
+          $(this).attr("href", $refarence);
604
+        }
605
+      });
606
+    $(".same-style")
607
+      .find("a")
608
+      .each(function () {
609
+        let $arc1 = $(this).attr("href");
610
+        let $spcial_char1 = $arc1.includes("./");
611
+        if ($spcial_char1 === true) {
612
+          let $refarence1 = `.${$arc1}`;
613
+          $(this).attr("href", $refarence1);
614
+        }
615
+      });
616
+    $(".tab-content")
617
+      .find("img")
618
+      .each(function () {
619
+        let $img_src = $(this).attr("src");
620
+        let $img_src1 = $img_src.includes("./");
621
+        if ($img_src1 === true) {
622
+          let $refarenceimg1 = `.${$img_src}`;
623
+          $(this).attr("src", $refarenceimg1);
624
+        }
625
+      });
626
+    $(".clickable-mainmenu-wrap")
627
+      .find("nav ul")
628
+      .find("li a")
629
+      .each(function () {
630
+        let $arc_mbil = $(this).attr("href");
631
+        let $spcial_char_mbil = $arc_mbil.includes("./");
632
+        if ($spcial_char_mbil === true) {
633
+          let $refarence_mbil = `.${$arc_mbil}`;
634
+          $(this).attr("href", $refarence_mbil);
635
+        }
636
+      });
637
+  }
638
+
639
+  setTimeout(() => {
640
+    if (width <= 600) {
641
+      $(".same-style").find("svg path").attr("fill", "#000");
611 642
     }
643
+  }, 300);
612 644
 
613
-    setTimeout(()=>{
614
-        if(width<=600){
615
-            $('.same-style').find('svg path').attr('fill','#000');
616
-        }
617
-    },300);
645
+  // overview
618 646
 
619
-    // overview 
647
+  $(".overview").click(function (e) {
648
+    let name = $(e.target).data("overview");
620 649
 
621
-    $('.overview').click(function (e){
622
-        let name = $(e.target).data('overview');
623
-        
624
-        document.querySelector(name)?.scrollIntoView({
625
-            behavior: 'smooth'
626
-        });
627
-        
650
+    document.querySelector(name)?.scrollIntoView({
651
+      behavior: "smooth",
628 652
     });
653
+  });
629 654
 
630
-    $('.overviewspecs').click(function (e){
631
-        document.querySelector('#specification_data')?.scrollIntoView({
632
-            behavior: 'smooth'
633
-        });
655
+  $(".overviewspecs").click(function (e) {
656
+    document.querySelector("#specification_data")?.scrollIntoView({
657
+      behavior: "smooth",
634 658
     });
635
-
636
-    
637
-}
659
+  });
660
+}

+ 298
- 271
dist/js/navbar.js 파일 보기

@@ -1,105 +1,102 @@
1 1
 navINIT();
2 2
 
3 3
 function navINIT() {
4
+  async function getAllProdouctsIds() {
5
+    let res = await API_SERVICES_ACTIONS.getAPIService(
6
+      "apis/v4/bizgaze/integrations/products/getallproducts",
7
+      true
8
+    );
9
+    if (res.isError) {
10
+      console.log(res.errorMsg);
11
+      return;
12
+    }
4 13
 
14
+    res = JSON.parse(res.response.result);
5 15
 
16
+    for (let i = 0; i < res.length; i++) {
17
+      let curr = res[i];
18
+      let productname = curr.productname;
19
+      let id = curr.productid;
6 20
 
7
-   
21
+      // ACCESSORIES
22
+      switch (productname) {
23
+        case "Zeno Sleekbook":
24
+          appendIdNav("zenosleekbook", id);
25
+          break;
26
+        case "Zeno Dualbook":
27
+          appendIdNav("zenodualbook", id);
28
+          break;
29
+        case "FYRO Flagship":
30
+          appendIdNav("fyroflagship", id);
31
+          break;
32
+        case "AIO Fyro":
33
+          // appendIdNav('fyroaio',id);
34
+          break;
35
+        case "AIO Zeno":
36
+        // appendIdNav('zenoaio',id);
37
+        default:
38
+          break;
39
+      }
40
+    }
41
+  }
8 42
 
9
-    async function getAllProdouctsIds(){
10
-        let res = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/products/getallproducts',true);
11
-        if(res.isError){
12
-            console.log(res.errorMsg);
13
-            return;
14
-        }
43
+  function appendIdNav(className, id) {
44
+    let html = $(`.${className}`).attr("href");
45
+    const pattern = /{[^}]+}/g;
46
+    const replacedString = html.replace(pattern, id);
47
+    $(`.${className}`).parents(".nav-tab-show").removeClass("d-none");
48
+    $(`.${className}`).attr("href", replacedString);
49
+  }
15 50
 
16
-        res = JSON.parse(res.response.result);
17
-    
18
-        for(let i=0;i<res.length;i++){
19
-            let curr = res[i];
20
-            let productname = curr.productname;
21
-            let id = curr.productid;
22
-            
23
-            // ACCESSORIES
24
-            switch (productname) {
25
-                case 'Zeno Sleekbook':
26
-                    appendIdNav('zenosleekbook',id);
27
-                    break;
28
-                case 'Zeno Dualbook':
29
-                    appendIdNav('zenodualbook',id);
30
-                    break;
31
-                case "FYRO Flagship":
32
-                    appendIdNav('fyroflagship',id);
33
-                    break;
34
-                case "AIO Fyro":
35
-                    // appendIdNav('fyroaio',id);
36
-                    break;
37
-                case "AIO Zeno":
38
-                    // appendIdNav('zenoaio',id);
39
-                default:
40
-                    break;
41
-            }
42
-        }
43
-    }
51
+  if (
52
+    !window.location.href.includes("orderconfirmation") &&
53
+    !window.location.href.includes("/w/")
54
+  ) {
55
+    loadCart();
56
+  }
44 57
 
45
-    function appendIdNav(className,id){
46
-        let html = $(`.${className}`).attr('href');
47
-        const pattern = /{[^}]+}/g;
48
-        const replacedString = html.replace(pattern, id);
49
-        $(`.${className}`).parents('.nav-tab-show').removeClass('d-none')
50
-        $(`.${className}`).attr('href',replacedString);
58
+  function loadHelper(src = "./dist/js/utils/helpers.js") {
59
+    if ($(`script[src="${src}"]`).length > 0) {
60
+      return new Promise((resolve) => resolve());
51 61
     }
52
-    
53
-    if(!window.location.href.includes('orderconfirmation')&&!window.location.href.includes('/w/')){
54
-        loadCart();
55
-        
56
-    }
57
-   
58
-    function loadHelper(src = './dist/js/utils/helpers.js'){
59
-        if ($(`script[src="${src}"]`).length > 0) {
60
-          return new Promise((resolve) => resolve());
62
+    return new Promise(function (resolve, reject) {
63
+      var s;
64
+      s = document.createElement("script");
65
+      s.src = src;
66
+      s.onload = resolve;
67
+      s.onerror = reject;
68
+      document.head.appendChild(s);
69
+    });
70
+  }
71
+  async function loadCart() {
72
+    if (!window.location.href.includes("services/paymentmethod.html")) {
73
+      let files = ["./dist/js/shoppingcart/addtocart.js"];
74
+      await loadHelper();
75
+      for (let i = 0; i < files.length; i++) {
76
+        if ($(`script[src="${files[i]}"]`).length > 0) {
77
+          continue;
61 78
         }
62
-        return new Promise(function (resolve, reject) {
63
-            var s;
64
-            s = document.createElement('script');
65
-            s.src = src;
66
-            s.onload = resolve;
67
-            s.onerror = reject;
68
-            document.head.appendChild(s);
69
-        });
70
-    }
71
-    async function loadCart(){
72
-
73
-        if(!window.location.href.includes('services/paymentmethod.html')){
74
-            let files = ['./dist/js/shoppingcart/addtocart.js'];
75
-            await loadHelper();
76
-            for(let i=0;i<files.length;i++){
77
-                if ($(`script[src="${files[i]}"]`).length > 0) {
78
-                    continue;
79
-                }
80
-                try {
81
-            
82
-                    await loadHelper(files[i])
83
-    
84
-                } catch (error) {
85
-                    console.log(error);
86
-                    return;
87
-                }
88
-            }
79
+        try {
80
+          await loadHelper(files[i]);
81
+        } catch (error) {
82
+          console.log(error);
83
+          return;
89 84
         }
90
-
91
-         setLengthCart();
92
-         getAllProdouctsIds();
93
-
94
-        
95
-        
96
-      
85
+      }
97 86
     }
98
-    let URLNAMENAV = window.location.href;
99
-    const isTransparent = URLNAMENAV.includes('login')||URLNAMENAV.includes('orderconfirmation')|| URLNAMENAV.includes('services/paymentmethod.html');
100
-    ;
101
-    let nav_html = `
102
-<header class="header-area section-padding-1 transparent-bar" ${isTransparent ?'style="background:#fff"' :''}>
87
+
88
+    setLengthCart();
89
+    getAllProdouctsIds();
90
+  }
91
+  let URLNAMENAV = window.location.href;
92
+  const isTransparent =
93
+    URLNAMENAV.includes("login") ||
94
+    URLNAMENAV.includes("orderconfirmation") ||
95
+    URLNAMENAV.includes("services/paymentmethod.html");
96
+  let nav_html = `
97
+<header class="header-area section-padding-1 transparent-bar" ${
98
+    isTransparent ? 'style="background:#fff"' : ""
99
+  }>
103 100
             <div class="header-large-device">
104 101
                 <div class="header-bottom sticky-bar">
105 102
                     <div class="container-lg">
@@ -114,7 +111,7 @@ function navINIT() {
114 111
                                     <nav>
115 112
                                         <ul class="mb-0 p-0">
116 113
                                         <li class="hover_tab_1">
117
-                                            <a href="/laptops.html" class="satoshi_font">LAPTOPS
114
+                                            <a href="/laptops.html" class="satoshi_font flex items-center">LAPTOPS
118 115
                                                 <svg style="width:18px;height:15px" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
119 116
                                                     <path fill="#000" d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/>
120 117
                                                 </svg>
@@ -151,7 +148,7 @@ function navINIT() {
151 148
                                         </ul>
152 149
                                     </li>
153 150
                                     <li class="hover_tab_2">
154
-                                        <a href="/allinones.html" class="satoshi_font">ALL IN ONES
151
+                                        <a href="/allinones.html" class="satoshi_font flex items-center">ALL IN ONES
155 152
                                             <svg style="width:18px;height:15px;" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
156 153
                                                 <path fill="#000" d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/>
157 154
                                             </svg>
@@ -180,7 +177,7 @@ function navINIT() {
180 177
                                     </ul>
181 178
                                     </li>
182 179
                                     <li class="hover_tab_2">
183
-                                        <a href="/accessories.html" class="satoshi_font">ACCESSORIES
180
+                                        <a href="/accessories.html" class="satoshi_font flex items-center">ACCESSORIES
184 181
                                             <svg style="width:18px;height:15px;" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg">
185 182
                                                 <path fill="#000" d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/>
186 183
                                             </svg>
@@ -266,7 +263,11 @@ function navINIT() {
266 263
                    <h2 class="titleproductnav sub_nav_item me-3 fs-9"></h2></span>
267 264
                         <ul class="d-flex mb-0 py-3  justify-content-center align-items-center" style="list-style:none;">
268 265
                             <li>
269
-                                <a data-overview="#${window.location.href.includes('Zeno')?'overview_data_zeno':'overview_data_fyro'}" href="#home-main-container" class="sub_nav_item overview me-3 fs-9">Overview</a>
266
+                                <a data-overview="#${
267
+                                  window.location.href.includes("Zeno")
268
+                                    ? "overview_data_zeno"
269
+                                    : "overview_data_fyro"
270
+                                }" href="#home-main-container" class="sub_nav_item overview me-3 fs-9">Overview</a>
270 271
                             </li>
271 272
                             <li>
272 273
                                 <a data-spec="true" class="sub_nav_item me-3 fs-9 overviewspecs">Specifications</a>
@@ -451,198 +452,224 @@ function navINIT() {
451 452
                 </div>
452 453
             </div>
453 454
         </div>`;
454
-    $("#navbar-head").html(nav_html);
455
+  $("#navbar-head").html(nav_html);
455 456
 
456
-    $('.explandlinavnameparent').click(function (e){
457
-
458
-        let parentElement = $(e.target).parents('.expandlinav');
459
-        if($(parentElement).find('.content-expandlinav').hasClass('d-none')){
460
-            const name = $(parentElement).find('.viewall_li').data('name');
461
-            $(parentElement).find('.viewall_li').html(`<a href="${name}">view all</a>`);
462
-            $(parentElement).find('.content-expandlinav').removeClass('d-none');
463
-           }else{
464
-            $(parentElement).find('.viewall_li').html('+');
465
-            $(parentElement).find('.content-expandlinav').addClass('d-none');
466
-           }
467
-    });
468
-
469
-    let width = $(window).width();
470
-    if(width <= 576){
471
-        $(".success-img.left-block").attr({"width":"250px","height":"250px"});
472
-        $(".product_item").addClass("flex-column")
473
-    }
474
-    $(".menu-negative-mrg2,.menu-negative-mrg3,.menu-negative-mrg4").css("width", width);
475
-    let ele_page = $("body").hasClass("product_pg");
476
-    if (ele_page == true) {
477
-        $(".header-area").removeClass("bg-white");
478
-        $(".main-menu").find("nav ul li a").addClass("text-white");
479
-        $(".header-bottom.sticky-bar").removeClass("sticky-bar");
480
-        let src = `../dist/assets/imgs/anwi-logo-2.png`;
481
-        $(".logo-menu-wrap").find(".logo a img").attr("src", src);
482
-        $(".main-body").find("iframe").attr("width", width);
483
-        if (width <= 575 && width >= 390) {
484
-            $(".main-body").find("iframe").attr({
485
-                width: width,
486
-                height: 236,
487
-            })
488
-        } else if (width <= 390 && width >= 270) {
489
-            $(".main-body").find("iframe").attr({
490
-                width: width,
491
-                height: 210,
492
-            });
493
-        } else if (width <= 998 && width > 575) {
494
-            $(".main-body").find("iframe").attr({
495
-                width: width,
496
-                height: 530,
497
-            });
498
-        } else if (width <= 2720 && width > 2300) {
499
-            $(".main-body").find("iframe").attr({
500
-                width: width,
501
-                height: 1440,
502
-            });
503
-        } else if(width <= 2300 && width > 1921){
504
-            $(".main-body").find("iframe").attr({
505
-                width: width,
506
-                height: 1132,
507
-            });
508
-        }
509
-        else if(width <= 1920 && width > 1620){
510
-            $(".main-body").find("iframe").attr({
511
-                width: width,
512
-                height: 1083,
513
-            });
514
-        }else {
515
-            $(".main-body").find("iframe").attr({
516
-                width: width,
517
-                height: 861,
518
-            });
519
-        }
457
+  $(".explandlinavnameparent").click(function (e) {
458
+    let parentElement = $(e.target).parents(".expandlinav");
459
+    if ($(parentElement).find(".content-expandlinav").hasClass("d-none")) {
460
+      const name = $(parentElement).find(".viewall_li").data("name");
461
+      $(parentElement)
462
+        .find(".viewall_li")
463
+        .html(`<a href="${name}">view all</a>`);
464
+      $(parentElement).find(".content-expandlinav").removeClass("d-none");
465
+    } else {
466
+      $(parentElement).find(".viewall_li").html("+");
467
+      $(parentElement).find(".content-expandlinav").addClass("d-none");
520 468
     }
469
+  });
521 470
 
522
-
523
-    $("a.ram_data").click(function () {
524
-        let item_id = $(this).attr("accessories_id");
525
-        let loc_path = '/products.html'
526
-        if (window.location.pathname.includes(loc_path)) {
527
-            window.location.href = `?itemid=${item_id}`
528
-        }
529
-        else {
530
-            window.location.href = `/products.html#itemid=${item_id}`;
531
-        }
532
-    })
533
-
534
-
535
-    // $(".main-menu nav ul").find("li").each(function () {
536
-    //     var current = window.location.pathname;
537
-    //     var $this = $(this).find("a");
538
-    //     if (current != "/") {
539
-    //         if ($this.attr('href').indexOf(current) !== -1) {
540
-    //             $(this).addClass('active_nav');
541
-    //         }
542
-    //     }
543
-
544
-    // })
545
-
546
-    // destroy localstorage data
547
-    let loc_path = '/productdetails.html';
548
-    if (window.location.pathname.includes(loc_path) === false) {
549
-        localStorage.removeItem("product_data");
550
-        localStorage.removeItem("top_data")
471
+  let width = $(window).width();
472
+  if (width <= 576) {
473
+    $(".success-img.left-block").attr({ width: "250px", height: "250px" });
474
+    $(".product_item").addClass("flex-column");
475
+  }
476
+  $(".menu-negative-mrg2,.menu-negative-mrg3,.menu-negative-mrg4").css(
477
+    "width",
478
+    width
479
+  );
480
+  let ele_page = $("body").hasClass("product_pg");
481
+  if (ele_page == true) {
482
+    $(".header-area").removeClass("bg-white");
483
+    $(".main-menu").find("nav ul li a").addClass("text-white");
484
+    $(".header-bottom.sticky-bar").removeClass("sticky-bar");
485
+    let src = `../dist/assets/imgs/anwi-logo-2.png`;
486
+    $(".logo-menu-wrap").find(".logo a img").attr("src", src);
487
+    $(".main-body").find("iframe").attr("width", width);
488
+    if (width <= 575 && width >= 390) {
489
+      $(".main-body").find("iframe").attr({
490
+        width: width,
491
+        height: 236,
492
+      });
493
+    } else if (width <= 390 && width >= 270) {
494
+      $(".main-body").find("iframe").attr({
495
+        width: width,
496
+        height: 210,
497
+      });
498
+    } else if (width <= 998 && width > 575) {
499
+      $(".main-body").find("iframe").attr({
500
+        width: width,
501
+        height: 530,
502
+      });
503
+    } else if (width <= 2720 && width > 2300) {
504
+      $(".main-body").find("iframe").attr({
505
+        width: width,
506
+        height: 1440,
507
+      });
508
+    } else if (width <= 2300 && width > 1921) {
509
+      $(".main-body").find("iframe").attr({
510
+        width: width,
511
+        height: 1132,
512
+      });
513
+    } else if (width <= 1920 && width > 1620) {
514
+      $(".main-body").find("iframe").attr({
515
+        width: width,
516
+        height: 1083,
517
+      });
518
+    } else {
519
+      $(".main-body").find("iframe").attr({
520
+        width: width,
521
+        height: 861,
522
+      });
551 523
     }
552
-    let loc_path1 = '/productcatloguedetails.html';
553
-    if (window.location.pathname.includes(loc_path1) === false) {
554
-        localStorage.removeItem("product_catlogue_obj");
524
+  }
525
+
526
+  $("a.ram_data").click(function () {
527
+    let item_id = $(this).attr("accessories_id");
528
+    let loc_path = "/products.html";
529
+    if (window.location.pathname.includes(loc_path)) {
530
+      window.location.href = `?itemid=${item_id}`;
531
+    } else {
532
+      window.location.href = `/products.html#itemid=${item_id}`;
555 533
     }
534
+  });
556 535
 
557
-    //services pages links and sources
536
+  // $(".main-menu nav ul").find("li").each(function () {
537
+  //     var current = window.location.pathname;
538
+  //     var $this = $(this).find("a");
539
+  //     if (current != "/") {
540
+  //         if ($this.attr('href').indexOf(current) !== -1) {
541
+  //             $(this).addClass('active_nav');
542
+  //         }
543
+  //     }
558 544
 
559
-   
545
+  // })
560 546
 
547
+  // destroy localstorage data
548
+  let loc_path = "/productdetails.html";
549
+  if (window.location.pathname.includes(loc_path) === false) {
550
+    localStorage.removeItem("product_data");
551
+    localStorage.removeItem("top_data");
552
+  }
553
+  let loc_path1 = "/productcatloguedetails.html";
554
+  if (window.location.pathname.includes(loc_path1) === false) {
555
+    localStorage.removeItem("product_catlogue_obj");
556
+  }
561 557
 
558
+  //services pages links and sources
562 559
 
563
-    let $body_pg = $("body").hasClass("services_page");
564
-    let $hm_pg = "../index.html";
565
-    let $nav_img = "../dist/assets/imgs/anwi-logo-1.png";
566
-    let $footer_img = "../dist/assets/imgs/anwi-logo-2.png";
567
-    let $scrool_top_img = "../dist/assets/imgs/Home/rocket-footer.png";
568
-    let $about_pg = $("body").hasClass("about_page");
569
-    if($about_pg == true){
570
-        $(".main-menu").find("nav ul li a").addClass("text-dark");
571
-        let img_src = `./dist/assets/imgs/anwi-logo-1.png`;
572
-        $(".logo-menu-wrap").find(".logo a img").attr("src",img_src);
560
+  let $body_pg = $("body").hasClass("services_page");
561
+  let $hm_pg = "../index.html";
562
+  let $nav_img = "../dist/assets/imgs/anwi-logo-1.png";
563
+  let $footer_img = "../dist/assets/imgs/anwi-logo-2.png";
564
+  let $scrool_top_img = "../dist/assets/imgs/Home/rocket-footer.png";
565
+  let $about_pg = $("body").hasClass("about_page");
566
+  if ($about_pg == true) {
567
+    $(".main-menu").find("nav ul li a").addClass("text-dark");
568
+    let img_src = `./dist/assets/imgs/anwi-logo-1.png`;
569
+    $(".logo-menu-wrap").find(".logo a img").attr("src", img_src);
570
+    $(".header-bottom").addClass("sticky-bar stick");
571
+    $("body.about_page")
572
+      .find(".header-large-device")
573
+      .find(".header-action-wrap")
574
+      .find(".same-style")
575
+      .find("svg")
576
+      .find("path")
577
+      .attr("fill", "#000");
578
+  }
579
+  let $body_nav = $("body").attr("class");
580
+  if (
581
+    $body_nav === "support_pg" ||
582
+    $body_nav === "media_page" ||
583
+    $body_nav === "meter_pg"
584
+  ) {
585
+    $(".main-menu").find("nav ul li a").addClass("text-dark");
586
+    let img_src = `./dist/assets/imgs/anwi-logo-1.png`;
587
+    $(".logo-menu-wrap").find(".logo a img").attr("src", img_src);
588
+    $(".same-style").find("svg path").attr("fill", "#000");
589
+  }
590
+  if ($body_pg == true) {
591
+    $(".header-large-device")
592
+      .find(".logo-menu-wrap .logo")
593
+      .find("a")
594
+      .attr("href", $hm_pg);
595
+    $(".header-large-device")
596
+      .find(".logo-menu-wrap .logo")
597
+      .find("a img")
598
+      .attr("src", $nav_img);
599
+    $(".mobile-logo").find("a").attr("href", $hm_pg);
600
+    $(".mobile-logo").find(".logo a img").attr("src", $nav_img);
601
+    $("body.services_page")
602
+      .find(".header-large-device")
603
+      .find(".header-action-wrap")
604
+      .find(".same-style")
605
+      .find("svg")
606
+      .find("path")
607
+      .attr("fill", "#000");
608
+    $(".main-menu")
609
+      .find("nav ul")
610
+      .find("li a")
611
+      .each(function () {
612
+        $(this).addClass("text-dark");
573 613
         $(".header-bottom").addClass("sticky-bar stick");
574
-        $("body.about_page").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#000");
575
-    }
576
-    let $body_nav = $("body").attr("class");
577
-    if($body_nav === "support_pg" || $body_nav === "media_page" || $body_nav === "meter_pg"){
578
-        $(".main-menu").find("nav ul li a").addClass("text-dark");
579
-        let img_src = `./dist/assets/imgs/anwi-logo-1.png`;
580
-        $(".logo-menu-wrap").find(".logo a img").attr("src",img_src);
581
-        $('.same-style').find('svg path').attr('fill','#000');
582
-    }
583
-    if ($body_pg == true) {
584
-        $(".header-large-device").find(".logo-menu-wrap .logo").find("a").attr("href", $hm_pg);
585
-        $(".header-large-device").find(".logo-menu-wrap .logo").find("a img").attr("src", $nav_img);
586
-        $(".mobile-logo").find("a").attr("href", $hm_pg);
587
-        $(".mobile-logo").find(".logo a img").attr("src", $nav_img);
588
-        $("body.services_page").find(".header-large-device").find(".header-action-wrap").find(".same-style").find("svg").find("path").attr("fill","#000");
589
-        $(".main-menu").find("nav ul").find("li a").each(function () {
590
-            $(this).addClass("text-dark")
591
-            $(".header-bottom").addClass("sticky-bar stick");
592
-            let $arc = $(this).attr("href");
593
-            let $spcial_char = $arc.includes("./");
594
-            if ($spcial_char === true) {
595
-                let $refarence = `.${$arc}`
596
-                $(this).attr("href", $refarence);
597
-            }
598
-            
599
-        });
600
-        $(".same-style").find("a").each(function () {
601
-            let $arc1 = $(this).attr("href");
602
-            let $spcial_char1 = $arc1.includes("./");
603
-            if ($spcial_char1 === true) {
604
-                let $refarence1 = `.${$arc1}`
605
-                $(this).attr("href", $refarence1);
606
-            }
607
-        })
608
-        $(".tab-content").find("img").each(function(){
609
-            let $img_src = $(this).attr("src");
610
-            let $img_src1 = $img_src.includes("./");
611
-            if ($img_src1 === true) {
612
-                let $refarenceimg1 = `.${$img_src}`;
613
-                $(this).attr("src", $refarenceimg1);
614
-            }
615
-        });
616
-        $(".clickable-mainmenu-wrap").find("nav ul").find("li a").each(function () {
617
-            let $arc_mbil = $(this).attr("href");
618
-            let $spcial_char_mbil = $arc_mbil.includes("./");
619
-            if ($spcial_char_mbil === true) {
620
-                let $refarence_mbil = `.${$arc_mbil}`
621
-                $(this).attr("href", $refarence_mbil);
622
-            }
623
-        });
614
+        let $arc = $(this).attr("href");
615
+        let $spcial_char = $arc.includes("./");
616
+        if ($spcial_char === true) {
617
+          let $refarence = `.${$arc}`;
618
+          $(this).attr("href", $refarence);
619
+        }
620
+      });
621
+    $(".same-style")
622
+      .find("a")
623
+      .each(function () {
624
+        let $arc1 = $(this).attr("href");
625
+        let $spcial_char1 = $arc1.includes("./");
626
+        if ($spcial_char1 === true) {
627
+          let $refarence1 = `.${$arc1}`;
628
+          $(this).attr("href", $refarence1);
629
+        }
630
+      });
631
+    $(".tab-content")
632
+      .find("img")
633
+      .each(function () {
634
+        let $img_src = $(this).attr("src");
635
+        let $img_src1 = $img_src.includes("./");
636
+        if ($img_src1 === true) {
637
+          let $refarenceimg1 = `.${$img_src}`;
638
+          $(this).attr("src", $refarenceimg1);
639
+        }
640
+      });
641
+    $(".clickable-mainmenu-wrap")
642
+      .find("nav ul")
643
+      .find("li a")
644
+      .each(function () {
645
+        let $arc_mbil = $(this).attr("href");
646
+        let $spcial_char_mbil = $arc_mbil.includes("./");
647
+        if ($spcial_char_mbil === true) {
648
+          let $refarence_mbil = `.${$arc_mbil}`;
649
+          $(this).attr("href", $refarence_mbil);
650
+        }
651
+      });
652
+  }
653
+
654
+  setTimeout(() => {
655
+    if (width <= 600) {
656
+      $(".same-style").find("svg path").attr("fill", "#000");
624 657
     }
658
+  }, 300);
625 659
 
626
-    setTimeout(()=>{
627
-        if(width<=600){
628
-            $('.same-style').find('svg path').attr('fill','#000');
629
-        }
630
-    },300);
660
+  // overview
631 661
 
632
-    // overview 
662
+  $(".overview").click(function (e) {
663
+    let name = $(e.target).data("overview");
633 664
 
634
-    $('.overview').click(function (e){
635
-        let name = $(e.target).data('overview');
636
-        
637
-        document.querySelector(name)?.scrollIntoView({
638
-            behavior: 'smooth'
639
-        });
640
-        
665
+    document.querySelector(name)?.scrollIntoView({
666
+      behavior: "smooth",
641 667
     });
668
+  });
642 669
 
643
-    $('.overviewspecs').click(function (e){
644
-        document.querySelector('#specification_data')?.scrollIntoView({
645
-            behavior: 'smooth'
646
-        });
647
-    });  
648
-}
670
+  $(".overviewspecs").click(function (e) {
671
+    document.querySelector("#specification_data")?.scrollIntoView({
672
+      behavior: "smooth",
673
+    });
674
+  });
675
+}

+ 877
- 898
dist/js/productdetails/laptopd.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 0
- 939
dist/js/productdetails/laptopd.js-old 파일 보기

@@ -1,939 +0,0 @@
1
-function startDetails() {
2
-    // http://127.0.0.1:5502/productdetails.html?productId=106633230000024
3
-    
4
-    if (window.location.search.split('=')[0] == '') {
5
-        window.location.href = "/notfound.html";
6
-        return;
7
-    }
8
-    let productId = window.location.hash.split('#')[1].split('=')[1];
9
-    console.log(productId);
10
-    let itemtagscombinationRes = null;
11
-    let labels = {};
12
-    let isThereInLabel = {};
13
-    let currentComb = null;
14
-
15
-    let colorId = null;
16
-
17
-    let group = {};
18
-
19
-    let loadingActions = {
20
-        addLoader() {
21
-            $('.loadingCall').removeClass('d-none');
22
-            $('.mainContanierProduct').addClass('d-none');
23
-        },
24
-        removeLoader() {
25
-            $('.loadingCall').addClass('d-none');
26
-            $('.mainContanierProduct').removeClass('d-none');
27
-        }
28
-    }
29
-
30
-    let currentClick = null;
31
-
32
-    if (productId) {
33
-        swapSectionsVideo();
34
-        loadingActions.addLoader();
35
-        updateProductId(productId);
36
-        getProductDetails(productId);
37
-        appendSpecs(productId)
38
-    } else {
39
-        window.location.href = "/notfound.html"
40
-    }
41
-
42
-    function updateProductId(val) {
43
-        $('#productidtag').val(val);
44
-    }
45
-
46
-    function updateItemId(val) {
47
-        $('#itemidtag').val(val);
48
-    }
49
-
50
-    let specification_wrap_action = {
51
-        remove() {
52
-
53
-            $('.specification-wrap').addClass('d-none');
54
-        },
55
-
56
-        add() {
57
-            $('.specification-wrap').removeClass('d-none');
58
-        }
59
-    }
60
-
61
-    let description_action = {
62
-        addVal(value) {
63
-            $('.description-wrap > p').html(value);
64
-        },
65
-
66
-        removeVal(value) {
67
-            $('.description-wrap > p').html('');
68
-        }
69
-    }
70
-
71
-    function getSpecsItemHTML({ name, des, itemid, id }) {
72
-        return `<div id="${id}" data-specitemid="${itemid}" class="">
73
-        <div class="row  border-bottom">
74
-            <div class="col-sm-6 bg-gray-3 py-2">
75
-            ${name}
76
-            </div>
77
-            <div class="col-sm-6  py-2">
78
-            ${des}	
79
-            </div>
80
-        </div>
81
-    </div>`;
82
-
83
-    }
84
-    // function getSpecsItemHTML({name,des,itemid,id}){
85
-    //     return ` <tr id="${id}" data-specitemid="${itemid}">
86
-    //     <td style="width:200px">${name}</td>
87
-    //     <td class="">${des}</td>
88
-    // </tr>`;
89
-    // }
90
-
91
-    async function appendSpecs(id) {
92
-        let resData = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/itemspecifications/itemid/${id}`, true);
93
-
94
-        if (resData.isError) {
95
-            $('.productdetailstabs').addClass('d-none');
96
-            $('.specContainerleft').html('')
97
-            $('.specContainerRight').html('')
98
-            return;
99
-        }
100
-        $('.productdetailstabs ').removeClass('d-none');
101
-        const res = resData.response;
102
-   //     console.log(JSON.parse(res.result));
103
-        const data = JSON.parse(res.result);
104
-     //   console.log(data);
105
-        let html = '';
106
-        let leftHtml = '';
107
-        let rightHtml = '';
108
-
109
-        if (data.length == 0) {
110
-            $('.productdetailstabs ').addClass('d-none');
111
-            $('.specContainerleft').html('')
112
-            $('.specContainerRight').html('')
113
-            return;
114
-        }
115
-
116
-        for (let i = 0; i < data.length; i++) {
117
-            const { specificationname, specificationitemid, itemid, description } = data[i];
118
-            if ((i + 1) % 2 == 0) {
119
-                rightHtml += getSpecsItemHTML({
120
-                    name: specificationname, id: specificationitemid, itemid, des: description
121
-                })
122
-            } else {
123
-                leftHtml += getSpecsItemHTML({
124
-                    name: specificationname, id: specificationitemid, itemid, des: description
125
-                });
126
-            }
127
-
128
-        }
129
-
130
-        $('.specContainerleft').html(leftHtml)
131
-        $('.specContainerRight').html(rightHtml)
132
-
133
-    }
134
-
135
-
136
-    function getParentHTML(name, productid, id, isMain) {
137
-        return `<div data-parentidgroup="${name?.replace(" ", '')}-parent" class="pb-2 groupingitems_search ${name?.replace(" ", '')}-parent">
138
-        <h5 class="py-2 smallHeadingProductDetails">${name}</h5>
139
-        <div class="d-flex gap-2 flex-lg-row flex-wrap ${id}container" data-tagid="${id}">
140
-           
141
-        </div>
142
-    </div>`;
143
-    }
144
-
145
-    function onClickHandler(e) {
146
-
147
-        $(e).parent().find('.borderselector').removeClass('borderselector');
148
-
149
-        $(e).addClass('borderselector')
150
-
151
-    }
152
-
153
-    function getChildHTML(tagid, name, isTrue,parentid) {
154
-
155
-        let blue = '#253746';
156
-        let greenLight = '#5e7975';
157
-        let brown = '#624839';
158
-        let bgColor = '';
159
-       if(name === 'Deep Sea Blue'){
160
-        bgColor = blue;
161
-       }else if(name == 'Desert Brown'){
162
-        bgColor =  brown;
163
-       }else if(name == 'Eucalyptus Green'){
164
-        bgColor = greenLight;
165
-       }
166
-
167
-        if(colorId == parentid){
168
-            return `
169
-            <div data-type="${tagid}-${name}" data-tagiditem="${tagid}" class="specsmallcard optiontaganwi ${isTrue ? 'borderselector' : ''} colorselector card text-center small-font cursor-pointer ">
170
-        <span  style="
171
-        height: 25px;
172
-        border-radius: 5px;
173
-        width:25px;
174
-        background: ${bgColor} !important;
175
-        pointer-events:none;
176
-      
177
-    "></span>
178
-            </div> `
179
-        }
180
-        return `
181
-            <div data-type="${tagid}-${name}" data-tagiditem="${tagid}" class="specsmallcard optiontaganwi ${isTrue ? 'borderselector' : ''} card text-center small-font cursor-pointer p-3">
182
-                ${name}
183
-            </div> `
184
-
185
-
186
-    }
187
-
188
-    function addeventlisteners() {
189
-
190
-        $('.optiontaganwi').each(function (i, el) {
191
-            $(el).click(function (e) {
192
-                
193
-                $('#quantity').val(1);
194
-
195
-                $(e.target).parent().find('.borderselector').removeClass('borderselector');
196
-                $(e.target).addClass('borderselector');
197
-            
198
-                currentClick = e.target;
199
-                ;
200
-             //searchComb();
201
-                // getAllCombination();
202
-                getandsetCombination();
203
-              
204
-            })
205
-        });
206
-
207
-    }
208
-
209
-    function getandsetCombination(){
210
-        
211
-        let keyOption = $(currentClick).data('tagiditem');
212
-        $('.disabled-option-item').removeClass('disabled-option-item');
213
-        let tagsNames = [];
214
-     
215
-       
216
-
217
-        let currOptionAvaIds = {};
218
-       
219
-        $('.borderselector').each(function (i,e){
220
-            let id = $(e).data('tagiditem');
221
-            tagsNames.push(id);
222
-        });
223
-      
224
-
225
-        for(let i=0;i<itemtagscombinationRes.length;i++){
226
-            let tagItems = itemtagscombinationRes[i].tagids;;
227
-            if(tagItems.includes(keyOption)){
228
-                let splitArr = tagItems.split('|');
229
-                for(let j=0;j<splitArr.length;j++){
230
-                    if(keyOption){
231
-                        currOptionAvaIds[splitArr[j]] = splitArr[j];
232
-                    }
233
-                  
234
-                }
235
-            }
236
-        }
237
-
238
-        console.log(currOptionAvaIds);
239
-        console.log(itemtagscombinationRes);
240
-        let parentsArr = []; 
241
-        $('.optiontaganwi').each(function (i,e){
242
-           
243
-            let currParent = $(e).parents('.groupingitems_search');
244
-        
245
-            if(currParent.find(`[data-tagiditem="${keyOption}"]`).length==0){
246
-                let currId = $(e).data('tagiditem');
247
-                if(!currOptionAvaIds[currId]){
248
-                    if($(e).hasClass('borderselector')){
249
-                        parentsArr.push(currParent);
250
-                        $(e).removeClass('borderselector');
251
-                    }
252
-                    $(e).addClass('disabled-option-item');
253
-                }
254
-            }
255
-        });
256
-
257
-        for(let i=0;i<parentsArr.length;i++){
258
-            let currParent = parentsArr[i];
259
-            currParent.find('.optiontaganwi').each(function (j,e){
260
-                let isTrue = $(e).hasClass('disabled-option-item');
261
-                if(!isTrue){
262
-                    $(e).addClass('borderselector');
263
-                    return false; 
264
-                }
265
-            });
266
-        }
267
-
268
-        // $('.optiontaganwi').addClass('disabled-option-item');
269
-        let parentId = $(currentClick).parents('.groupingitems_search');
270
-        let parentData = $(parentId).data('parentidgroup');
271
-        let parentArr = [];
272
-       $('.groupingitems_search').each(function (i,e){
273
-           const curParentId =  $(e).data('parentidgroup');
274
-           if(parentData != curParentId){
275
-            let obj = {
276
-                name:$(e).find('.smallHeadingProductDetails').html(),
277
-                arr:[]
278
-            }
279
-                $(e).find('.optiontaganwi').each(function (j,evt){
280
-                    let id = $(evt).data('tagiditem');
281
-                    obj.arr.push(id);
282
-                });
283
-                parentArr.push(obj);
284
-
285
-           }
286
-       })
287
-
288
-       console.log(parentArr);
289
-
290
-       let arrone = parentArr[0].arr;
291
-       let arrtwo = []; 
292
-       if(parentArr.length>1){
293
-        arrtwo = parentArr[1]?.arr;
294
-       }
295
-
296
-       let currId = keyOption;
297
-       let ids = [];
298
-       for(let i=0;i<arrone.length;i++){
299
-        //let currEl = [currId,arrone[i]];
300
-        let currEl = ``
301
-        for(let j=0;j<arrtwo.length;j++){
302
-            currEl = `${currId}|${arrone[i]}|${arrtwo[j]}`;
303
-
304
-            ids.push(currEl);
305
-            currEl = '';
306
-        }
307
-        
308
-       }
309
-       console.log(ids,'ids');
310
-       let findObj = [];
311
-       debugger 
312
-       for(let i=0;i<ids.length;i++){
313
-      
314
-        let curId = ids[i]
315
-        for(let j=0;j<itemtagscombinationRes.length;j++){
316
-            const currItem = itemtagscombinationRes[j].tagids.split('|');
317
-            let isTrue = true;
318
-            for(let k=0;k<currItem.length;k++){
319
-                if(!curId.includes(currItem[k])){
320
-                    isTrue = false;
321
-                    break;
322
-                }
323
-            }
324
-
325
-            if(isTrue){
326
-                findObj.push(itemtagscombinationRes[j]);
327
-            }
328
-        }
329
-       }
330
-
331
-
332
-       console.log(findObj);
333
-
334
-       $('.optiontaganwi').addClass('disabled-option-item');
335
-
336
-debugger;
337
-       for(let i=0;i<findObj.length;i++){
338
-
339
-        let item = findObj[i].tagids.split('|');
340
-        for(let j=0;j<item.length;j++){
341
-            $(`[data-tagiditem=${item[j]}]`).removeClass('disabled-option-item');
342
-        }
343
-       
344
-       }
345
-
346
-       $(parentId).find('.optiontaganwi').each(function (i,e){
347
-        $(e).removeClass('disabled-option-item')
348
-       });
349
-
350
-
351
-       for(let i=0;i<itemtagscombinationRes.length;i++){
352
-        let currIds = itemtagscombinationRes[i].tagids;
353
-        let isTrue = true;
354
-        let isPro = false;
355
-
356
-        for(let j=0;j<tagsNames.length;j++){
357
-            if(tagsNames.join().includes('106631360000128')&&(tagsNames.join().includes('106631360000132')||tagsNames.join().includes('106631360000133'))){
358
-                isPro = true;
359
-            }
360
-            if(!currIds.includes(tagsNames[j])){
361
-                isTrue = false;
362
-            }
363
-        }
364
-
365
-        if(isTrue){
366
-            const { quantity } = itemtagscombinationRes[i];
367
-            if (true) {
368
-                currentComb = itemtagscombinationRes[i];
369
-              
370
-                updateDetailsByObj(itemtagscombinationRes[i]);
371
-
372
-                if(isPro){
373
-                    $(`[data-tagiditem="106631360000089"]`).addClass(' disabled-option-item')
374
-                    $(`[data-tagiditem="106631360000088"]`).addClass(' disabled-option-item')
375
-                }
376
-
377
-                
378
-            } else {
379
-
380
-                let name = itemtagscombinationRes[i].itemname.split('-')[0];
381
-                $('#addtocart').addClass('disabled');
382
-                let itemsName = name;
383
-                $('.borderselector').each(function (i, e) {
384
-                    itemsName += ` ${$(e).html().trim()}`;
385
-                });
386
-
387
-                updateItemId(null);
388
-
389
-                let defaultImg = itemtagscombinationRes[i].itemimageurl ? imgServerNameBuild(itemtagscombinationRes[i].itemimageurl) : `./dist/assets/imgs/nophoto.png`;
390
-            
391
-                $('.productDetailsMain  > img').attr('src', defaultImg);
392
-
393
-                specification_wrap_action.remove();
394
-                $('#skudetailitem').val(-1)
395
-                $('.productname').html(itemsName)
396
-               
397
-
398
-                $('.msgErrorDetailsItem').removeClass('d-none');
399
-                $('.des_productdes').html('');
400
-                $('.price').html('');
401
-            }
402
-
403
-            initAddToCart()
404
-            return;
405
-        }
406
-        
407
-       }
408
-
409
-   
410
-       
411
-   
412
-        // return;
413
-
414
-    
415
-
416
-
417
-        return;
418
-        let commonTags = [];
419
-      //  $('.optiontaganwi').addClass('disabled-option-item')
420
-
421
-        for(let i=0;i<tagsNames.length;i++){
422
-            let currtagName = tagsNames[i];
423
-            let arr = currtagItemCom(currtagName);
424
-            commonTags.push(arr);
425
-        }
426
-
427
-        
428
-
429
-         console.log(commonTags);
430
-
431
-        // for(let i=0;i<commonTags.length;i++){
432
-        //     let currObj = commonTags[i];
433
-        //     for(let item in currObj){
434
-        //         console.log($(`[data-tagiditem="${item}"]`));
435
-        //         $(`[data-tagiditem="${item}"]`).removeClass('disabled-option-item')
436
-        //     }
437
-        // }
438
-
439
-        let finalAns = {};
440
-        let arra = [];
441
-        for(let i=0;i<commonTags.length;i++){
442
-            let currObj = commonTags[i];
443
-            for(let item in currObj){
444
-                let isTrue = true;
445
-                for(let j=0;j<commonTags.length;j++){
446
-                    if(j!=i){
447
-                        let currComb = commonTags[j];
448
-                        if(!currComb[item]){
449
-                            isTrue = false;
450
-                        }
451
-                    }
452
-                }
453
-                if(isTrue){
454
-                    arra.push(currObj[item])
455
-                    finalAns[currObj[item]] = currObj[item];
456
-                    $(`[data-tagiditem="${item}"]`).removeClass('disabled-option-item')
457
-                }
458
-            }
459
-        }
460
-
461
-        // console.log(arra);
462
-
463
-        
464
-        
465
-
466
-       
467
-       
468
-        // for(let i=0;i<itemtagscombinationRes.length;i++){
469
-        //     let tagItems = itemtagscombinationRes[i].tagids;;
470
-        //     if(tagItems.includes(keyOption)){
471
-        //         let splitArr = tagItems.split('|');
472
-        //         for(let j=0;j<splitArr.length;j++){
473
-        //             commonTags[splitArr[j]] = splitArr[j];
474
-        //         }
475
-        //     }
476
-        // }
477
-
478
-
479
-
480
-        // for(let i=0;i<currOptionAvaIds.length;i++){
481
-        //     let currId = currOptionAvaIds[i];
482
-        //     if(parentId.find(currId).length === 0){
483
-        //         console.log(currId);
484
-        //     }
485
-        // }
486
-    }
487
-
488
-    
489
-    
490
-    function currtagItemCom(keyOption){
491
-        debugger;
492
-        let arr = [];
493
-        let commonTags = {};
494
-        for(let i=0;i<itemtagscombinationRes.length;i++){
495
-            let tagItems = itemtagscombinationRes[i].tagids;;
496
-            if(tagItems.includes(keyOption)){
497
-                let splitArr = tagItems.split('|');
498
-                for(let j=0;j<splitArr.length;j++){
499
-                    if(!commonTags[splitArr[j]]){
500
-                        commonTags[splitArr[j]] = {
501
-                        keyOption,
502
-                        data:itemtagscombinationRes[i]
503
-                        };
504
-                        arr.push(splitArr[j]);
505
-
506
-                    }
507
-                    
508
-                }
509
-            }
510
-        }
511
-
512
-        return commonTags;
513
-    }
514
-
515
-
516
-
517
-    function updateDetailsByObj(obj) {
518
-        $('.productname').html(obj.itemname);
519
-        $('.titleproductnav').html(obj.itemname);
520
-        let  [currencySymbol, amount] = getCurrencySymbol(obj?.pricelist||0);
521
-
522
-        let commingSoonText = window.location.href.toLowerCase().includes('zeno')||window.location.href.includes('fyro')
523
-        $('.price').html(obj.pricelist ? `<span class="font-w600">${currencySymbol}${amount}</span>${commingSoonText?'<span class="mx-1 badge  d-md-none  bg-gradient-violet text-a-color">Pre Order Now!</span>':''}` : 'pre order now');
524
-        appendSpecs(obj.itemid)
525
-        $('#skudetailitem').val(obj.sku)
526
-        $('.des_productdes').html(obj.itemdescription);
527
-        $('#addtocart').attr('data-qty', obj.quantity);
528
-
529
-
530
-        let defaultImg = obj.itemimageurl ? imgServerNameBuild(obj.itemimageurl) : `./dist/assets/imgs/nophoto.png`;
531
-      //  console.log(obj.itemimageurl, 'obj.itemimageurlobj.itemimageurlobj.itemimageurl');
532
-debugger;
533
-let productId = window.location.hash.split('#')[1]?.split('=')[1];
534
-let itemId = window.location.hash.split('#')[2]?.split('=')[1];
535
-history.replaceState(undefined, undefined, `#productId=${productId}#itemid=${obj.itemid}`)
536
-        $('.productDetailsMain  > img').attr('src', defaultImg).attr('loading','lazy');
537
-
538
-        updateItemId(obj.itemid);
539
-
540
-console.log(obj,'objobjobj');
541
-debugger;
542
-        if (!obj.pricelist || !obj.quantity) {
543
-            $('.buynow').attr('disabled', true);
544
-            $('#addtocart').attr('disabled', true);
545
-        } else {
546
-            $('.buynow').attr('disabled', false);
547
-            $('#addtocart').attr('disabled', false);
548
-        }
549
-    }
550
-
551
-    function searchComb() {
552
-        let valuesSelected = [];
553
-        $('.optiontaganwi').removeClass('disabled-option-item')
554
-
555
-        $('#addtocart').removeClass('disabled');
556
-        $('.msgErrorDetailsItem').addClass('d-none');
557
-        $('.borderselector,border_selector').each(function (i, el) {
558
-            console.log($(el).html())
559
-            let val = $(el).data('tagiditem');
560
-            valuesSelected.push(val);
561
-        });
562
-
563
-        let labelRecord = {};
564
-
565
-        for (let label in labels) {
566
-            labelRecord[label] = false;
567
-        }
568
-
569
-        console.log(labelRecord);
570
-        specification_wrap_action.add();
571
-        console.log(group);
572
-        let unFiler = null;
573
-        for (let i = 0; i < itemtagscombinationRes.length; i++) {
574
-            const currItem = itemtagscombinationRes[i];
575
-            const { tagids } = currItem;
576
-
577
-
578
-            let isTrue = true;
579
-            let labelFilter = labelRecord;
580
-
581
-            for (let i = 0; i < valuesSelected.length; i++) {
582
-
583
-                if (!tagids.includes(valuesSelected[i])) {
584
-                    isTrue = false
585
-
586
-                    unFiler = labelFilter;
587
-                    break;
588
-                }
589
-                labelFilter[group[valuesSelected[i]]] = true;
590
-            }
591
-
592
-            if (isTrue) {
593
-              //  console.log(itemtagscombinationRes[i], 'itemtagscombinationRes[i]');
594
-                const { quantity } = itemtagscombinationRes[i];
595
-                if (quantity >= $('#quantity').val() && quantity >= 1) {
596
-                    currentComb = itemtagscombinationRes[i];
597
-                    // $('.productname').html(itemtagscombinationRes[i].itemname)
598
-                    // $('.price').html(itemtagscombinationRes[i].pricelist);
599
-                    // location.hash = itemtagscombinationRes[i].itemname.trim();
600
-                    // appendSpecs(itemtagscombinationRes[i].itemid)
601
-                    // history.replaceState(null, null, `#itemid=${itemtagscombinationRes[i].itemid}#${itemtagscombinationRes[i].itemname.trim()}`);
602
-
603
-                    // $('#skudetailitem').val(itemtagscombinationRes[i].sku)
604
-                    // $('.des_productdes').html(itemtagscombinationRes[i].itemdescription);
605
-                    updateDetailsByObj(itemtagscombinationRes[i]);
606
-                } else {
607
-
608
-                    let name = itemtagscombinationRes[i].itemname.split('-')[0];
609
-                    $('#addtocart').addClass('disabled');
610
-                    let itemsName = name;
611
-                    $('.borderselector').each(function (i, e) {
612
-                        itemsName += ` ${$(e).html().trim()}`;
613
-                    });
614
-
615
-                    updateItemId(null);
616
-
617
-                    let defaultImg = itemtagscombinationRes[i].itemimageurl ? imgServerNameBuild(itemtagscombinationRes[i].itemimageurl) : `./dist/assets/imgs/nophoto.png`;
618
-                   // console.log(itemtagscombinationRes[i].itemimageurl, 'obj.itemimageurlobj.itemimageurlobj.itemimageurl');
619
-            
620
-                    $('.productDetailsMain  > img').attr('src', defaultImg);
621
-
622
-                    specification_wrap_action.remove();
623
-                    $('#skudetailitem').val(-1)
624
-                    $('.productname').html(itemsName)
625
-                    // history.replaceState(null, null, `#`);
626
-
627
-                    $('.msgErrorDetailsItem').removeClass('d-none');
628
-                    $('.des_productdes').html('');
629
-                    $('.price').html('');
630
-                }
631
-
632
-                initAddToCart()
633
-                return;
634
-
635
-            }
636
-
637
-        }
638
-
639
-        
640
-
641
-        // alert("j");
642
-       
643
-        let name = itemtagscombinationRes[0].itemname.split('-')[0];
644
-        let itemsName = name;
645
-        $('.borderselector').each(function (i, e) {
646
-            itemsName += `- ${$(e).html().trim()}`;
647
-        })
648
-        specification_wrap_action.remove();
649
-        $('.productname').html(itemsName)
650
-        $('#skudetailitem').val(-1)
651
-        $('.price').html('');
652
-        $('#addtocart').addClass('disabled');
653
-        $('.msgErrorDetailsItem').removeClass('d-none');
654
-
655
-        initAddToCart()
656
-    }
657
-
658
-    function getAllCombination() {
659
-        debugger;
660
-        const currClickAttr = $(currentClick).html().trim();
661
-        const optionId = $(currentClick).data('tagiditem');
662
-
663
-        let curr = $(currentClick).parents('.groupingitems_search').data('parentidgroup');
664
-        $('.groupingitems_search').each(function (i, e) {
665
-            const id = $(e).data('parentidgroup');
666
-            if (id != curr) {
667
-                $(e).find('.optiontaganwi').addClass('disabled-option-item');
668
-                $(e).find('.borderselector').removeClass('borderselector');
669
-            }
670
-        });
671
-
672
-        let ansArr = [];
673
-        let index = 0;
674
-        let comb = null;
675
-        for(let i=0;i<itemtagscombinationRes.length;i++){
676
-          
677
-            let currIds = itemtagscombinationRes[i].tagids;
678
-          
679
-            if(currIds.includes(optionId)){
680
-                currIds = currIds.split('|');
681
-              
682
-                for(let j=0;j<currIds.length;j++){
683
-                    debugger;
684
-                    if(index==0 &&optionId != currIds[j] ) {
685
-                        $(`[data-tagiditem="${currIds[j]}"]`).addClass('borderselector')
686
-                        comb = itemtagscombinationRes[i];
687
-                        index++;
688
-                    }
689
-                    $(`[data-tagiditem="${currIds[j]}"]`).removeClass('disabled-option-item');
690
-                   
691
-                    // $().parents('[data-tagid]').find()
692
-                }    
693
-    
694
-            }
695
-
696
-            
697
-           
698
-        }
699
-
700
-      //  console.log(comb,'comb tag');
701
-
702
-        updateDetailsByObj(comb);
703
-
704
-        let currentItem = comb.tagids.split('|');
705
-
706
-        for(let i=0;i<currentItem.length;i++){
707
-            $(`[data-tagiditem="${currentItem[i]}"]`).removeClass('disabled-option-item').addClass('borderselector');
708
-        }
709
-
710
-        // history.replaceState(null, null, `#${comb.itemname}`);
711
-        // window.location.href =  `#${comb.itemname}`
712
-        console.log(itemtagscombinationRes,'gobal');
713
-        return;
714
-      
715
-
716
-    };
717
-
718
-
719
-   
720
-
721
-
722
-    async function getProductDetails(id) {
723
-
724
-
725
-        debugger;
726
-
727
-        let resData = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/productattributelist/productid/${id}`, true);
728
-        
729
-        if (resData.isError) {
730
-            loadingActions.removeLoader();
731
-            alert(resData.errorMsg.message);
732
-            return;
733
-        }
734
-
735
-        if(resData.response.result == '[]' || !resData.response.result){
736
-            $('.barbgnav').removeClass('d-none')
737
-            loadingActions.removeLoader();
738
-            toasterHelper("Something Went Wrong")
739
-            return;
740
-        }
741
-
742
-        let res = resData.response;
743
-
744
-        res = JSON.parse(res.result);
745
-       // console.log(res, 'productattributelist');
746
-
747
-        if (!res) {
748
-            loadingActions.removeLoader();
749
-            return;
750
-        };
751
-
752
-
753
-
754
-
755
-        let html = '';
756
-
757
-        for (let i = 0; i < res.length; i++) {
758
-            const currItem = res[i];
759
-            // parenttagid means under what label
760
-            // tag id means it know unquie id
761
-            const { parentattribute, parenttagid, tagid, attribute, productid } = currItem;
762
-
763
-            if (labels[parentattribute]) {
764
-                labels[parentattribute].items.push({
765
-                    attribute,
766
-                    tagid: tagid
767
-                });
768
-            } else {
769
-                labels[parentattribute] = {
770
-                    id: parenttagid,
771
-                    items: [{
772
-                        attribute,
773
-                        tagid: tagid
774
-                    }]
775
-                };
776
-               
777
-                if(parentattribute.toLowerCase() === 'colour'){
778
-                    colorId = parenttagid;
779
-                }
780
-                html += getParentHTML(parentattribute, productid, parenttagid, i == 0);
781
-            }
782
-
783
-        }
784
-        $('#spec-container-details').html(html);
785
-
786
-
787
-      console.log(labels,'labels');
788
-
789
-        let childIds = [];
790
-
791
-        for (let item in labels) {
792
-            let { id, items } = labels[item];
793
-            // $(`[data-tagid=${id}]`)
794
-            let html = '';
795
-
796
-            for (let i = 0; i < items.length; i++) {
797
-                const { attribute, tagid } = items[i]
798
-                childIds.push(tagid);
799
-                group[attribute] = item;
800
-                console.log(attribute,colorId,"s");
801
-                html += getChildHTML(tagid, attribute, i == 0,id);
802
-                console.log(attribute,"attributeattributeattributeattribute");
803
-            }
804
-            debugger;
805
-            $(`[data-tagid="${id}"]`).html(html);
806
-        }
807
-        itemtagscombinationRes = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getitemwithoutbranch/productid/${id}`, true);
808
-        itemtagscombinationRes = JSON.parse(itemtagscombinationRes.response.result);
809
-        console.log(itemtagscombinationRes, "conductt");
810
-
811
-        let itemidSearch = window.location.hash.split('#')[2]?.split('=')[1];
812
-
813
-        if(!itemidSearch){
814
-            itemidSearch = itemtagscombinationRes[0].itemid
815
-        }
816
-
817
-        let valuesSelected = [];
818
-
819
-        $('.borderselector').each(function (i, el) {
820
-
821
-            let val = $(el).html();
822
-            valuesSelected.push(val.trim());
823
-        });
824
-debugger;
825
-        // let searchParams = window.location.search.split("&");
826
-        // let skuId = window.location.hash.split('#')[2].split('=')[1];
827
-        // skuId = skuId.split('=')[1]
828
-        let isGo = true;
829
-        for (let i = 0; i < itemtagscombinationRes.length; i++) {
830
-            const currItem = itemtagscombinationRes[i];
831
-
832
-            const { tagnames, sku, itemid } = currItem;
833
-
834
-            isThereInLabel[tagnames] = itemtagscombinationRes[i];
835
-            let isTrue = true;
836
-            if (isGo) {
837
-                // for(let i=0;i<valuesSelected.length;i++){
838
-                //     if(!tagnames.includes(valuesSelected[i])){
839
-                //         isTrue = false
840
-                //     }
841
-                // }
842
-                if (itemidSearch != itemid) {
843
-                    isTrue = false
844
-                }
845
-                // if (i != 0) {
846
-                //     isTrue = false
847
-                // }
848
-                if (isTrue) {
849
-
850
-                   // console.log(itemtagscombinationRes[i], 'itemtagscombinationRes[i]');
851
-
852
-
853
-                    currentComb = itemtagscombinationRes[i];
854
-
855
-
856
-                    updateDetailsByObj(itemtagscombinationRes[i]);
857
-
858
-
859
-
860
-                    isGo = false;
861
-                    let { tagnames, tagids, pricelist } = itemtagscombinationRes[i];
862
-                    tagids = tagids.split('|');
863
-                    tagnames = tagnames.split('|');
864
-                    $('.optiontaganwi').removeClass('borderselector');
865
-
866
-                    for (let i = 0; i < tagids.length; i++) {
867
-
868
-                        $(`[data-tagiditem="${tagids[i]}"]`).addClass('borderselector');
869
-                    }
870
-
871
-                    break;
872
-                    // tagiditem
873
-                }
874
-            }
875
-        }
876
-
877
-
878
-        if (isGo && itemtagscombinationRes.length != 0) {
879
-
880
-          //  console.log(itemtagscombinationRes[0]);
881
-            let { tagnames, tagids, pricelist } = itemtagscombinationRes[0];
882
-            tagids = tagids.split('|');
883
-            tagnames = tagnames.split('|');
884
-            $('.optiontaganwi').removeClass('borderselector');
885
-            currentComb = itemtagscombinationRes[0];
886
-            // updateItemId(itemtagscombinationRes[0].itemid);
887
-
888
-            for (let i = 0; i < tagids.length; i++) {
889
-
890
-                $(`[data-type="${tagids[i]}-${tagnames[i]}"]`).addClass('borderselector');
891
-                // $(`[data-type="${tagids[i]}-Eucalyptus Green"]`).removeClass('borderselector');
892
-                // $(`[data-type="${tagids[i]}-Desert Brown"]`).removeClass('borderselector');
893
-                // $(`[data-type="${tagids[i]}-Deep Sea Blue"]`).removeClass('borderselector');
894
-            }
895
-
896
-            // $('.price').html(pricelist);
897
-            // $('.des_productdes').html(itemtagscombinationRes[0].itemdescription);
898
-            // appendSpecs(itemtagscombinationRes[0].itemid);
899
-
900
-            updateDetailsByObj(itemtagscombinationRes[0]);
901
-            //console.log(childIds);
902
-            // 
903
-
904
-        }
905
-
906
-      
907
-
908
-        //getAllCombination()
909
-
910
-
911
-
912
-        // for(let i=0;i<itemtagscombinationRes.length;i++){
913
-        //     const {tagnames} = itemtagscombinationRes[i];
914
-
915
-        // }
916
-
917
-        $('#spec-container-details').children().find('.specsmallcard').removeClass('specsmallcard');
918
-
919
-
920
-
921
-        //getting the first borderselector in first $('.groupingitems_search')[0] 
922
-
923
-        let firstParentGroup = $('.groupingitems_search')[0];
924
-        debugger;
925
-        let optionId = $(firstParentGroup).find('.borderselector').data('tagiditem');
926
-        
927
-        currentClick = $(firstParentGroup).find('.borderselector')
928
-        getandsetCombination();
929
-        addeventlisteners();
930
-        loadingActions.removeLoader();
931
-        return;
932
-       
933
-
934
-    }
935
-
936
-
937
-}
938
-startDetails();
939
-

+ 0
- 650
dist/js/productdetails/laptopdetails.js-old 파일 보기

@@ -1,650 +0,0 @@
1
-function startDetails() {
2
-    // http://127.0.0.1:5502/productdetails.html?productId=106633230000024
3
-    if (window.location.search.split('=')[0] == '') {
4
-        window.location.href = "/notfound.html";
5
-        return;
6
-    }
7
-    let productId = window.location.href.split('=')[1].split('&')[0].split('#')[0];
8
-    console.log(productId);
9
-    let itemtagscombinationRes = null;
10
-    let labels = {};
11
-    let isThereInLabel = {};
12
-    let currentComb = null;
13
-
14
-    let group = {};
15
-
16
-    let loadingActions = {
17
-        addLoader() {
18
-            $('.loadingCall').removeClass('d-none');
19
-            $('.mainContanierProduct').addClass('d-none');
20
-        },
21
-        removeLoader() {
22
-            $('.loadingCall').addClass('d-none');
23
-            $('.mainContanierProduct').removeClass('d-none');
24
-        }
25
-    }
26
-
27
-    let currentClick = null;
28
-
29
-    if (productId) {
30
-        loadingActions.addLoader();
31
-        updateProductId(productId);
32
-        getProductDetails(productId);
33
-        appendSpecs(productId)
34
-    } else {
35
-        window.location.href = "/notfound.html"
36
-    }
37
-
38
-    function updateProductId(val) {
39
-        $('#productidtag').val(val);
40
-    }
41
-
42
-    function updateItemId(val) {
43
-        $('#itemidtag').val(val);
44
-    }
45
-
46
-    let specification_wrap_action = {
47
-        remove() {
48
-
49
-            $('.specification-wrap').addClass('d-none');
50
-        },
51
-
52
-        add() {
53
-            $('.specification-wrap').removeClass('d-none');
54
-        }
55
-    }
56
-
57
-    let description_action = {
58
-        addVal(value) {
59
-            $('.description-wrap > p').html(value);
60
-        },
61
-
62
-        removeVal(value) {
63
-            $('.description-wrap > p').html('');
64
-        }
65
-    }
66
-
67
-    function getSpecsItemHTML({ name, des, itemid, id }) {
68
-        return `<div id="${id}" data-specitemid="${itemid}" class="">
69
-        <div class="row  border-bottom">
70
-            <div class="col-sm-6 bg-gray-3 py-2">
71
-            ${name}
72
-            </div>
73
-            <div class="col-sm-6  py-2">
74
-            ${des}	
75
-            </div>
76
-        </div>
77
-    </div>`;
78
-        return ` <tr id="${id}" data-specitemid="${itemid}">
79
-        <td style="width:200px">${name}</td>
80
-        <td class="">${des}</td>
81
-    </tr>`;
82
-    }
83
-    // function getSpecsItemHTML({name,des,itemid,id}){
84
-    //     return ` <tr id="${id}" data-specitemid="${itemid}">
85
-    //     <td style="width:200px">${name}</td>
86
-    //     <td class="">${des}</td>
87
-    // </tr>`;
88
-    // }
89
-
90
-    async function appendSpecs(id) {
91
-        let resData = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/itemspecifications/itemid/${id}`, true);
92
-
93
-        if (resData.isError) {
94
-            $('.productdetailstabs').addClass('d-none');
95
-            $('.specContainerleft').html('')
96
-            $('.specContainerRight').html('')
97
-            return;
98
-        }
99
-        $('.productdetailstabs ').removeClass('d-none');
100
-        const res = resData.response;
101
-        console.log(JSON.parse(res.result));
102
-        const data = JSON.parse(res.result);
103
-        console.log(data);
104
-        let html = '';
105
-        let leftHtml = '';
106
-        let rightHtml = '';
107
-
108
-        if (data.length == 0) {
109
-            $('.productdetailstabs ').addClass('d-none');
110
-            $('.specContainerleft').html('')
111
-            $('.specContainerRight').html('')
112
-            return;
113
-        }
114
-
115
-        for (let i = 0; i < data.length; i++) {
116
-            const { specificationname, specificationitemid, itemid, description } = data[i];
117
-            if ((i + 1) % 2 == 0) {
118
-                rightHtml += getSpecsItemHTML({
119
-                    name: specificationname, id: specificationitemid, itemid, des: description
120
-                })
121
-            } else {
122
-                leftHtml += getSpecsItemHTML({
123
-                    name: specificationname, id: specificationitemid, itemid, des: description
124
-                });
125
-            }
126
-
127
-        }
128
-
129
-        $('.specContainerleft').html(leftHtml)
130
-        $('.specContainerRight').html(rightHtml)
131
-
132
-    }
133
-
134
-
135
-    function getParentHTML(name, productid, id, isMain) {
136
-        return `<div class="pb-2 $${name?.replace(" ", '')}-parent">
137
-        <h5 class="py-2 smallHeadingProductDetails">${name}</h5>
138
-        <div class="d-flex gap-2 flex-lg-row flex-wrap ${id}container" data-tagid="${id}">
139
-           
140
-        </div>
141
-    </div>`;
142
-    }
143
-
144
-    function onClickHandler(e) {
145
-
146
-        $(e).parent().find('.borderselector').removeClass('borderselector');
147
-
148
-        $(e).addClass('borderselector')
149
-
150
-    }
151
-
152
-    function getChildHTML(tagid, name, isTrue) {
153
-        
154
-        let  item_color_1 = `#5e7975`;
155
-        let item_color_2 = `#624839`;
156
-        let item_color_3 = `#253746`;
157
-        if(name == "Eucalyptus Green"){
158
-
159
-            return `<p item_color=${item_color_1} data-type="${tagid}-${name}" data-tagiditem="${tagid}" class="optiontaganwi_color specsmallcard optiontaganwi fs-7 cursor-pointer text-white rounded mb-0 me-1 py-2 px-3" ${item_color_1 ? `style="background-color:${item_color_1}"`:''}><span class="${isTrue ? 'border-bottom color' : 'color'}">${name}</span></p>`;
160
-
161
-        }else if(name == "Desert Brown"){
162
-
163
-            return `<p item_color=${item_color_2} data-type="${tagid}-${name}" data-tagiditem="${tagid}" class="optiontaganwi_color specsmallcard optiontaganwi mb-0 fs-7 cursor-pointer me-1 rounded text-white py-2 px-3" ${item_color_2 ? `style="background-color:${item_color_2}"`:''}><span class="${isTrue ? 'border-bottom color' : 'color'}">${name}</span></p>`;
164
-
165
-        }else if(name == "Deep Sea Blue"){
166
-
167
-            return `<p item_color=${item_color_3} data-type="${tagid}-${name}" data-tagiditem="${tagid}" class="optiontaganwi_color specsmallcard optiontaganwi mb-0 fs-7 text-white cursor-pointer rounded py-2 px-3 " ${item_color_3 ? `style="background-color:${item_color_3}"`:''}><span class="${isTrue ? 'border-bottom color' : 'color'}">${name}</span></p>`;
168
-        }
169
-        else{
170
-            return `
171
-            <div data-type="${tagid}-${name}" data-tagiditem="${tagid}" class="specsmallcard optiontaganwi ${isTrue ? 'borderselector' : ''} card text-center small-font cursor-pointer p-3">
172
-                ${name}
173
-            </div> `
174
-         }
175
-   
176
-    }
177
-
178
-    function addeventlisteners() {
179
-
180
-        $('.optiontaganwi').each(function (i, el) {
181
-            $(el).click(function (e) {
182
-                $('#quantity').val(1);
183
-                debugger;
184
-                let ele_col = $(e.target).hasClass("color");
185
-                let ele_col1 = $(e.target).hasClass("optiontaganwi_color");
186
-                if(ele_col === true){
187
-                    $(e.target).parent().find("span.color").removeClass('border-bottom');
188
-                    $(e.target).parent().addClass("border_selector");
189
-                    $(e.target).addClass("border-bottom");
190
-                    $(e.target).parent().find("span.border-bottom").removeClass("border-bottom text-dark");
191
-                    $(e.target).addClass("border_selector");
192
-                    $(e.target).find("span.color").addClass("border-bottom text-dark");
193
-                    $(e.target).parent().find('.borderselector').removeClass('borderselector');
194
-                    // $(e.target).addClass('borderselector');
195
-                    searchComb();
196
-                    currentClick = e.target;
197
-                }else if(ele_col1 === true){
198
-                    $(e.target).parent().find("span.text-dark").removeClass("text-dark border-bottom");
199
-                    $(e.target).addClass("border_selector");
200
-                    $(e.target).find("span.color").addClass("text-dark");
201
-                    $(e.target).parent().find('.borderselector').removeClass('borderselector');
202
-                    $(e.target).addClass('borderselector');
203
-                    searchComb();
204
-                    currentClick = e.target;
205
-                }else{
206
-                    $(e.target).parent().find('.borderselector').removeClass('borderselector');
207
-                    $(e.target).addClass('borderselector');
208
-                    searchComb();
209
-                    currentClick = e.target;
210
-                 }
211
-              
212
-                searchComb();
213
-                currentClick = e.target;
214
-                // getAllCombination();
215
-            })
216
-        });
217
-        // $('.optiontaganwi_color span.color').each(function (i, el) {
218
-        //     $(el).click(function (e) {
219
-        //         $('#quantity').val(1);
220
-        //         $(e.target).parent().find("span.border-bottom").removeClass("border-bottom");
221
-        //         $(e.target).addClass("border-bottom");
222
-        //         searchComb();
223
-        //         currentClick = e.target;
224
-        //         // getAllCombination();
225
-        //     })
226
-        // });
227
-    }
228
-
229
-    // function getChildHTML(tagid,name,isTrue){
230
-    //     return `
231
-    //     <div  data-type="${tagid}-${name}" data-tagiditem="${tagid}" class="specsmallcard optiontaganwi ${isTrue?'borderselector':''} card small-font cursor-pointer p-3">
232
-    //         ${name}
233
-    //     </div>
234
-    // `
235
-    // }
236
-
237
-    // function addeventlisteners(){
238
-      
239
-    //     $('.optiontaganwi').each(function (i,el){
240
-    //       $(el).click(function (e){
241
-    //         $('#quantity').val(1)
242
-    //         $(e.target).parent().find('.borderselector').removeClass('borderselector');
243
-    //         $(e.target).addClass('borderselector')
244
-    //        searchComb();
245
-    //         currentClick = e.target;
246
-    //        // getAllCombination();
247
-    //       })
248
-    //     });
249
-    // }
250
-
251
-    function updateDetailsByObj(obj) {
252
-        $('.productname').html(obj.itemname)
253
-        $('.price').html(obj.pricelist?obj.pricelist:'coming soon');
254
-        appendSpecs(obj.itemid)
255
-        $('#skudetailitem').val(obj.sku)
256
-        $('.des_productdes').html(obj.itemdescription);
257
-        $('#addtocart').attr('data-qty', obj.quantity);
258
-
259
-
260
-        let defaultImg = obj.itemimageurl ? imgServerNameBuild(obj.itemimageurl) : `./dist/assets/imgs/nophoto.png`;
261
-        console.log(obj.itemimageurl, 'obj.itemimageurlobj.itemimageurlobj.itemimageurl');
262
-
263
-        $('.productDetailsMain  > img').attr('src', defaultImg);
264
-
265
-        updateItemId(obj.itemid);
266
-        
267
-
268
-        if(!obj.pricelist){
269
-            $('.buynow').attr('disabled',true);
270
-            $('#addtocart').attr('disabled',true);
271
-        }else{
272
-            $('.buynow').attr('disabled',false);
273
-            $('#addtocart').attr('disabled',false);
274
-        }
275
-    }
276
-
277
-    function searchComb() {
278
-        let valuesSelected = [];
279
-
280
-
281
-        $('#addtocart').removeClass('disabled');
282
-        $('.msgErrorDetailsItem').addClass('d-none');
283
-        $('.borderselector,border_selector').each(function (i, el) {
284
-            console.log($(el).html())
285
-            let val = $(el).html();
286
-            valuesSelected.push(val.trim());
287
-        });
288
-
289
-        let labelRecord = {};
290
-
291
-        for (let label in labels) {
292
-            labelRecord[label] = false;
293
-        }
294
-
295
-        console.log(labelRecord);
296
-        specification_wrap_action.add();
297
-        console.log(group);
298
-        let unFiler = null;
299
-        for (let i = 0; i < itemtagscombinationRes.length; i++) {
300
-            const currItem = itemtagscombinationRes[i];
301
-            const { tagnames } = currItem;
302
-
303
-
304
-            let isTrue = true;
305
-            let labelFilter = labelRecord;
306
-
307
-            for (let i = 0; i < valuesSelected.length; i++) {
308
-
309
-                if (!tagnames.includes(valuesSelected[i])) {
310
-                    isTrue = false
311
-
312
-                    unFiler = labelFilter;
313
-                    break;
314
-                }
315
-                labelFilter[group[valuesSelected[i]]] = true;
316
-            }
317
-
318
-            if (isTrue) {
319
-                console.log(itemtagscombinationRes[i], 'itemtagscombinationRes[i]');
320
-                const { quantity } = itemtagscombinationRes[i];
321
-                if (quantity >= $('#quantity').val() && quantity >= 1) {
322
-                    currentComb = itemtagscombinationRes[i];
323
-                    // $('.productname').html(itemtagscombinationRes[i].itemname)
324
-                    // $('.price').html(itemtagscombinationRes[i].pricelist);
325
-                    // location.hash = itemtagscombinationRes[i].itemname.trim();
326
-                    // appendSpecs(itemtagscombinationRes[i].itemid)
327
-                    history.replaceState(null, null, `#itemid=${itemtagscombinationRes[i].itemid}#${itemtagscombinationRes[i].itemname.trim()}`);
328
-
329
-                    // $('#skudetailitem').val(itemtagscombinationRes[i].sku)
330
-                    // $('.des_productdes').html(itemtagscombinationRes[i].itemdescription);
331
-                    updateDetailsByObj(itemtagscombinationRes[i]);
332
-                } else {
333
-
334
-                    let name = itemtagscombinationRes[i].itemname.split('-')[0];
335
-                    $('#addtocart').addClass('disabled');
336
-                    let itemsName = name;
337
-                    $('.borderselector').each(function (i, e) {
338
-                        itemsName += ` ${$(e).html().trim()}`;
339
-                    });
340
-
341
-                    updateItemId(null);
342
-
343
-                    specification_wrap_action.remove();
344
-                    $('#skudetailitem').val(-1)
345
-                    $('.productname').html(itemsName)
346
-                    history.replaceState(null, null, `#`);
347
-
348
-                    $('.msgErrorDetailsItem').removeClass('d-none');
349
-                    $('.des_productdes').html('');
350
-                    $('.price').html('');
351
-                }
352
-
353
-                initAddToCart()
354
-                return;
355
-
356
-            }
357
-
358
-        }
359
-
360
-        let name = itemtagscombinationRes[0].itemname.split('-')[0];
361
-        let itemsName = name;
362
-        $('.borderselector').each(function (i, e) {
363
-            itemsName += `- ${$(e).html().trim()}`;
364
-        })
365
-        specification_wrap_action.remove();
366
-        $('.productname').html(itemsName)
367
-        $('#skudetailitem').val(-1)
368
-        $('.price').html('');
369
-        $('#addtocart').addClass('disabled');
370
-        $('.msgErrorDetailsItem').removeClass('d-none');
371
-
372
-        initAddToCart()
373
-    }
374
-
375
-    function getAllCombination() {
376
-        const currClickAttr = $(currentClick).html().trim();
377
-
378
-        let isThere = [];
379
-        for (let item in isThereInLabel) {
380
-            let { tagnames } = isThereInLabel[item];
381
-            if (tagnames.includes(currClickAttr)) {
382
-                isThere.push(isThereInLabel[item])
383
-            }
384
-        }
385
-        let selected = [];
386
-        $('.borderselector').each(function (i, e) {
387
-            selected.push($(e).html().trim())
388
-        });
389
-
390
-        // console.log(selected);
391
-        // console.log(isThere);
392
-
393
-        let ishashObj = {};
394
-
395
-        for (let i = 0; i < isThere.length; i++) {
396
-            let { tagnames, tagids } = isThere[i];
397
-            tagnames = tagnames.split('|');
398
-            tagids = tagids.split('|');
399
-
400
-            for (let j = 0; j < tagnames.length; j++) {
401
-                if (!ishashObj[tagnames[j]]) {
402
-                    ishashObj[tagnames[j]] = tagids[j];
403
-                }
404
-            }
405
-        }
406
-
407
-        // console.log(ishashObj);
408
-
409
-        // for(let i=0;i<itemtagscombinationRes.length;i++){
410
-
411
-        // }
412
-
413
-    }
414
-
415
-
416
-    async function getProductDetails(id) {
417
-
418
-
419
-
420
-        // let res = await getStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/productattributelist/productid/${id}`);
421
-
422
-        let resData = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/productattributelist/productid/${id}`, true);
423
-
424
-        if (resData.isError) {
425
-            loadingActions.removeLoader();
426
-            alert(resData.errorMsg.message);
427
-            return;
428
-        }
429
-
430
-        let res = resData.response;
431
-
432
-        res = JSON.parse(res.result);
433
-        console.log(res, 'productattributelist');
434
-
435
-        if (!res) {
436
-            loadingActions.removeLoader();
437
-            return;
438
-        };
439
-
440
-
441
-
442
-
443
-        let html = '';
444
-
445
-        for (let i = 0; i < res.length; i++) {
446
-            const currItem = res[i];
447
-            // parenttagid means under what label
448
-            // tag id means it know unquie id
449
-            const { parentattribute, parenttagid, tagid, attribute, productid } = currItem;
450
-
451
-            if (labels[parentattribute]) {
452
-                labels[parentattribute].items.push({
453
-                    attribute,
454
-                    tagid: tagid
455
-                });
456
-            } else {
457
-                labels[parentattribute] = {
458
-                    id: parenttagid,
459
-                    items: [{
460
-                        attribute,
461
-                        tagid: tagid
462
-                    }]
463
-                };
464
-                html += getParentHTML(parentattribute, productid, parenttagid, i == 0);
465
-            }
466
-
467
-        }
468
-        $('#spec-container-details').html(html);
469
-
470
-
471
-        // console.log(labels,'labels');
472
-
473
-        let childIds = [];
474
-
475
-        for (let item in labels) {
476
-            let { id, items } = labels[item];
477
-            // $(`[data-tagid=${id}]`)
478
-            let html = '';
479
-
480
-            for (let i = 0; i < items.length; i++) {
481
-                const { attribute, tagid } = items[i]
482
-                childIds.push(tagid);
483
-                group[attribute] = item;
484
-                html += getChildHTML(tagid, attribute, i == 0);
485
-            }
486
-            $(`[data-tagid="${id}"]`).html(html);
487
-        }
488
-        itemtagscombinationRes = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getitemwithoutbranch/productid/${id}`, true);
489
-        itemtagscombinationRes = JSON.parse(itemtagscombinationRes.response.result);
490
-        console.log(itemtagscombinationRes, "conductt");
491
-
492
-        let valuesSelected = [];
493
-
494
-        $('.borderselector').each(function (i, el) {
495
-
496
-            let val = $(el).html();
497
-            valuesSelected.push(val.trim());
498
-        });
499
-
500
-        let searchParams = window.location.search.split("&");
501
-        let skuId = window.location.hash.split('#')[1].split('=')[1];
502
-        // skuId = skuId.split('=')[1]
503
-        let isGo = true;
504
-        for (let i = 0; i < itemtagscombinationRes.length; i++) {
505
-            const currItem = itemtagscombinationRes[i];
506
-
507
-            const { tagnames, sku, itemid } = currItem;
508
-
509
-            isThereInLabel[tagnames] = itemtagscombinationRes[i];
510
-            let isTrue = true;
511
-            if (isGo) {
512
-                // for(let i=0;i<valuesSelected.length;i++){
513
-                //     if(!tagnames.includes(valuesSelected[i])){
514
-                //         isTrue = false
515
-                //     }
516
-                // }
517
-                if (skuId != itemid) {
518
-                    isTrue = false
519
-                }
520
-                if (isTrue) {
521
-
522
-                    console.log(itemtagscombinationRes[i], 'itemtagscombinationRes[i]');
523
-
524
-
525
-                    currentComb = itemtagscombinationRes[i];
526
-                    // location.hash = itemtagscombinationRes[i].itemname.trim();
527
-
528
-                    // $('.productname').html(itemtagscombinationRes[i].itemname);
529
-                    // $('#skudetailitem').val(itemtagscombinationRes[i].sku)
530
-                    // $('.price').html(itemtagscombinationRes[i].pricelist)
531
-
532
-                    // appendSpecs(itemtagscombinationRes[i].itemid);
533
-                    // $('.des_productdes').html(itemtagscombinationRes[i].itemdescription);
534
-
535
-                    updateDetailsByObj(itemtagscombinationRes[i]);
536
-
537
-
538
-
539
-                    isGo = false;
540
-                    let { tagnames, tagids, pricelist } = itemtagscombinationRes[i];
541
-                    tagids = tagids.split('|');
542
-                    tagnames = tagnames.split('|');
543
-                    $('.optiontaganwi').removeClass('borderselector');
544
-
545
-                    for (let i = 0; i < tagids.length; i++) {
546
-
547
-                        $(`[data-tagiditem="${tagids[i]}"]`).addClass('borderselector');
548
-                    }
549
-                    // tagiditem
550
-                }
551
-            }
552
-        }
553
-
554
-
555
-        if (isGo && itemtagscombinationRes.length != 0) {
556
-
557
-            console.log(itemtagscombinationRes[0]);
558
-            let { tagnames, tagids, pricelist } = itemtagscombinationRes[0];
559
-            tagids = tagids.split('|');
560
-            tagnames = tagnames.split('|');
561
-            $('.optiontaganwi').removeClass('borderselector');
562
-            currentComb = itemtagscombinationRes[0];
563
-            // updateItemId(itemtagscombinationRes[0].itemid);
564
-
565
-            for (let i = 0; i < tagids.length; i++) {
566
-
567
-                $(`[data-type="${tagids[i]}-${tagnames[i]}"]`).addClass('borderselector');
568
-                $(`[data-type="${tagids[i]}-Eucalyptus Green"]`).removeClass('borderselector');
569
-                $(`[data-type="${tagids[i]}-Desert Brown"]`).removeClass('borderselector');
570
-                $(`[data-type="${tagids[i]}-Deep Sea Blue"]`).removeClass('borderselector');
571
-            }
572
-
573
-            // $('.price').html(pricelist);
574
-            // $('.des_productdes').html(itemtagscombinationRes[0].itemdescription);
575
-            // appendSpecs(itemtagscombinationRes[0].itemid);
576
-
577
-            updateDetailsByObj(itemtagscombinationRes[0]);
578
-            //console.log(childIds);
579
-            // 
580
-
581
-        }
582
-
583
-        //getAllCombination(valuesSelected)
584
-
585
-
586
-
587
-        // for(let i=0;i<itemtagscombinationRes.length;i++){
588
-        //     const {tagnames} = itemtagscombinationRes[i];
589
-
590
-        // }
591
-
592
-        $('#spec-container-details').children().find('.specsmallcard').removeClass('specsmallcard');
593
-
594
-        addeventlisteners();
595
-        loadingActions.removeLoader();
596
-        return;
597
-        // let resTwo = await postStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/itemtagscombination/productid/${id}`);
598
-
599
-
600
-        //let html = '';
601
-        let attributesObj = {};
602
-        for (let i = 0; i < res.length; i++) {
603
-            const { parentattribute, tagid, productid } = res[i];
604
-            // let attributes = await postStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/productattributelist/parenttagid/${tagid}`);
605
-            // attributesObj[tagid] = JSON.parse(attributes.data.result);
606
-            // console.log(attributes.data.result,tagid);
607
-            html += getParentHTML(parentattribute, productid, tagid, i == 0);
608
-        }
609
-
610
-        $('#spec-container-details').html(html);
611
-
612
-
613
-        // let attributes = await postStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/productattributelist/parenttagid/${tagid}`);
614
-        return;
615
-        for (let attr in attributesObj) {
616
-            const arr = attributesObj[attr];
617
-
618
-            let html = '';
619
-            for (let i = 0; i < arr.length; i++) {
620
-                const { attribute, tagid } = arr[i];
621
-                html += getChildHTML(tagid, attribute, i == 0);
622
-            }
623
-
624
-
625
-            $(`[data-tagid="${attr}"]`).html(html);
626
-
627
-
628
-        }
629
-
630
-        let defaultValues = await postStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/sellableitemlist/productid/${id}`);
631
-        defaultValues = JSON.parse(defaultValues.data.result);
632
-        let { itemname, price } = defaultValues[0];
633
-        $('.productname').html(itemname);
634
-        $('.price').html(price)
635
-
636
-        $('#spec-container-details').children().slice(1).find('.specsmallcard').removeClass('specsmallcard');
637
-
638
-
639
-
640
-
641
-        // getQuantityById(id)
642
-
643
-
644
-
645
-    }
646
-
647
-
648
-}
649
-startDetails();
650
-

+ 3
- 6
index.html 파일 보기

@@ -197,9 +197,7 @@
197 197
                                                     <h5 class="card-text my-4"><small
198 198
                                                             class="satoshi_font text-black-50">Starting from ₹
199 199
                                                             47,990</small></h5>
200
-                                                    <a class="btn btn-dark "
201
-                                                        href="/laptopdetails.html?Zeno#productId=106633230000029">Buy
202
-                                                        Now</a>
200
+                                                    <a class="btn btn-dark " href="/zeno-landing.html">Know More</a>
203 201
                                                 </div>
204 202
                                             </div>
205 203
                                         </div>
@@ -231,9 +229,8 @@
231 229
                                                     <h5 class="card-text my-4"><small
232 230
                                                             class="satoshi_font text-black-50">Starting from ₹
233 231
                                                             47,990</small></h5>
234
-                                                    <a class="btn btn-dark "
235
-                                                        href="/laptopdetails.html?Zeno#productId=106633230000029">Buy
236
-                                                        Now</a>
232
+                                                    <a class="btn btn-dark " href="/zeno-landing.html">Know More</a>
233
+
237 234
                                                 </div>
238 235
                                             </div>
239 236
                                         </div>

+ 20
- 16
laptopdetails.html 파일 보기

@@ -388,7 +388,7 @@
388 388
         <div class="container mainContanierProduct d-none section-two">
389 389
             <div class="row">
390 390
                 <div class="col-xl-5 ">
391
-                    <div class="left_anwi_img">
391
+                    <div class="left_anwi_img bgproductDGen">
392 392
                         <div class=" productDetailsShadow productDetailsMain  card border-0 box-shodow">
393 393
                             <img src="./dist/assets/imgs/nophoto.png" alt="" class="card-img img-fluid success-img p-5"
394 394
                                 id="main_show_img">
@@ -664,23 +664,27 @@
664 664
                                 <!-- <div class="d-flex gap-5 specContainer mt-3"> -->
665 665
                                 <div class="specContainerleft">
666 666
                                     <div class="accordion custom-accordion text-dark" id="faqAccordion">
667
-                                        <!-- <div class="accordion-item custom-accordion-item">
668
-                                            <h2 class="accordion-header  custom-accordion-header" id="questionOneHeader">
669
-                                                <button class="accordion-button bg-white text-dark custom-accordion-button" type="button"
670
-                                                    data-bs-toggle="collapse" data-bs-target="#answerOne" aria-expanded="true"
671
-                                                    aria-controls="answerOne">
672
-                                               
673
-                                                    <div id="answerOne" class="accordion-collapse  collapse show custom-accordion-content"
674
-                                                aria-labelledby="questionOneHeader" data-bs-parent="#faqAccordion">
675
-                                                <div class="accordion-body custom-accordion-body">
676
-                                                   
677
-                    Windows 11 Home/Windows 11 Pro
678
-                                                </div>
679
-                                            </div>
667
+                                        <div class="accordion-item custom-accordion-item">
668
+                                            <h2 class="accordion-header  custom-accordion-header"
669
+                                                id="questionOneHeader">
670
+                                                <button
671
+                                                    class="accordion-button bg-white text-dark custom-accordion-button"
672
+                                                    type="button" data-bs-toggle="collapse" data-bs-target="#answerOne"
673
+                                                    aria-expanded="true" aria-controls="answerOne">
674
+
675
+                                                    <div id="answerOne"
676
+                                                        class="accordion-collapse  collapse show custom-accordion-content"
677
+                                                        aria-labelledby="questionOneHeader"
678
+                                                        data-bs-parent="#faqAccordion">
679
+                                                        <div class="accordion-body custom-accordion-body">
680
+
681
+                                                            Windows 11 Home/Windows 11 Pro
682
+                                                        </div>
683
+                                                    </div>
680 684
                                                 </button>
681 685
                                             </h2>
682
-                                            
683
-                                        </div> -->
686
+
687
+                                        </div>
684 688
 
685 689
                                         <div class="accordion-item  border-x-none py-4">
686 690
                                             <h2 class="accordion-header" id="${mainid}">

+ 443
- 58
styles/new.css
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 13
- 9
styles/style.css 파일 보기

@@ -1589,9 +1589,9 @@ body {
1589 1589
 
1590 1590
 /* .home-main-container .hero-banner {
1591 1591
   /* background-image: url(../../dist/assets/imgs/Home_new/Home_banner_bg.png); */
1592
-  /* background-size: cover; */
1593
-  /* background-repeat: no-repeat; */
1594
-  /* background-position: center center;
1592
+/* background-size: cover; */
1593
+/* background-repeat: no-repeat; */
1594
+/* background-position: center center;
1595 1595
 } */
1596 1596
 
1597 1597
 .home-main-container .hero-banner .banner-main-container .carousel-indicators .carousel_btn.active {
@@ -1650,7 +1650,7 @@ body {
1650 1650
 }
1651 1651
 
1652 1652
 .home-main-container .zeno_steamlined_section {
1653
-  background-color: #000;
1653
+  /* background-color: #000; */
1654 1654
 }
1655 1655
 
1656 1656
 .home-main-container .zeno_steamlined_section .zeno_logo img {
@@ -1910,8 +1910,8 @@ body {
1910 1910
 
1911 1911
   .banner-main-container {
1912 1912
     /* height: 650px !important; */
1913
-    max-height:625px !important
1914
-    /* min-height: 650px !important; */
1913
+    max-height: 625px !important
1914
+      /* min-height: 650px !important; */
1915 1915
   }
1916 1916
 
1917 1917
   .carousel_img {
@@ -2770,12 +2770,16 @@ body {
2770 2770
   transition: all 0.2s ease;
2771 2771
 }
2772 2772
 
2773
-.preorderimgcontainer{
2773
+.preorderimgcontainer {
2774 2774
   position: absolute;
2775 2775
   top: -5%;
2776
-  left:-5%;
2776
+  left: -5%;
2777
+
2778
+  width: 100px;
2779
+}
2777 2780
 
2778
-  width:100px;
2781
+.specContainerleft .accordion-button::after {
2782
+  background-image: none !important;
2779 2783
 }
2780 2784
 
2781 2785
 /*# sourceMappingURL=style.css.map */

+ 310
- 0
zeno-aio-landing.html 파일 보기

@@ -0,0 +1,310 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+
4
+<head>
5
+    <meta charset="UTF-8" />
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
8
+
9
+    <link href="./dist/css/plugins/aos.css" rel="stylesheet" />
10
+    <link rel="stylesheet" href="./all.css" />
11
+    <script src="https://cdn.tailwindcss.com"></script>
12
+
13
+
14
+    <title>Anwi</title>
15
+</head>
16
+
17
+<body>
18
+    <!-- navbar -->
19
+    <!-- <auth-loader></auth-loader> -->
20
+    <div id="navbar-head" class=""></div>
21
+    <!-- end-navbar -->
22
+    <!-- main-body -->
23
+    <main class="main-body home-main-container loading-main" id="home-main-container">
24
+        <!-- banner section  -->
25
+        <section>
26
+            <div class="container">
27
+                <img src="./dist/assets/imgs/zeno/aio/banner-1-DT.jpg" alt="">
28
+                <h2 class="text-7xl text-center font-semibold">Anwi Zeno AIO</h2>
29
+                <h4 class="text-5xl text-center my-3">Sleek Elegance,<span class="font-semibold"> Powerful
30
+                        Performance</span>
31
+                </h4>
32
+                <p class="text-center max-w-5xl text-2xl m-auto my-5"><strong>We don’t just build machines;</strong> we
33
+                    create tools that
34
+                    make
35
+                    your
36
+                    life easier and better. Every product is made with love, understanding what
37
+                    you really need.</p>
38
+            </div>
39
+        </section>
40
+        <!-- stand section  -->
41
+        <section>
42
+            <div class="container bg-black py-24">
43
+                <div class="md:grid grid-cols-5 max-w-7xl my-5 mx-auto">
44
+                    <div class="text-white col-span-2 flex flex-col justify-center">
45
+                        <h2 class="text-3xl font-semibold">Adapts to you</h2>
46
+                        <p class="text-xl mt-3">Versatile stands give you the freedom to use your display at the angle
47
+                            with
48
+                            tilt, height, and
49
+                            swivel functionality that can adapt to a range of working styles--whether sitting at a desk,
50
+                            or standing to serve customers, you´ll always have the best view.</p>
51
+                    </div>
52
+                    <div class="col-span-3 flex justify-center">
53
+                        <img src="./dist/assets/imgs/zeno/aio/stand.png" alt="" class="w-4/6">
54
+                    </div>
55
+                </div>
56
+            </div>
57
+        </section>
58
+        <!-- display section  -->
59
+        <section>
60
+            <div class="container">
61
+                <div class=" max-w-7xl m-auto text-center my-5 relative">
62
+                    <h2 class="text-2xl uppercase "><span
63
+                            class="text-cyan-700 tracking-widest border-t-2 border-cyan-700 pt-2">Display</span>
64
+                    </h2>
65
+                    <h3 class="text-5xl font-semibold my-4"><span>Display of brilliance</span></h3>
66
+                    <div class="mx-44 text-xl font-medium">The space-saving ANWI M3402WFA is remarkably slim and light,
67
+                        and
68
+                        its NanoEdge
69
+                        display<sup class="footnote-num"><a href="#footnote-3" aria-label="Footnote 3">3</a></sup>
70
+                        features
71
+                        a
72
+                        thin bezel for edge-to-edge viewing and an impressive up to 88% screen-to-body ratio. This
73
+                        stunning widescreen display includes 178<sup class="sign-deg">°</sup> viewing angles and 100%
74
+                        sRGB color gamut for vivid and realistic-looking colors. The 24-inch touchscreen<sup
75
+                            class="footnote-num"><a href="#footnote-2" aria-label="Footnote 2">2</a></sup> also boasts
76
+                        1920x1080 resolution and features an anti-glare coating and certified by TÜV Rheinland for eye
77
+                        comfort and low blue-light emissions — so your eyes stay fresh during long viewing sessions.
78
+                    </div>
79
+
80
+                    <div class="grid grid-cols-5 my-12">
81
+                        <div class="" data-gaid="" data-index="1">
82
+                            <div class="text-5xl font-medium text-cyan-700">24”</div>
83
+                            <div class=""><span>FHD NanoEdge display</span>
84
+                            </div>
85
+                        </div>
86
+                        <div class="" data-gaid="" data-index="2">
87
+                            <div class="text-5xl font-medium text-cyan-700">88%</div>
88
+                            <div class=""><span>screen-to-body ratio</span>
89
+                            </div>
90
+                        </div>
91
+                        <div class="" data-gaid="" data-index="3">
92
+                            <div class="text-5xl font-medium text-cyan-700">100%</div>
93
+                            <div class=""><span>sRGB color gamut</span>
94
+                            </div>
95
+                        </div>
96
+                        <div class="" data-gaid="" data-index="4">
97
+                            <div class=""><img class="img img__icon img__icon4"
98
+                                    src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII="
99
+                                    alt="An icon for TÜV Rheinland-certified eye care">
100
+                            </div>
101
+                            <div class=""><span>TÜV Rheinland-certified eye care</span>
102
+                            </div>
103
+                        </div>
104
+                        <div class="" data-gaid="" data-index="5">
105
+                            <div class=""><img class="img img__icon img__icon5"
106
+                                    src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII="
107
+                                    alt="An icon for anti-glare display">
108
+                            </div>
109
+                            <div class=""><span>anti-glare display</span>
110
+                            </div>
111
+                        </div>
112
+                    </div>
113
+                </div>
114
+                <div class="mt-[-300px]">
115
+                    <img src="./dist/assets/imgs/zeno/aio/Banner-2-DT.jpg" alt="">
116
+                </div>
117
+            </div>
118
+        </section>
119
+        <!-- audio section  -->
120
+        <section>
121
+            <div class="relative container">
122
+                <div>
123
+                    <img src="./dist/assets/imgs/zeno/aio/audio.jpg" alt="">
124
+                </div>
125
+                <div class="absolute left-2/3 bottom-1/3">
126
+                    <h2 class="uppercase tracking-widest"><span
127
+                            class="text-cyan-700 border-t-2 border-cyan-700 text-2xl">Audio</span>
128
+                    </h2>
129
+                    <h3 class="text-5xl font-semibold leading-snug my-4"><span>High-fidelity SonicMaster sound, expertly
130
+                            optimized</span>
131
+                    </h3>
132
+                    <div class="font-medium text-xl">ANWI SonicMaster, developed by the ANWI Golden Ear team, empowers
133
+                        ANWI
134
+                        M3402WFA with
135
+                        quality audio that delivers wider frequency range for clearer vocals and rich, deep bass.
136
+                        SonicMaster is a tailored mix of superior hardware and clever software designed to give you full
137
+                        audio controls for truly immersive sound for movies, music and games.</div>
138
+                </div>
139
+            </div>
140
+        </section>
141
+        <!-- beginners section  -->
142
+        <section>
143
+            <div class="container">
144
+                <div class="grid grid-cols-2 gap-5 mx-3">
145
+                    <div class=""><img
146
+                            src="https://in-files.apjonlinecdn.com/landingpages/content-pages/hp-aio-desktop/images/w100_everyday_img2_v2.jpg"
147
+                            alt="Desktops For Beginners" data-src="" class="img_width_100">
148
+                        <div class=" show-in-mobile"></div>
149
+                    </div>
150
+                    <div class="md:me-44">
151
+                        <h3 class="text-blue-800 text-xl">Desktops For Beginners</h3>
152
+                        <h5 class="text-2xl font-medium">Comfortable viewing experience for the little ones.
153
+                        </h5>
154
+                        <ul class="space-y-3 divide-y-2 divide-black">
155
+                            <li>Designed for eye comfort</li>
156
+                            <li>Big, anti-glare screen</li>
157
+                            <li>Safe for kids privacy with HD Wide Vision
158
+                                Camera</li>
159
+                            <li class="mt-4 pt-4">
160
+                                Starting from <span class="lowest_price">
161
+                                    <span class="price">₹36,499</span> </span>
162
+                            </li>
163
+                        </ul>
164
+                        <div class="mt-8">
165
+                            <a href="#" class="bg-black text-white px-3 py-2 mt-8" tabindex="0">Shop
166
+                                Now</a>
167
+                        </div>
168
+
169
+                    </div>
170
+                </div>
171
+            </div>
172
+        </section>
173
+        <!-- ports section  -->
174
+        <section>
175
+            <div class="container">
176
+                <div class="mt-5 pt-5">
177
+                    <h2 class="uppercase tracking-widest text-center"><span
178
+                            class="text-cyan-700 border-t-2 border-cyan-700 text-2xl">Connectivity</span>
179
+                    </h2>
180
+                    <h3 class="text-4xl font-semibold text-center my-3">
181
+                        <span>Fast, reliable connectivity</span>
182
+                    </h3>
183
+                    <div class="max-w-4xl m-auto text-xl font-medium text-center">
184
+                        ANWI M3402WFA is loaded with the latest connectivity, including an HDMI-in port that lets you
185
+                        hook up video and audio from an external source — enabling amazing big-screen experiences for
186
+                        your laptop, mobile device, game console or even a set-top TV box. There are also three USB 3.2
187
+                        Gen 1 ports for connecting all your peripherals, an HDMI-out port for attaching an external
188
+                        display and an SD card reader<sup class="footnote-num"><a href="#"
189
+                                aria-label="Footnote 2">2</a></sup> for everyday convenience. ANWI M3402WFA also has
190
+                        integrated security, with a built-in Kensington lock slot for simple and effective physical
191
+                        protection.</div>
192
+
193
+                    <div class="grid grid-cols-4 max-w-3xl mx-auto text-center my-24 font-medium">
194
+                        <div class="">
195
+                            <div class="text-5xl font-medium text-cyan-700"><img class="m-auto"
196
+                                    src="./dist/assets/imgs/zeno/aio/icon_typea.png"
197
+                                    alt="An icon for USB 3.2 Gen 1 Type-A x 3">
198
+                            </div>
199
+                            <div class="wd__feature__describe"><span>USB 3.2 Gen 1 Type-A x 3</span>
200
+                            </div>
201
+                        </div>
202
+                        <div class="">
203
+                            <div class="text-5xl font-medium text-cyan-700"><img class="img img__icon img__icon1"
204
+                                    src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII="
205
+                                    alt="An icon for USB-C® 3.2 Gen 1">
206
+                            </div>
207
+                            <div class=""><span>USB-C<sup role="img" aria-label="registered" class="sign-reg">®</sup>
208
+                                    3.2 Gen 1</span>
209
+                            </div>
210
+                        </div>
211
+                        <div class="">
212
+                            <div class="text-3xl font-medium text-cyan-700 ">10x</div>
213
+                            <div class=""><span>faster than USB 2.0</span>
214
+                            </div>
215
+                        </div>
216
+                        <div class="">
217
+                            <div class="text-5xl font-medium text-cyan-700 text-center"><img class="m-auto"
218
+                                    src="./dist/assets/imgs/zeno/aio/icon_typed.png" alt="An icon for HDMI-in Port">
219
+                            </div>
220
+                            <div class=""><span>HDMI-in Port</span>
221
+                            </div>
222
+                        </div>
223
+                    </div>
224
+                </div>
225
+                <img src="./dist/assets/imgs/zeno/aio/ports.png" alt="" class="mt-5">
226
+            </div>
227
+        </section>
228
+        <!-- secure section  -->
229
+        <section>
230
+            <div class="container">
231
+                <div class="relative">
232
+                    <img src="./dist/assets/imgs/zeno/aio/security.jpg" alt="" class="">
233
+                    <div class="absolute top-16 max-w-xl right-16">
234
+                        <h2 class="uppercase tracking-widest"><span
235
+                                class="text-cyan-700 border-t-2 border-cyan-700 text-2xl">Security</span>
236
+                        </h2>
237
+                        <h3 class="my-6 text-5xl font-semibold">
238
+                            <span>Secure your crucial data</span>
239
+                        </h3>
240
+                        <div class="text-xl font-medium">Remote working is
241
+                            accelerating, and with it the need to keep your crucial data safe. That’s why ANWI M3402WFA
242
+                            is equipped with first-class security. The camera’s shutter slides across in a moment for
243
+                            instant privacy, whenever you need it. There’s also the all-new Microsoft Pluton chip that
244
+                            bakes security into the CPU core, ensuring both code integrity and the latest protection —
245
+                            virtually eliminating the risk of leaks through hacking. ANWI M3402WFA also has a Kensington
246
+                            slot that provides a way to physically safeguard the machine, preventing theft of the PC
247
+                            from unsupervised locations.</div>
248
+                    </div>
249
+                </div>
250
+            </div>
251
+        </section>
252
+        <section>
253
+            <div class="container p-3" style="background: #e2e2e2;">
254
+                <h2 class="text-center font-weight-600 my-4">
255
+                    Zeno: Experience Desktop Power
256
+                </h2>
257
+                <div class="d-flex">
258
+                    <h3 class="font-weight-lighter">
259
+                        Upgradability in <br>
260
+                        <div style="white-space: nowrap; font-weight: 800;" class="pt-4">Sleek
261
+                            All-in-One</div> Design
262
+                    </h3>
263
+                    <div class="ms-5">
264
+                        <img src="./dist/assets/imgs/zeno/aio/aio1.jpeg" alt="" class="w-100">
265
+                    </div>
266
+                </div>
267
+            </div>
268
+        </section>
269
+        <section>
270
+            <div class="container">
271
+                <img src="./dist/assets/imgs/zeno/aio/front.jpeg" alt="">
272
+            </div>
273
+        </section>
274
+        <section>
275
+            <div class="container">
276
+
277
+                <img src="./dist/assets/imgs/zeno/aio/inner-panel.jpeg" alt="">
278
+            </div>
279
+        </section>
280
+        <section>
281
+            <div class="container">
282
+
283
+                <img src="./dist/assets/imgs/zeno/aio/rear.jpeg" alt="">
284
+            </div>
285
+        </section>
286
+
287
+    </main>
288
+    <!-- footer -->
289
+    <div id="footer-head"></div>
290
+    <!-- end-footer -->
291
+
292
+    <!-- <script src="https://player.vimeo.com/api/player.js"></script> -->
293
+    <script src="./dist/js/components/authloader/authloader.js"></script>
294
+    <script src="./dist/js/jquery.min.js"></script>
295
+    <script src="./libs/bootstrap/js/bootstrap.bundle.min.js"></script>
296
+    <script src="./dist/js/vendor/modernizr-3.11.7.min.js"></script>
297
+    <script src="./dist/js/vendor/jquery-v3.6.0.min.js"></script>
298
+    <script src="./dist/js/vendor/jquery-migrate-v3.3.2.min.js"></script>
299
+    <script src="./dist/js/plugins/jquery-ui.js"></script>
300
+    <script src="./dist/js/plugins/magnific-popup.js"></script>
301
+    <script src="./dist/js/navbar.js"></script>
302
+    <script src="./dist/js/footer.js"></script>
303
+    <script src="./dist/js/main.js"></script>
304
+    <script src="./dist/js/plugins/aos.js"></script>
305
+    <script>
306
+        AOS.init();
307
+    </script>
308
+</body>
309
+
310
+</html>

Loading…
취소
저장