PageSourceSearch

https://www.szbg.ac.cn/eimages/common.js

js szbg.ac.cn collected 2026-10-02 17:53:16 UTC 2,554 bytes, 93 lines download raw bytes

1AOS.init({
2    easing: 'ease-out-back',
3    duration: 1000,
4    placement: 'top-center',
5    once: true
6});
7//手机导航toggle
8function phoneNavToggle() {
9    $(".nav-icon").toggleClass("on")
10    if ($("#phone-nav").hasClass("active")) {
11        $("#phone-nav").animate({
12            "right": '-100%'
13        },1000);
14        $("#phone-nav").removeClass("active")
15        setTimeout(function(){
16            $(".mask").fadeOut(600)
17        },500)
18    } else {
19        $(".mask").fadeIn(600)
20        $("#phone-nav").animate({
21            "right": '0'
22        },1000);
23        $("#phone-nav").addClass("active")
24    }
25}
26var wid = $("body,html").width()
27$(".num span").countUp()
28
29
30$(".phone-nav li > a").click(function(){
31    $(".phone-nav li").removeClass("active")
32    $(this).parent("li").toggleClass("on").siblings().removeClass("on");
33    $(this).next(".nav").slideToggle(500).parent().siblings().find(".nav").slideUp(500)
34})
35
36
37// 手机底部导航toggle
38$(".phone-footer-nav ul li > a").click(function(){
39    $(this).parent().toggleClass("on").siblings("li").removeClass("on")
40    $(this).next(".nav-list").slideToggle(500).parent().siblings().find(".nav-list").slideUp(500)
41})
42
43
44$(".pc-nav-box ul li").each(function(j){
45    $(this).find(".box-container").css("text-align","center")
46    var nav_len = $(this).find(".hide-box a").length
47    for(var i = 0;i<nav_len;i++) {
48        $(this).find(".hide-box a").eq(i).css("transition-delay",0.1*i+"s")
49    }
50})
51
52
53
54$(window).on("scroll", function(){
55    var top = $(window).scrollTop();
56    if(!$(".fixed-right-box").hasClass("off")) {
57    	if(top > 100) {
58    		$(".fixed-right-box").fadeIn(600)
59    	}else{
60    		$(".fixed-right-box").fadeOut(600)
61    	}
62    }
63    if(top > 30) {
64        $(".header-wrapper .pc-nav-box ul li .hide-box").hide()
65        $(".search-form").fadeOut(500)
66        if(wid < 1024) {
67            $(".header-wrapper").addClass("shadow")
68        }
69    }else{
70        $(".header-wrapper .pc-nav-box ul li .hide-box").show()
71    }
72})
73
74function searchToggle(){
75    $(".header-wrapper .search").toggleClass("on")
76    $(".search-form").slideToggle(500)
77}
78function itemToggle(obj) {
79    $(obj).toggleClass("extend")
80    $(obj).next(".nav").slideToggle(500)
81}
82
83// 手机回到顶部
84function gotop() {
85    $("body,html").animate({
86        scrollTop: 0
87    }, 800);
88}
89$(".fixed-right-box .close a").click(function(){
90	$(".fixed-right-box").addClass("off")
91	$(".fixed-right-box").fadeOut(600)
92})
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.