PageSourceSearch

https://autobio.com.cn/Public/Home/js/base.js

js autobio.com.cn collected 2026-10-05 11:46:00 UTC 3,767 bytes, 126 lines download raw bytes

1$(document).ready(function () {
2    var hsp = $(".soluP").outerHeight()
3    $(".soluP .secN").height(hsp)
4    $(".soluP .thBox").height(hsp)
5})
6$(function(){
7    var wow = new WOW({
8        boxClass: 'wow',
9        animateClass: 'animated',
10        offset: 0,
11        mobile: true,
12        live: true
13    });
14    if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
15        new WOW().init();
16    }
17
18    //header
19    var w_width = $(window).width()
20    $(window).scroll(function(){
21        if($(window).scrollTop()>=120){
22            $(".header").addClass("slideD")
23        }else{
24            $(".header").removeClass("slideD")
25        }
26    })
27    
28    
29    /* 解决 移动设备 hover 二次点击 */
30    $(function () {
31        $('.menu a').on('click touchend', function (e) {
32            var el = $(this)
33            var link = el.attr('href')
34            window.location = link
35        })
36    })
37
38    var hc = $('.soluP .sec-nav li').hasClass('active')
39
40    if($('.soluP .sec-nav li').hasClass('active')){
41        $(".soluP .thBox .th-nav").eq($(this).index()).addClass("active")
42    }
43    
44    $(".header .nav li.solu").hover(function () {
45        $(".soluP").show();
46    },function () {
47        $(".header .nav li.solu").siblings("li").hover(function () {
48            $(".soluP").hide();
49        });
50        // $(".header .rig .nav li").hover(function () {
51        //     $(".soluP").hide();
52        // });
53    })
54
55
56    $('.soluP .fr-nav a').hover(function () {
57        if(!$(this).hasClass('active')) {
58            $(this).addClass("active").siblings("a").removeClass("active");
59            $(".soluP .sec-nav li").removeClass("active")
60            $(".soluP .sec-nav li").eq($(this).index()).addClass("active")
61            $(".soluP .thBox .th-nav").removeClass("active")
62            $(".soluP .thBox .th-nav").eq($(this).index()).addClass("active")
63
64        }
65    })
66
67
68    $('.soluP .sec-nav li.pro-secNav a').hover(function () {
69        $(this).addClass("active").siblings("a").removeClass("active");
70        $(".soluP .th-nav li").removeClass("active")
71        $(".soluP .th-nav li").eq($(this).index()).addClass("active")
72    })
73
74
75    $('.soluP').mouseleave(function () {
76        $(".soluP").hide();
77    })
78    
79    $(".header .search").click(function(){
80        $(".header .search-click").stop().slideToggle();
81    });
82    $(".header .search-click .close").click(function(){
83        $('.header .search-click').stop().slideUp();
84    })
85
86    /*手机端头部*/
87    $(".menu-handler").on("click", function () {
88        $(".menu-bg").css("display", "block").animate({"left": "0"}, "200");
89        $(".menu-list").css("display", "block").animate({"left": "0"}, "200");
90    })
91
92    $(".close").on("click", function () {
93        $(".menu-bg").stop().animate({"left": "100%"}, "200", function () {
94            $(".menu-bg").css("display", "none")
95        });
96        $(".menu-list").css("display", "none").animate({"left": "100%"}, "200");
97     
98    })
99
100
101    
102    $(".menu-list li.active .item-first").click(function(){
103        $(this).parents().find("li").toggleClass("active");
104    });
105
106    var ifdt = $(".menu-list li .item-first"), itdd = $(".menu-list li .item-two");
107    ifdt.click(function () {
108        var classname = $(this).parent().attr("class");
109        if (classname == "active") {
110            $(this).parent().removeClass("active");
111            $(this).next(".item-two").slideUp(300);
112        } else {
113            ifdt.parent().removeClass("active");
114            $(this).parent().addClass("active");
115            itdd.slideUp(300);
116            $(this).next(".item-two").slideDown(300);
117        }
118    });
119    
120
121
122
123
124
125    
126})

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.