PageSourceSearch

https://www.xztech.ai/Public/Cn/js/common.js

js xztech.ai collected 2026-10-05 13:20:14 UTC 3,078 bytes, 93 lines download raw bytes

1$(function () {
2    new WOW().init(); // wow初始化
3    ys.phNavInit(4);// 移动端导航
4    ys.navSlide();// pc端导航默认下拉一级
5    ys.yxlenis(1.2, true);
6    ys.screenh();  // 移动端屏幕高度
7    // 导航不在顶部时加类名isfixed,hover时加类名ishover
8    ys.isFixed(".ys-hd-pc");
9    ys.isFixed(".ys-hd-ph");
10    // search
11    ys.pcSearch(3);
12    // lang
13    ys.lang('.head-lang', '.head-lang-down');
14    // 底部二维码  pc hover的li   ph 点击的按钮   二维码盒子
15    ys.footershare(".footer-share li", '.footer-share-btn', '.footer-share-code');
16    // ys.navSlide2('hover类名','加选中类名的类名',"选中类名,如:yxnav-active2");
17    if (window.innerWidth < 1200) {
18        ys.footernav(); // 底部副导航移动端,为true,点击一级导航不跳转,默认false,点击一级导航跳转
19    }
20    // 载入
21    ys.fadeup1('.ys-upfade1', 'ys-fade-true', 50);
22    ys.playVideopc('.ys-video-pc'); // 仅pc播放视频,移动端隐藏
23    ys.videomodal(".ys-video-modal"); // 视频弹窗
24});
25
26$('.mfsl-icon').hover(function () {
27    $(this).siblings('.mfsl-code').stop().slideDown();
28}, function () {
29    $(this).siblings('.mfsl-code').stop().slideUp();
30});
31
32// 
33$(".head-nav-item-pop1 .hnip-wrap-ri").mCustomScrollbar({
34    theme: 'dark',
35    scrollInertia: 500,
36    horizontalScroll: false,
37    scrollbarPosition: "outside",
38    axis: "y",
39});
40
41
42
43$('.hwlb-link').hover(function () {
44    var index = $(this).index();
45    $(this).addClass('yxnav-active2').siblings().removeClass('yxnav-active2');
46    $('.hnip-wrap-ri-li').eq(index).addClass('on').siblings().removeClass('on');
47    $('.hwlt-li').eq(index).addClass('on').siblings().removeClass('on');
48});
49
50$('.head-nav-item-pop').hover(function(){
51
52},function(){
53    $('.hnip-wrap-ri-li').removeClass('on');
54    $('.hwlt-li').removeClass('on');
55    $('.hwlb-link').removeClass('yxnav-active2');
56    $('.hwlb-link.act').addClass('yxnav-active2');
57    $('.hnip-wrap-ri-li.act').addClass('on');
58    $('.hwlt-li.act').addClass('on');
59});
60
61$('.hwrl-ul-li').hover(function(){
62    $(this).addClass('yxnav-active3').siblings().removeClass('yxnav-active3');
63},function(){
64    $(this).removeClass('yxnav-active3');
65    $('.hwrl-ul-li.act').addClass('yxnav-active3');
66})
67
68$('.head-nav-item').hover(function(){
69    $(this).find('.head-nav-item-pop').stop().slideDown();
70},function(){
71    $(this).find('.head-nav-item-pop').stop().slideUp();
72});
73
74$('.head-nav-item-pop').each(function(index,item){
75    if ($(item).find(".hnip-wrap-ri-li.act").length < 1) {
76        $(item).find(".hnip-wrap-ri-li:nth-child(1)").addClass("act on")
77        $(item).find(".hwlt-li:nth-child(1)").addClass("act on")
78    }
79});
80
81// 2026.8.31 helen star
82$(window).on('scroll', function() {
83    if ($(this).scrollTop() > 180) {
84        $('.navt-pop').addClass('is-on');
85    }else{
86        $('.navt-pop').removeClass('is-on');
87    }
88});
89
90
91$('.navt-pop-btm').click(function(){
92    ys.lenisTo(800,0);
93});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.