PageSourceSearch

https://jualboileridm.com/wp-content/themes/envision/includes/modules/module.to_top/source/to_top_ver-2.7.8.js

js jualboileridm.com collected 2026-10-04 01:49:29 UTC 1,902 bytes, 56 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: '<i class="fontawesome-angle-up px24"></i>',
12    			min: 200,
13    			inDelay:600,
14    			outDelay:400,
15      			containerID: 'toTop',
16      			className: 'btn btn-primary',
17    			containerHoverID: 'toTopHover',
18    			scrollSpeed: 1200,
19    			easingType: 'linear'
20 		    },
21            settings = $.extend(defaults, options),
22            containerIDhash = '#' + settings.containerID,
23            containerHoverIDHash = '#'+settings.containerHoverID;
24		
25		$('body').append('<a href="#" id="'+settings.containerID+'" class="'+settings.className+'">'+settings.text+'</a>');
26		$(containerIDhash).hide().on('click.UItoTop',function(){
27			$('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
28			$('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
29			return false;
30		})
31		.prepend('<span id="'+settings.containerHoverID+'"></span>')
32		.hover(function() {
33				$(containerHoverIDHash, this).stop().animate({
34					'opacity': 1
35				}, 600, 'linear');
36			}, function() { 
37				$(containerHoverIDHash, this).stop().animate({
38					'opacity': 0
39				}, 700, 'linear');
40			});
41					
42		$(window).scroll(function() {
43			var sd = $(window).scrollTop();
44			if(typeof document.body.style.maxHeight === "undefined") {
45				$(containerIDhash).css({
46					'position': 'absolute',
47					'top': sd + $(window).height() - 50
48				});
49			}
50			if ( sd > settings.min ) 
51				$(containerIDhash).fadeIn(settings.inDelay);
52			else 
53				$(containerIDhash).fadeOut(settings.Outdelay);
54		});
55};
56})(jQuery);

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.