PageSourceSearch

https://www.his.edu.cn/static/index/international/js/public.js?data=1

js his.edu.cn collected 2026-10-07 19:49:53 UTC 2,292 bytes, 89 lines download raw bytes

1$(function() {
2    layout();
3    $(document).ready(function() {
4        layout();
5    });
6    var rt;
7    $(window).resize(function() {
8        clearTimeout(rt);
9        rt = setTimeout(function() {
10            layout();
11        }, 500);
12    });
13    $(window).bind('orientationchange', function(e) {
14        layout();
15    });
16
17    //快速移动到页面顶部
18    $(document).on('click', '.go-top', function() {
19        $('html,body').animate({ scrollTop: '0px' }, 300);
20    });
21
22    // 顶部二级菜单
23    $('.nav-list .has-sub').mouseenter(function() {
24        $(this).addClass('hover');
25    }).mouseleave(function() {
26        $(this).removeClass('hover');
27    })
28
29    //中文首页幻灯
30    if ($('.swiper1 .swiper-slide').length > 1) {
31        var index_show = new Swiper('.swiper1', {
32            autoplay: 3000, //swiper1_autoplay或者false
33            loop: true,
34            speed: 400,
35            cssWidthAndHeight: "height",
36            simulateTouch: false,
37            resizeReInit: true,
38            pagination: '.swiper-page',
39            paginationClickable: true,
40        });
41        $('.swiper1 .prev-btn').click(function() {
42            index_show.swipePrev();
43        })
44        $('.swiper1 .next-btn').click(function() {
45            index_show.swipeNext();
46        })
47    }
48
49
50});
51
52function layout() {
53    var $h = $(window).height();
54    var $w = $(window).width();
55    $('.main').css('min-height', $h - 80);
56
57    //$('.index_banner').height($h);
58}
59
60function tab(li, ul, current) {
61    if (current == undefined) {
62        var current = 'current';
63    }
64    var t = null;
65    var index = 0;
66    var $this;
67    $(li).click(
68        function() {
69            $this = $(this);
70            //t = setTimeout(function() {
71            index = $this.index();
72            $this.addClass(current).siblings().removeClass(current);
73            $(ul).eq(index).show().siblings().hide();;
74            return false;
75            //}, 300)
76
77        });
78}
79
80// ie浏览器版本判断
81function IETester(userAgent) {
82    var UA = userAgent || navigator.userAgent;
83    if (/msie/i.test(UA)) {
84        return UA.match(/msie (\d+\.\d+)/i)[1];
85    } else if (~UA.toLowerCase().indexOf('trident') && ~UA.indexOf('rv')) {
86        return UA.match(/rv:(\d+\.\d+)/)[1];
87    }
88    return false;
89}

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.