PageSourceSearch

https://northernsunrise.net/repository/designs/parts/scripts/jquery.backTop.js

js northernsunrise.net collected 2026-10-05 05:04:45 UTC 736 bytes, 38 lines download raw bytes

1(function ($) {
2	$.fn.backTop = function (options) {
3		var backBtn = this;
4
5		var settings = $.extend({
6			'position': 400,
7			'speed': 500,
8			'color': 'white'
9		}, options);
10
11		//Settings
12		var position = settings['position'];
13		var speed = settings['speed'];
14		var color = settings['color'];
15
16		backBtn.css({
17			'right': 20,
18			'bottom': 20,
19			'position': 'fixed',
20		});
21
22		$(document).scroll(function () {
23			var pos = $(window).scrollTop();
24
25			if (pos >= position) {
26				backBtn.fadeIn(speed);
27			} else {
28				backBtn.fadeOut(speed);
29			}
30		});
31
32		backBtn.click(function () {
33			$("html, body").animate({ scrollTop: 0 }, { duration: 1200 });
34			$("a").first().focus();
35		});
36	}
37
38}(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.