PageSourceSearch

https://tirnanog-ginza.com/common/js/main.js

js tirnanog-ginza.com collected 2026-10-05 01:28:47 UTC 2,845 bytes, 84 lines download raw bytes

1var windw_size = '';
2
3$(function() {
4	if($(window).width() > 959) {
5		windw_size = 'pc';
6	} else if($(window).width() > 639) {
7		windw_size = 'tab';
8	} else {
9		windw_size = 'sp';
10	}
11	
12/* 高さ揃え */
13	$(window).on('load',function(){
14		if($('.heightAll').length) $('.heightAll').flatHeightAll();
15		if($('.heightAll02').length) $('.heightAll02').flatHeightAll();
16		if($('.heightAll03').length) $('.heightAll03').flatHeightAll();
17		if($('.heightAll04').length) $('.heightAll04').flatHeightAll();
18		if($('.heightAll05').length) $('.heightAll05').flatHeightAll();
19		if($('.heightAll06').length) $('.heightAll06').flatHeightAll();
20		if($('.heightAll07').length) $('.heightAll07').flatHeightAll();
21		if($('.heightAll08').length) $('.heightAll08').flatHeightAll();
22		$(window).resize(function(){
23			if($('.heightAll').length) $('.heightAll').flatHeightAll();
24			if($('.heightAll02').length) $('.heightAll02').flatHeightAll();
25			if($('.heightAll03').length) $('.heightAll03').flatHeightAll();
26			if($('.heightAll04').length) $('.heightAll04').flatHeightAll();
27			if($('.heightAll05').length) $('.heightAll05').flatHeightAll();
28			if($('.heightAll06').length) $('.heightAll06').flatHeightAll();
29			if($('.heightAll07').length) $('.heightAll07').flatHeightAll();
30			if($('.heightAll08').length) $('.heightAll08').flatHeightAll();
31		});
32	});
33	
34/* ページトップ */
35	$(window).scroll(function(){
36		if ($(window).scrollTop() > $('.main__contents').height() - $(window).height()) {
37			$('.float_bnr').stop().fadeTo(200, 0, function(){
38				$('.float_bnr').hide();
39			});
40		} else {
41			$('.float_bnr').stop().fadeTo(300, 1);
42		}
43	}).scroll();
44		
45
46/* スムーズスクロール */
47	// スクロールのオフセット値
48	var offsetY = 0;
49	// スクロールにかかる時間
50	var time = 500;
51	
52	// ページ内リンクのみを取得
53	$('a[href^="#"]').click(function() {
54		// 移動先となる要素を取得
55		var target = $(this.hash);
56		if (!target.length) return ;
57		// 移動先となる値
58		offsetY = -$('.header').height();	  
59		if($('.anchor').length && $(window).width() > 599) {
60			offsetY -= 	$('.anchor').height();
61		}
62		var targetY = target.offset().top+offsetY;
63		// スクロールアニメーション
64		$('html,body').animate({scrollTop: targetY}, time, 'swing');
65		// ハッシュ書き換えとく
66		window.history.pushState(null, null, this.hash);
67		// デフォルトの処理はキャンセル
68		return false;
69	});
70
71/* gnavsp */
72	var gnav_position = $('.gnav').offset().top;
73	$(window).scroll(function(){
74		if ($(window).scrollTop() > gnav_position) {
75			$('.gnav').addClass('fixed');
76		} else {
77			$('.gnav').removeClass('fixed');
78		}
79	});
80	$('.header .menu a').click(function(){
81		$('.gnav').stop().fadeToggle();
82		return false;
83	});
84});

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.