PageSourceSearch

https://catholic.by/3/templates/catholic/js/scrollup.js

js catholic.by collected 2026-10-02 03:28:51 UTC 900 bytes, 32 lines download raw bytes

1/*
2window.onload = function() { // после загрузки страницы
3*/
4
5function InitScrollUp() {
6	var scrollUp = document.getElementById('scrollup'); // найти элемент
7
8	scrollUp.onmouseover = function() { // добавить прозрачность
9		scrollUp.style.opacity=0.3;
10		scrollUp.style.filter  = 'alpha(opacity=30)';
11	};
12
13	scrollUp.onmouseout = function() { //убрать прозрачность
14		scrollUp.style.opacity = 0.5;
15		scrollUp.style.filter  = 'alpha(opacity=50)';
16	};
17
18	scrollUp.onclick = function() { //обработка клика
19		window.scrollTo(0,0);
20	};
21
22// show button
23
24	window.onscroll = function () { // при скролле показывать и прятать блок
25		if ( window.pageYOffset > 500 ) {
26			scrollUp.style.display = 'block';
27		} else {
28			scrollUp.style.display = 'none';
29		}
30	};
31	
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.