PageSourceSearch

https://www.chiba-biyo.com/common/js/hdr.js

js chiba-biyo.com collected 2026-10-04 06:46:03 UTC 1,550 bytes, 58 lines download raw bytes

1$(function() {
2	
3	//ロード or スクロールされると実行
4	$(window).on('load scroll', function(){
5		
6		//ヘッダーの高さ分(80px)スクロールするとfixedクラスを追加
7		if ($(window).scrollTop() > 86) {
8			$('.sp_btn div').addClass('fixed');
9		} else {
10			//80px以下だとfixedクラスを削除
11			$('.sp_btn div').removeClass('fixed');
12		}
13		
14	});
15	
16});
17
18
19$(function () {
20  var headerHight = 0; //ヘッダの高さ
21  $('a[href^=#]').click(function(){
22    var href= $(this).attr("href");
23    var target = $(href == "#" || href == "" ? 'html' : href);
24    var position = target.offset().top-headerHight; //ヘッダの高さ分位置をずらす
25    $("html, body").animate({scrollTop:position}, 550, "swing");
26//  return false;
27  });
28});
29
30/*
31$(function() {
32	//ロード or スクロールされると実行
33	$(window).on('load scroll', function(){
34		//ヘッダーの高さ分(80px)スクロールするとfixedクラスを追加
35		if ($(window).scrollTop() > 100) {
36			$('.right_menu ul').addClass('fixed');
37		} else {
38			//80px以下だとfixedクラスを削除
39			$('.right_menu ul').removeClass('fixed');
40		}
41	});
42});
43*/
44
45$(function() {
46	//ロード or スクロールされると実行
47	$(window).on('load scroll', function(){
48		//ヘッダーの高さ分(80px)スクロールするとfixedクラスを追加
49		if ($(window).scrollTop() > 100) {
50			$('.right_menu ul').addClass('fixed f_in');
51		} else {
52			//80px以下だとfixedクラスを削除
53			$('.right_menu ul').removeClass('fixed f_in');
54		}
55	});
56});
57
58

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.