PageSourceSearch

https://www.neizvestniy-geniy.ru/scripts/jquery.ui.totop.js

js neizvestniy-geniy.ru collected 2026-09-25 09:34:11 UTC 1,509 bytes, 51 lines download raw bytes

1/*
2|--------------------------------------------------------------------------
3| UItoTop jQuery Plugin 1.2 by Matt Varone
4| http://www.mattvarone.com/web-design/uitotop-jquery-plugin/
5|--------------------------------------------------------------------------
6*/
7(function($){
8	$.fn.UItoTop = function(options) {
9
10 		var defaults = {
11    			text: 'Íàâåðõ',
12    			min: 200,
13    			inDelay:600,
14    			outDelay:400,
15      			containerID: 'toTop',
16    			containerHoverID: 'toTopHover',
17    			scrollSpeed: 1200,
18    			easingType: 'linear'
19 		    },
20            settings = $.extend(defaults, options),
21            containerIDhash = '#' + settings.containerID,
22            containerHoverIDHash = '#'+settings.containerHoverID;
23		
24		$('body').append('<a href="#" id="'+settings.containerID+'" title="'+settings.text+'">'+settings.text+'</a>');
25		$(containerIDhash).hide().on('click.UItoTop',function(){
26			$('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
27			return false;
28		});
29					
30		$(window).scroll(function() {
31			var sd = $(window).scrollTop();
32			if(typeof document.body.style.maxHeight === "undefined") {
33				$(containerIDhash).css({
34					'position': 'absolute',
35					'top': sd + $(window).height() - 50
36				});
37			}
38			if ( sd > settings.min ) 
39				$(containerIDhash).fadeIn(settings.inDelay);
40			else 
41				$(containerIDhash).fadeOut(settings.Outdelay);
42		});
43};
44})(jQuery);
45
46// Scroll to Top
47$().UItoTop({
48			containerID: 'toTop',
49			scrollSpeed: 1200,
50			min: 200
51});

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.