PageSourceSearch

https://hhjs.gov.cn/zfxxgk/js/xxgk.js

js hhjs.gov.cn collected 2026-10-02 20:59:19 UTC 3,126 bytes, 114 lines download raw bytes

1function JumpObj(elem, range, startFunc, endFunc) {
2var curMax = range = range || 6;
3startFunc = startFunc || function(){};
4endFunc = endFunc || function(){};
5var drct = 0;
6var step = 1;
7
8init();
9
10function init() { elem.style.position = 'relative';active() }
11function active() { elem.onmouseover = function(e) {if(!drct)jump()} }
12function deactive() { elem.onmouseover = null }
13
14function jump() {
15var t = parseInt(elem.style.top);
16if (!drct) motionStart();
17else {
18var nextTop = t - step * drct;
19if (nextTop >= -curMax && nextTop <= 0) elem.style.top = nextTop + 'px';
20else if(nextTop < -curMax) drct = -1;
21else {
22var nextMax = curMax / 2;
23if (nextMax < 1) {motionOver();return;}
24curMax = nextMax;
25drct = 1;
26}
27}
28setTimeout(function(){jump()}, 200 / (curMax+3) + drct * 3);
29}
30function motionStart() {
31startFunc.apply(this);
32elem.style.top='0';
33drct = 1;
34}
35function motionOver() {
36endFunc.apply(this);
37curMax = range;
38drct = 0;
39elem.style.top = '0';
40}
41
42this.jump = jump;
43this.active = active;
44this.deactive = deactive;
45};
46$(function(){
47var config = window.matchMedia('(max-width:640px)');
48  	if(config.matches) {
49     $(".gzklist li .xz .flex").prepend('<span class="xzt">下载</span>')
50}
51
52// $(".navconShow").attr('href','javascript:;').attr('target','_self')
53// $(".subNavShow").attr('href','javascript:;').attr('target','_self')
54
55$(".subNavShow .moreS").click(function(){
56$(this).toggleClass("swi-jian");
57$(this).parent().next('.subNav').slideToggle();
58return false;
59})
60
61
62$(".navconShow .more").click(function(){
63$(this).toggleClass("swi-jian")
64$(this).parent().next('.navcon').slideToggle();
65$(this).parent().parent('.item').siblings().find('.navcon').slideUp()
66$(this).parent().parent('.item').siblings().find('.navconShow .more').removeClass('swi-jian');
67return false;
68})
69
70// 4级5级菜单
71// $(".subNav4Show").attr('href','javascript:;').attr('target','_self')
72// $(".subNav5Show").attr('href','javascript:;').attr('target','_self')
73// $(".subNav6Show").attr('href','javascript:;').attr('target','_self')
74$(".subNav4Show .moreS").click(function(){
75$(this).toggleClass("swi-jian");
76$(this).parent().next('.subNav4').slideToggle();
77return false;
78})
79$(".subNav5Show .moreS").click(function(){
80$(this).toggleClass("swi-jian");
81$(this).parent().next('.subNav5').slideToggle();
82return false;
83})
84$(".subNav6Show .moreS").click(function(){
85$(this).toggleClass("swi-jian");
86$(this).parent().next('.subNav6').slideToggle();
87return false;
88})
89// 
90
91
92$(".gkleftNav .item").each(function(){
93if ($(this).hasClass("on")) {
94$(this).find(".navconShow .more").addClass('swi-jian')
95}
96});
97$(".navlist li").each(function(){
98if ($(this).hasClass("on")) {
99$(this).find(".moreS").addClass('swi-jian')
100}
101});
102
103// $(".gkleftNav .choose").each(function(){
104// if ($(this).hasClass("cur")) {
105// $(this).find(".moreS").addClass('swi-jian')
106// }
107// })
108var isMobile = (/iPad|iPhone|Android|Windows Phone|Nokia/).test(navigator.userAgent);
109if ( !isMobile) {
110$(".navLeft a.link").each(function(k,yy){
111//new JumpObj(yy,10);
112});
113}             
114})

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.