PageSourceSearch

https://www.city.inagi.tokyo.jp/_template_/_site_/_default_/_res/js/pagetop_fade.js

js city.inagi.tokyo.jp collected 2026-10-02 06:47:25 UTC 763 bytes, 38 lines download raw bytes

1//スクロール
2(function(){
3var $ = FI.jQuery;
4$(function() {
5	
6	var clickFlg = false;
7	
8	var topBtn = $('#guide .pagetop');	
9	topBtn.hide();
10
11	//スクロールが100に達したらボタン表示
12	$(window).on('scroll', function(){
13		if ($(this).scrollTop() > 100) {
14			topBtn.fadeIn();
15		} else {
16			topBtn.fadeOut();
17		}
18		if(clickFlg && $(this).scrollTop() == 0){
19			// フォーカスを先頭に移動
20			$('header').attr('tabindex', '0');
21			$('header').focus();
22			$('header').attr('tabindex', '-1');
23			clickFlg = false;
24		}
25	});
26
27	//スクロールしてトップ
28	topBtn.on('click', function(){
29		$('body,html').animate({
30			scrollTop: 0
31		}, 'slow','swing');
32		clickFlg = true;
33		return false;
34	});
35
36});
37
38})();

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.