PageSourceSearch

https://xponential.org/js/scroll_top.js

js xponential.org collected 2026-10-03 20:51:37 UTC 1,239 bytes, 32 lines download raw bytes

1
2/* =================================================================================================================================================================================
3Scroll To Top
4==================================================================================================================================================================================== */
5jQuery(document).ready(function(){
6
7	// hide #back-top first
8	jQuery("#back-top").hide();
9	
10	// fade in #back-top
11	jQuery(function () {
12		jQuery(window).scroll(function () {
13			if (jQuery(this).scrollTop() > 200) {
14				jQuery('#back-top').fadeIn();
15			} else {
16				jQuery('#back-top').fadeOut();
17			}
18		});
19
20		// scroll body to 0px on click
21		jQuery('#back-top a').click(function () {
22			jQuery('body,html').animate({
23				scrollTop: 0
24			}, 800);
25			return false;
26		});
27	});
28
29});
30/* =================================================================================================================================================================================
31Scroll To Top
32==================================================================================================================================================================================== */

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.