PageSourceSearch

https://yazaki-kaikei.com/cms/wp/wp-content/themes/yazaki-kaikei/js/scrollheader.js

js yazaki-kaikei.com collected 2026-10-07 23:39:05 UTC 616 bytes, 19 lines download raw bytes

1// JavaScript Document
2
3function init() {
4	// スクロールして何ピクセルでアニメーションさせるか
5	var px_change	= 150;
6
7	// スクロールのイベントハンドラを登録
8	window.addEventListener('scroll', function(e){
9		// 変化するポイントまでスクロールしたらクラスを追加
10		if ( $(window).scrollTop() > px_change ) {
11			$("#global-header").addClass("scroll");
12
13		// 変化するポイント以前であればクラスを削除
14		} else if ( $("#global-header").hasClass("scroll") ) {
15			$("#global-header").removeClass("scroll");
16		}
17	});
18}
19window.onload = init();

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.