PageSourceSearch

https://www.kanedecontrols.com/Tpl/HJZF2_Z/js/head-HJ27.js

js kanedecontrols.com collected 2026-10-04 04:53:30 UTC 1,764 bytes, 62 lines download raw bytes

1require(['jquery', 'mousewheel'], function ($) {
2	$(function () {
3		$(window).scroll(function () {
4			var t = $(window).scrollTop();
5			//console.log(t);
6			if ($webid == 2274 || $webid == 2281){
7				var t_scroll = 30;
8			}else{
9				var t_scroll = 120;
10			}
11			if(t > t_scroll) {
12				$('.head_hj27_fixed').addClass('active');
13			}else{
14				$('.head_hj27_fixed').removeClass('active');
15			}
16			if ($webid == 2231 || $webid == 2376){
17				if(t > 120) {
18					$('.head_hj27_top').addClass('active');
19				}else{
20					$('.head_hj27_top').removeClass('active');
21				}
22			}
23		});
24		$('.search_lia').click(function () {
25			$(this).next('.search_list').fadeToggle();
26		});
27
28
29		// 常生新增下拉 
30		if($webid == 1877 || $head_hj27_pro != '') {
31			function addImg() {
32				var oTitle = $('.nav_pro_cs_box.on li.on').attr('data-title');
33				var oImg = $('.nav_pro_cs_box.on li.on').attr('data-img');
34				$('.nav_pro_img img').attr('src', oImg);
35				$('.nav_pro_img p').text(oTitle);
36			};
37			addImg();
38
39			$('.nav_procs_drop li').hover(function () {
40				if($(this).hasClass('on')){
41					return;
42				}else{
43					var index = $(this).index();
44					$(this).addClass('on').siblings('li').removeClass('on');
45					$('.nav_procs_drop_wrapper_mid .nav_pro_cs_box').eq(index).addClass('on').siblings('.nav_pro_cs_box').removeClass('on');	
46					if($('.nav_procs_drop_wrapper_mid .nav_pro_cs_box').eq(index).children('ul').children('li').length > 0){
47						addImg()
48					}else{
49						$(".nav_pro_img img").attr("src", '');
50						$(".nav_pro_img p").html("");
51					}
52				}
53			});
54			$('.nav_pro_cs_box li').hover(function () {
55				$(this).addClass('on').siblings('li').removeClass('on');
56				addImg();
57			})
58			
59		}
60		
61	});
62});

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.