PageSourceSearch

https://www.czhuari.com/Tpl/HJZF2_Z/js/other-154.js

js czhuari.com collected 2026-10-04 04:58:00 UTC 1,637 bytes, 56 lines download raw bytes

1require(['jquery'], function ($) {
2	
3	if ($webid == 2195){
4		$(function () {
5			$(".hjzf_other_154_wrapper").clone().appendTo(".hjzf_other_154").addClass("other_154_fly").hide()
6		});
7		$(window).scroll(function () {
8			var other_154_fly = $(this).scrollTop();
9			if (other_154_fly > 600){
10				$(".other_154_fly").fadeIn();
11			}else{
12				$(".other_154_fly").fadeOut();
13			}
14		});
15		var daohanglen = 140;
16		
17		$(window).scroll(function () {
18			var items = $(".tianma_box");
19			var menu = $(".hjzf_other_154_wrapper"); 
20			var top = $(document).scrollTop();
21			var currentId = ""; //滚动条现在所在位置的item id
22			items.each(function () {
23				var m = $(this);
24				//注意:m.offset().top代表每一个item的顶部位置
25				if (top > m.offset().top - 300) {
26					currentId = m.attr("id");
27				} else {
28					return false;
29				}
30				/* $("a[data-href="+currentId+"]").parent().addClass('current').siblings('li').removeClass('current'); */
31			});
32			
33			var currentLink = menu.find(".current");
34						
35			if (currentId && currentLink.attr("data-href") != currentId) {
36				currentLink.removeClass("current");
37				menu.find("[data-href=" + currentId + "]").parent().addClass("current");
38			}  
39		});
40		
41	}else{
42		var daohanglen = 70;
43	}
44	
45	$(function () {
46		$('.hjzf_other_154_wrapper li a').click(function () {
47			var urlHref = $(this).attr('data-href');
48			if(urlHref.indexOf('#') !== -1 || urlHref.indexOf('.') !== -1){
49				$('body, html').animate({scrollTop: $(urlHref).offset().top - daohanglen}, 500);
50			}else{
51				$('body, html').animate({scrollTop: $('#' + urlHref).offset().top - daohanglen}, 500);
52			}
53		});
54	});
55
56});

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.