PageSourceSearch

https://gaomon.cn/templets/images/jquery.scroll.min.js

js gaomon.cn collected 2026-10-05 05:10:10 UTC 3,396 bytes, 106 lines download raw bytes

1/*
2scrollrun.i('#scrollmain');
3**/
4
5var scrollrun={
6	a:'#mainbody',
7	b:'scrollcon',
8	c:'scrolldiv',
9	cw:6,
10	py:0,
11	i:function(a){
12		scrollrun.a=a||scrollrun.a;
13		scrollrun.h();
14		$(scrollrun.a).resize(function(){
15			scrollrun.s();
16			scrollrun.r();
17		});
18		$(scrollrun.a+'>.'+scrollrun.b).scroll(function(){
19			scrollrun.s();
20			scrollrun.r();
21		});
22		$(scrollrun.a+'>.'+scrollrun.c+'>s').mouseover(function(){
23			scrollrun.s();
24			scrollrun.r();
25			$(this).mousedown(function(){
26				scrollrun.torun=true;
27				var top=parseInt($(scrollrun.a+'>.'+scrollrun.c+'>s').css('top'));
28				$(scrollrun.a+'>.'+scrollrun.c+'>s').attr('top',top);
29			});
30			$(window).mousedown(function(e){
31				scrollrun.py=e.pageY||0;
32				if(scrollrun.torun) $('html').addClass('notc');
33			}).mousemove(function(e){
34				py=e.pageY||0;
35				scrollrun.py=scrollrun.py||py;
36				scrollrun.t(scrollrun.py,py);
37			}).mouseup(function(e){
38				scrollrun.torun=false;
39				$('html').removeClass('notc');
40			});
41		})
42		
43	},
44	h:function(){
45		var html=$(scrollrun.a).html();
46		$(scrollrun.a).css({
47			'overflow':'hidden','position':'relative'
48		}).html('<div class="'+scrollrun.b+'">'+html+'</div>');
49		$(scrollrun.a).append('<div class="'+scrollrun.c+'"><s style="display:block;"></s></div>');
50		$(scrollrun.a+'>.'+scrollrun.b).css({
51			'width':'100%','height':'100%','padding-right':60,'overflow':'auto'
52		});
53		$(scrollrun.a+'>.'+scrollrun.c).css({
54			'width':scrollrun.cw,'height':'100%','right':0,'top':0,'overflow':'hidden','background-color':'#999','position':'absolute'
55		});
56		$(scrollrun.a+'>.'+scrollrun.c+'>s').css({
57			'width':scrollrun.cw,'overflow':'hidden','position':'absolute','top':0,'left':0,'background-color':'#444'
58		});
59		scrollrun.s();
60	},
61	s:function(){
62		var height1=parseInt($(scrollrun.a).height());
63		var height2=parseInt($(scrollrun.a+'>.'+scrollrun.b)[0].scrollHeight);
64		$(scrollrun.a+'>.'+scrollrun.c+'>s').animate({
65			'height':(height1/height2)*100+'%'
66		},100);
67		if(height1>=height2){
68			$(scrollrun.a+'>.'+scrollrun.c).hide();
69		}else{
70			$(scrollrun.a+'>.'+scrollrun.c).show();
71		}
72	},
73	r:function(){
74		var top=parseInt($(scrollrun.a+'>.'+scrollrun.b).scrollTop());
75		var height1=parseInt($(scrollrun.a+'>.'+scrollrun.c).height());
76		var height2=parseInt($(scrollrun.a+'>.'+scrollrun.b)[0].scrollHeight);
77		var height3=parseInt($(scrollrun.a+'>.'+scrollrun.c+'>s').height());
78		$(scrollrun.a+'>.'+scrollrun.c+'>s').css({
79			'top':(top/height2)*(height1)
80		});
81	},
82	t:function(x1,x2){
83		var top=parseInt($(scrollrun.a+'>.'+scrollrun.c+'>s').attr('top'));
84		var height1=parseInt($(scrollrun.a+'>.'+scrollrun.c).height());
85		var height2=parseInt($(scrollrun.a+'>.'+scrollrun.c+'>s').height());
86		var top1=top+parseInt(x2)-parseInt(x1);
87		if(scrollrun.torun){
88		$("title").html(x1+'-' + x2 + ';' + top1 + ';' + top)
89			if(top1>height1-height2){
90				top1=height1-height2;
91			}else if(top1<=0){
92				top1=0;
93			}
94			$(scrollrun.a+'>.'+scrollrun.c+'>s').css({
95				'top':top1
96			});
97			scrollrun.d();
98		}
99	},
100	d:function(){
101		var top=parseInt($(scrollrun.a+'>.'+scrollrun.c+'>s').css('top'));
102		var height1=parseInt($(scrollrun.a+'>.'+scrollrun.b)[0].scrollHeight);
103		var height2=parseInt($(scrollrun.a+'>.'+scrollrun.c).height());
104		$(scrollrun.a+'>.'+scrollrun.b).scrollTop(top/height2*height1);
105	}
106}

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.