PageSourceSearch

https://www.rubberasia.com/js/foot.js

js rubberasia.com collected 2026-10-02 19:09:52 UTC 2,186 bytes, 62 lines download raw bytes

1//科室导航
2function myNav(){
3	if($("#nav").hasClass("openNav")){
4		$("#nav-over").css("display","none");
5		$("#nav").removeClass("openNav");
6		$("#warmp,.footer-con").removeClass("openMenu");
7	}else{
8		$("#nav-over").css("display","block");
9		$("#nav").addClass("openNav");
10		$("#warmp,.footer-con").addClass("openMenu");
11				
12		$("#scrollerBox").height($(window).height() - $("#nav h3").outerHeight());
13		//new IScroll('#scrollerBox',{preventDefault:false});		
14		$(window).resize(function(){
15			$("#scrollerBox").height($(window).height() - $("#nav h3").outerHeight());
16		})
17	}	
18}
19//项目导航
20function ksNav(){
21	if($("#ks-nav").hasClass("openNav")){
22		$("#nav-over").css("display","none");
23		$("#ks-nav").removeClass("openNav");
24		$("#warmp,.footer-con").removeClass("openMenu")	
25	}else{
26		$("#nav-over").css("display","block");
27		$("#ks-nav").addClass("openNav");
28		$("#warmp,.footer-con").addClass("openMenu");
29		
30		
31		$("#ks-scrollerBox").height($(window).height() - $("#ks-nav h3").outerHeight());
32		//new IScroll('#ks-scrollerBox',{preventDefault:false});		
33		$(window).resize(function(){
34			$("#ks-scrollerBox").height($(window).height() - $("#nav h3").outerHeight());
35		})
36	}
37}
38$("#nav-over").bind("click",function(){
39	$("#nav-over").css("display","none");
40	$("#warmp,.footer-con").removeClass("openMenu");
41	$("#nav").removeClass("openNav");
42	$("#ks-nav").removeClass("openNav");
43	$("#warmp,.footer-con").removeClass("openMenu")	
44})
45$("#nav-over").bind("touchmove touch",function(e){e.preventDefault()},false);//阴止默认事件
46$(".navHome").bind("click",myNav);
47$(".navIteam").bind("click",ksNav);
48
49
50
51//返回顶部
52$("body").append('<div class="gotop" id="gotop"><div>');
53$(window).scroll(function(){$(document).scrollTop()>300?$("#gotop").fadeIn():$("#gotop").fadeOut()});
54$("#gotop").click(function(){$("html,body").animate({scrollTop:0},300)})
55//标题文字滚动
56//function run(obj){
57//	var obj = document.getElementById(obj);
58//	var strText= obj.innerHTML;
59//	strText=strText.substring(1,strText.length)	+ strText.substring(0,1);
60//	obj.innerHTML = strText;	  
61//}
62//setInterval('run("title")',400);

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.