PageSourceSearch

https://b-link.net.cn/static/website/blink/js/main.js?v=1776763186

js b-link.net.cn collected 2026-10-07 16:12:44 UTC 8,144 bytes, 284 lines download raw bytes

1$(function(){
2 
3	resize();
4	$(window).resize(function(event) {
5		resize();
6	});
7
8  // footerPosition();
9  //$(window).resize(footerPosition);
10	$(".ul_tag li").click(function () {
11	    $(this).addClass("on").siblings().removeClass("on");
12
13	})
14	//alert(222)
15    	
16
17
18
19	
20	$(".menu>ul>li.menudown").hover(function(){
21
22        if($(this).find("div.menu-sub .menuItem").length>0){
23            if(!$(".header").hasClass("h_menu")){
24                $(this).addClass("open");
25                $("body").addClass("open");
26            }
27            
28            
29        }
30        
31       // $(".open .sub-menu > a.sub-top").animate({width:'100%'});
32    },function(){
33        //
34        
35        //$(this).find("div.menu-sub").height(0)
36        if(!$(".header").hasClass("h_menu")){
37            $(this).removeClass("open");
38            $("body").removeClass("open");
39        }
40        
41    });
42	$(".menu>ul>li.menudown").click(function(){
43        console.log(123123)
44        if($(this).find("div.menu-sub .menuItem").length>0){
45            if($(".header").hasClass("h_menu")){
46                $(this).toggleClass("open");
47               // $("body").addClass("open");
48            }
49        }
50        
51       // $(".open .sub-menu > a.sub-top").animate({width:'100%'});
52    });
53	$(".search-menu div.search-menu-sub").hover(function(){
54        $("#Keyword").focus();
55        
56        if(!$(".header").hasClass("h_menu")){
57            
58            $("body").addClass("open");
59            $(".menu>ul>li.search-menu").addClass("open");
60        }
61       // $(".open .sub-menu > a.sub-top").animate({width:'100%'});
62    },function(){
63        //
64        //$(this).find("div.menu-sub").height(0)
65        if(!$(".header").hasClass("h_menu")){
66            
67            $("body").removeClass("open");
68            $(".menu>ul>li.search-menu").removeClass("open");
69        }
70        
71    });
72    $("#search-btn").click(function(){
73        
74            if(!$(".header").hasClass("h_menu")){
75                
76                $("body").toggleClass("open");
77                $(this).parent("li").toggleClass("open");
78            }
79    });
80	$(".wow_list .wow").each(function (e) {
81	    $(this).attr("data-wow-delay", ($(this).index() / 10) + "s");
82	    
83	});
84	
85
86
87	$(".banner").each(function () {
88	    if ($(this).find(".item").length > 1) {
89	        var owl = $(this).owlCarousel({ 
90	            items: 1,
91	            loop: true, 
92	            autoplay: true,
93	            stopOnHover: true
94	            
95	        });
96	        owl.on('changed.owl.carousel', function (event) {
97	            //console.log(owl.find(".animated").length,owl.find(".animated").html());
98	            owl.find(".animated").each(function () { 
99	                $(this).removeClass($(this).attr("data-animation")); 
100	            })
101	            //console.log(owl.find(".owl-item").eq(event.item.index).find(".active").length,owl.find(".owl-item").eq(event.item.index).find(".active").html());
102	            owl.find(".owl-item").eq(event.item.index).find(".animated").each(function () { 
103	                $(this).addClass($(this).attr("data-animation"));
104	            });
105	        });
106	        
107            /**/
108	        $(".banner_cur .prev").click(function () { 
109	            owl.trigger("prev.owl.carousel") 
110	        })
111	        $(".banner_cur .next").click(function () { 
112	            owl.trigger("next.owl.carousel") 
113	        })
114	    }
115	});
116	
117	$(".banner .owl-item").eq(2).find(".animated").each(function () {
118	    $(this).addClass($(this).attr("data-animation"));
119	})
120	
121	/**/
122	//var div_ = '<div class="groove"><div class="strip"></div></div>';
123	//var div_ = '<div class="strip"></div>';
124    //$(".banner_owl .owl-dot.active span").append(div_);
125   // $(".banner_owl .strip").css({
126   //     "right": "100%"
127    //});
128    //轮播图处理-star
129    
130
131
132 /*
133    function progressBar(elem){
134        $elem = elem;
135        buildProgressBar();
136        start();
137    }
138 
139    function buildProgressBar(){
140        $progressBar = $('<div>',{
141            id:'progressBar'
142        });
143        $bar = $('<div>',{
144            id:'bar'
145        });
146        $progressBar.append($bar).insertAfter($elem.children().eq(0));
147    }
148 
149    function start(){
150        percentTime = 0;
151        isPause = false;
152        tick = setInterval(interval, 10);
153    }
154 
155    function interval(){
156        if(isPause === false){
157            percentTime += 1 / time;
158            $bar.css({
159                width: percentTime+'%'
160            });
161            if(percentTime >= 100){
162                $elem.trigger('owl.next')
163            }
164        }
165    }
166 
167    function pauseOnDragging(){
168        isPause = true;
169    }
170 
171    function moved(){
172        clearTimeout(tick);
173        start();
174    }
175 */
176 
177/* 
178    $elem.on('mouseover',function(){
179        isPause = true;
180    })
181 
182    $elem.on('mouseout',function(){
183        isPause = false;
184    });
185*/
186    
187
188    
189    
190    //轮播图处理-end
191	$(window).scroll(function () {
192	    $(".animated").each(function () {
193	        if ($(this).offset().top - $(window).scrollTop() > $(window).height() - 80)
194	            $(this).removeClass($(this).attr("data-animation"));
195	        else
196	            $(this).addClass($(this).attr("data-animation"));
197	    })
198
199	    if ($(window).scrollTop() > 30) {
200	        $(".header").addClass("fixed");
201	    }
202	    else { $(".header").removeClass("fixed"); }
203	})
204
205
206	$(".menu_wrap").click(function () {
207	    $(".header").toggleClass("h_menu");
208	    $("body").toggleClass("open");
209	    
210	    
211	});
212
213
214	$(window).load(function () {
215	    if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
216	        //new WOW().init();
217	    }
218	})
219    
220    //Scroll back to top
221		
222		var progressPath = document.querySelector('.progress-wrap path');
223		var pathLength = progressPath.getTotalLength();
224		progressPath.style.transition = progressPath.style.WebkitTransition = 'none';
225		progressPath.style.strokeDasharray = pathLength + ' ' + pathLength;
226		progressPath.style.strokeDashoffset = pathLength;
227		progressPath.getBoundingClientRect();
228		progressPath.style.transition = progressPath.style.WebkitTransition = 'stroke-dashoffset 10ms linear';		
229		var updateProgress = function () {
230			var scroll = $(window).scrollTop();
231			var height = $(document).height() - $(window).height();
232			var progress = pathLength - (scroll * pathLength / height);
233			progressPath.style.strokeDashoffset = progress;
234		//	console.log('scroll',scroll,'height',height,'document.height',$(document).height(),'window.height',$(window).height(),'progress',progress);
235		}
236		updateProgress();
237		$(window).scroll(updateProgress);	
238		var offset = 50;
239		var duration = 550;
240		jQuery(window).on('scroll', function() {
241			if (jQuery(this).scrollTop() > offset) {
242				jQuery('.progress-wrap').addClass('active-progress');
243			} else {
244				jQuery('.progress-wrap').removeClass('active-progress');
245			}
246		});				
247		jQuery('.progress-wrap').on('click', function(event) {
248			event.preventDefault();
249			jQuery('html, body').animate({scrollTop: 0}, duration);
250			return false;
251		})
252
253});
254
255/*main*/
256//
257
258function font() {
259
260
261}
262
263function footerPosition(){
264   $(".footer").removeClass("footer-fixed-bottom");
265   var contentHeight = $(document).height();//网页正文全文高度
266      // winHeight = window.innerHeight - $(".footer").height();
266//可视窗口高度,不包括浏览器顶部工具栏
267       mainer = $(".mainer").height()+$(".footer").height()+$(".header").height();
268      console.log('contentHeight==',contentHeight,'mainer==',mainer,'($(document).height()-$(".footer").height())==',$(document).height()-$(".footer").height(),'$(document).height()==',$(document).height(),'$(".mainer").height()+ $(".footer").height()==',$(".mainer").height()+ $(".footer").height(),document.body.scrollHeight);
269      
270   if(contentHeight > mainer){
271       //当网页正文高度小于可视窗口高度时,为footer添加类fixed-bottom
272       $(".footer").addClass("footer-fixed-bottom");
273   } else {
274       //$(".footer").addClass("footer-fixed-bottom " +winHeight+" "+contentHeight+" "+mainer);
275       $(".footer").removeClass("footer-fixed-bottom");
276   }
277}
278
279/*call*/
280//
281function resize(){
282	var ht=$(window).height();
283	 
284} 

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.