PageSourceSearch

https://toyotetsu.com/assets/js/common.js?v=20260925000000

js toyotetsu.com collected 2026-09-24 22:15:12 UTC 2,361 bytes, 90 lines download raw bytes

1jQuery(function(){
2
3	/* -------------------------- */
4	/* ヘッダー */
5	/* -------------------------- */
6	// ヘッダーの高さ分スクロールしたらclassを付与
7	var pos = 0;
8	// let headerElm = jQuery('#header');
9	let headerElmTop = jQuery('#header .header-top');
10	// let headerHeight = headerElm.height();
11	jQuery(window).on('scroll', function () {
12		// if (jQuery(this).scrollTop() > headerHeight) {
13		// 	headerElmTop.addClass('-scroll');
14		// 	// headerElmTop.slideUp();
15		// } else {
16		// 	headerElmTop.removeClass('-scroll');
17		// 	// headerElmTop.slideDown();
18		// }
19		if(jQuery(this).scrollTop() < pos){
20			// 上にスクロールしたとき
21			headerElmTop.removeClass('-scroll');
22		} else {
23			// 下にスクロールしたとき
24			headerElmTop.addClass('-scroll');
25		}
26		pos = jQuery(this).scrollTop();
27	});
28
29
30
31	/* -------------------------- */
32	/* SPナビ */
33	/* -------------------------- */
34	let gNaviTrigger = jQuery('#header .header-menu.-trigger');
35	let gNavi = jQuery('#header .header-btm');
36
37	// ナビメニューを展開
38	gNaviTrigger.on('click', function() {
39		jQuery(this).toggleClass('-open');
40		gNavi.fadeToggle(300).css('display','flex');
41		jQuery('body').toggleClass('scroll');
42	});
43
44
45	/* -------------------------- */
46	/* ページトップボタン */
47	/* -------------------------- */
48	jQuery(window).on('scroll', function () {
49		// ヘッダーの高さ分スクロールしたらclassを付与
50		let header = jQuery('#header');
51		let scrollTop = jQuery('#scroll-top');
52		let headerHeight = header.height();
53		if (jQuery(this).scrollTop() > headerHeight) {
54			scrollTop.fadeIn(300);
55		} else {
56			scrollTop.fadeOut(300);
57		}
58	});
59
60	/* -------------------------- */
61	/* スクロールヒント */
62	/* -------------------------- */
63	new ScrollHint('.js-scrollable', {
64		i18n: {
65			scrollable: 'スクロールできます'
66		},
67	});
68});
69
70/* -------------------------- */
71/* 運行情報のセット */
72/* -------------------------- */
73function setUnkouInfo(selector, type, vmode) {
74	jQuery.ajax({
75		url   : '/parts/get_unkou.cgi',
76		type  : 'POST',
77		cache : false ,
78		data  : {
79			type  : type,
80			vmode : vmode
81		},
82		dataType : 'html'
83	})
84	.done(function(html) {
85		jQuery(selector).html(html);
86	})
87	.fail(function(jqXHR, textStatus, errorThrown) {
88		console.log('エラーが発生しました。');
89	});
90}

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.