PageSourceSearch

https://www.bad-dueben.de/_assets/7b3ba8bb3871137dffa4d9cccacf730f…/scripts.scroll-to-top.js?1789368012

js bad-dueben.de collected 2026-10-02 11:09:26 UTC 711 bytes, 26 lines download raw bytes

1jQuery(document).ready(function($) {
2
3	// clone scroll top
4	$('.js-scroll-to-top').clone().appendTo('body').addClass('fixed-scroll-to-top js-fixed-scroll-to-top');
5
6	// fade fixed scroll to top
7	$(window).scroll(function(){
8		var scrollTop = $(window).scrollTop(),
9			footerOffsetTop = $('.bottom-footer').offset().top - 50,
10			anchorTop = $('.js-fixed-scroll-to-top').offset().top;
11
12		if (scrollTop >= 200 && anchorTop < footerOffsetTop) {
13			$('.js-fixed-scroll-to-top').addClass('visible');
14		} else {
15			$('.js-fixed-scroll-to-top').removeClass('visible');
16		}
17	});
18
19	// Scroll to top
20	$('.js-scroll-to-top').click(function() {
21		$('html,body').animate({
22			scrollTop: 0
23		}, 800);
24		return false;
25	});
26});

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.