<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"> /**
  * ä¼ä¸šä¿¡æ¯
  */
 (function() {

     //åŸºæœ¬ä¿¡æ¯ hover
     $(".basic-info-block .inf-item").hover(function() {
         // $(this).addClass("active");
         var idx = $(this).index();
         $(".basic-info-block .infp-th .inf-item").eq(idx).addClass("active");
         $(".basic-info-block .infp-td .inf-item").eq(idx).addClass("active");
     }, function() {
         //$(this).removeClass("active");
         $(".basic-info-block .infp-th .inf-item,.basic-info-block .infp-td .inf-item").removeClass("active");
     });

     //tabåˆ‡æ¢ï¼ˆå®˜æ–¹ä¿¡æ¯ã€å“ç‰Œä¿¡æ¯ï¼‰
     $("#tab-menu-wrap .tab-nav").click(function() {
         var idx = $(this).index();
         if (Number(idx) == 0) {
             $(".fxdt-group").show();
             $(".sub-tab-group").hide();
         } else {
             $(".sub-tab-group").show();
             $(".fxdt-group").hide()
         };
         $(this).addClass("active").siblings().removeClass("active");
         $(".company-content .tab-cont-wrap").hide().eq(idx).show();
     });

     //å“ç‰Œä¿¡æ¯é”šç‚¹å®šä½
     $(".sub-tab-group .tab-item").click(function() {
         var type = $(this).attr("data-id");
         if (!type) return;
         $(this).addClass("active").siblings().removeClass("active");
         $("html,body").animate({ scrollTop: $(type).offset().top }, 500);
     });

     //å®˜æ–¹ä¿¡æ¯tab
     $(".js-tab-group .inf-item").on("click", function() {
         var group = $(this).attr("data-group") || $(this).index();
         var node = $(".js-cont-group[data-group=" + group + "]");
         if (node.length == 0) return;
         $(".js-cont-group").hide();
         $(".js-cont-group[data-group=" + group + "]").show();
         // $(".js-cont-group").eq(group).show(0).siblings(".js-cont-group").hide(0);
     });

     //åŒºåŸŸå±•å¼€
     $(".basic-info-block .info-box .infp-th .inf-item").click(function() {
         var idx = $(this).index();
         $(".js-cont-group").hide().eq(idx).show();
     });
     // é”šç‚¹å®šä½
     $(".basic-info-block .infp-td .inf-item .it-cont .tt").click(function() {
         var type = $(this).attr("data-id");
         var listNum = $(this).attr("data-list");
         if (!type) return;
         if (!listNum) return;
         $(".js-cont-group").hide().eq(listNum).show();
         $('html, body').animate({ scrollTop: $(type).offset().top - 175 }, 500);

        // tab å›ºå®š
        let tab = $(".js-tab-box");
        let top1 = $(type).offset().top - 130;
        let top2 = $(tab).offset().top;
        if (top1 &gt; top2) {
            $(tab).addClass('active-tab');
        }
     })

     // tabç›‘å¬æ»šåŠ¨åˆ&nbsp;é™¤å›ºå®šæ&nbsp;·å¼
     $(document).scroll(function() {
        var scroH = $(document).scrollTop();  //æ»šåŠ¨é«˜åº¦
        let tab = $(".js-tab-box");
        if(scroH &lt; 540){  //è·ç¦»é¡¶éƒ¨å¤§äºŽ100pxæ—¶
            $(tab).removeClass('active-tab');
        }else {
            $(tab).addClass('active-tab');
        }
    });

    // ç‚¹å‡»åˆ—è¡¨ä¸­è¯¦æƒ… å¼¹å‡ºå±‚å¤„ç†
    $(".js-click-detail").on("click", function() {
        let id = $(this).attr("data-id");
        if (!id) return;
        $(".js-popup-wrap").show(); 
        $(".popup-detail-content").hide();
        $(id).show();
    })

    // ç‚¹å‡»å¼¹å‡ºå±‚çš„å…³é—­
    $(".js-popup-close").on("click", function() {
        $(".js-popup-wrap").hide();
    })

 }());</pre></body></html>