PageSourceSearch

https://www.oplaza-h.co.jp/wp/wp-content/themes/custom/js/pagetop.js

js oplaza-h.co.jp collected 2026-10-04 13:30:00 UTC 1,273 bytes, 37 lines download raw bytes

1$(document).ready(function(){
2	//$(".pagetop a").hide();
3	$(window).on("scroll", function() {
4		if ($(this).scrollTop() > 100) {
5			$("#page_top").fadeIn("fast");
6		} else {
7			$("#page_top").fadeOut("fast");
8		}
9		scrollHeight = $(document).height(); //ドキュメントの高さ 
10		scrollPosition = $(window).height() + $(window).scrollTop(); //現在地 
11		footHeight = $("footer").innerHeight(); //footerの高さ(=止めたい位置)
12		if ( scrollHeight - scrollPosition  <= footHeight ) { //ドキュメントの高さと現在地の差がfooterの高さ以下になったら
13			$("#page_top").css({
14				"position":"absolute", //pisitionをabsolute(親:wrapperからの絶対値)に変更
15				"bottom": footHeight + 5 //下からfooterの高さ + ○px上げた位置に配置
16			});
17		} else { //それ以外の場合は
18			if ($(window).width() >= 1024) {
19				$("#page_top").css({
20					"position":"fixed", //固定表示
21					"bottom": "60px" //下から20px上げた位置に
22				});
23			} else {
24				$("#page_top").css({
25					"position":"fixed", //固定表示
26					"bottom": "65px" //下から0px上げた位置に
27				});
28			}
29		}
30	});
31	$('#page_top').click(function () {
32		$('body,html').animate({
33		scrollTop: 0
34		}, 800);
35		return false;
36	});
37});

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.