PageSourceSearch

https://gubernia.com/wp-content/themes/gubernia/static/js/to-top-button.js?ver=7.1

js gubernia.com collected 2026-09-24 19:43:56 UTC 607 bytes, 28 lines download raw bytes

1(function($) {
2	$(function() {
3		$('.to-top-button').click(function() {
4			$('html, body').animate({scrollTop: 0}, 700);
5		});
6	});
7
8	$(window).scroll(function(event) {
9		var documentHeight = $(document).height();
10
11		var scolledHeight = $(document).scrollTop();
12
13		/*
14		 * X % of the document height being scolled
15		 * is enought to display toTopButton
16		*/
17
18		var toTopButtonScrollTrigger = 0.02;
19
20		var toTopFixedButton = $('.to-top-button.fixed');
21
22		if( scolledHeight >= toTopButtonScrollTrigger * documentHeight ) {
23			toTopFixedButton.show();
24		} else {
25			toTopFixedButton.hide();
26		}
27	});
28})(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.