PageSourceSearch

https://www.fudotetra-env.jp/js/scroll.js

js fudotetra-env.jp collected 2026-10-08 01:15:53 UTC 2,456 bytes, 93 lines download raw bytes

1jQuery(function($){
2	var headerHeight = $('.gnav-wrapper').outerHeight();
3	var urlHash = location.hash;
4	if(urlHash) {
5		$('body,html').stop().scrollTop(0);
6		setTimeout(function(){
7			var target = $(urlHash);
8			var position = target.offset().top - headerHeight;
9			$('body,html').stop().animate({scrollTop:position}, 500);
10		}, 100);
11	}
12	$('a[href^="#"]').click(function() {
13		var href= $(this).attr("href");
14		var target = $(href);
15		var position = target.offset().top - headerHeight;
16		$('body,html').stop().animate({scrollTop:position}, 500);	
17	});
18	
19	var _window = $(window),
20		_header = $('.gnav-wrapper'),
21		heroBottom,
22		startPos,
23		winScrollTop;
24
25	_window.on('scroll',function(){
26		winScrollTop = $(this).scrollTop();
27		heroBottom = $('.gnav-wrapper').height();
28		if (winScrollTop >= startPos) {
29			if(winScrollTop >= heroBottom){
30				_header.addClass('hide');
31			}
32		} else {
33			_header.removeClass('hide');
34		}
35		startPos = winScrollTop;
36	});
37
38	_window.trigger('scroll');
39	
40});	
41
42jQuery(function($){
43	var headerHeight = $('.sp_header').outerHeight();
44	var urlHash = location.hash;
45	if(urlHash) {
46		$('body,html').stop().scrollTop(0);
47		setTimeout(function(){
48			var target = $(urlHash);
49			var position = target.offset().top - headerHeight;
50			$('body,html').stop().animate({scrollTop:position}, 500);
51		}, 100);
52	}
53	$('a[href^="#"]').click(function() {
54		var href= $(this).attr("href");
55		var target = $(href);
56		var position = target.offset().top - headerHeight;
57		$('body,html').stop().animate({scrollTop:position}, 500);	
58	});
59	
60	var _window = $(window),
61		_header = $('.sp_header'),
62		heroBottom,
63		startPos,
64		winScrollTop;
65
66	_window.on('scroll',function(){
67		winScrollTop = $(this).scrollTop();
68		heroBottom = $('.sp_header').height();
69		if (winScrollTop >= startPos) {
70			if(winScrollTop >= heroBottom){
71				_header.addClass('hide');
72			}
73		} else {
74			_header.removeClass('hide');
75		}
76		startPos = winScrollTop;
77	});
78
79	_window.trigger('scroll');
80	
81});	
82
83
84	  $(function () {
85  var headerHight = 200; //ヘッダの高さ
86  $('a[href^="#"]').click(function(){
87    var href= $(this).attr("href");
88    var target = $(href == "#" || href == "" ? 'html' : href);
89    var position = target.offset().top-headerHight; //ヘッダの高さ分位置をずらす
90    $("html, body").animate({scrollTop:position}, 550, "swing");
91    return false;
92  });
93});

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.