PageSourceSearch

https://high.org/wp-content/themes/icelander-child/assets/js/globa…/footer.js?t=1790849128?ver=1.0.0

js high.org collected 2026-10-01 10:22:17 UTC 1,462 bytes, 39 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2	initScrollToTop();
3});
4
5function initScrollToTop () {
6	scrollToTopButton = document.getElementById('at-scroll-to-top-button');
7
8	// On admin pages, the footer doesn't load and, as such, so does the button.
9	if (typeof (
10		scrollToTopButton
11	) != 'undefined' && scrollToTopButton != null) {
12		// Check on page reload if user is already scrolled down to where the button should be visible.
13		if (document.body.scrollTop > document.documentElement.clientHeight ||
14			document.documentElement.scrollTop >
15			document.documentElement.clientHeight) {
16			scrollToTopButton.style.visibility = 'visible';
17			scrollToTopButton.style.opacity = '1';
18		}
19
20		// When the user scrolls down his whole screen from the top of the document, show the button.
21		window.onscroll = function () {
22			if (document.body.scrollTop > document.documentElement.clientHeight ||
23				document.documentElement.scrollTop >
24				document.documentElement.clientHeight) {
25				scrollToTopButton.style.visibility = 'visible';
26				scrollToTopButton.style.opacity = '1';
27			} else {
28				scrollToTopButton.style.visibility = 'hidden';
29				scrollToTopButton.style.opacity = '0';
30			}
31		};
32
33		// When the user clicks on the button, scroll to the top of the document.
34		scrollToTopButton.onclick = function () {
35			document.body.scrollTop = 0; // For Safari
36			document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
37		};
38	}
39}

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.