PageSourceSearch

https://www.kirishima-fg.jp/wp/wp-content/themes/kirishima-fg3/js/config.js?ver=20240605

js kirishima-fg.jp collected 2026-10-04 13:26:06 UTC 3,036 bytes, 135 lines download raw bytes

1// kirishima-fg.demo-page.jp config.js
2jQuery.noConflict();
3(function ($) {
4	var $win = $(window);
5	$('#menu-toggle-btn').on('click', function () {
6		$('body').toggleClass('toggled');
7		return false;
8	});
9
10	var headerHight = 100; //ヘッダの高さ
11	$('#main a[href^="#"]').on('click', function () {
12		var speed = 500;
13		var href = $(this).attr("href");
14		var target = $(href == "#" || href == "" ? 'html' : href);
15		var position = target.offset().top - headerHight;
16		$("html, body").animate({
17			scrollTop: position
18		}, speed, "swing");
19		return false;
20	});
21
22
23	$(function () {
24		$(".mobile-menu-enjoy dt").on("click", function () {
25			$(this).next().slideToggle();
26		});
27	});
28
29	$(function () {
30		$(".mobile-menu-drink dt").on("click", function () {
31			$(this).next().slideToggle();
32		});
33	});
34	$(function () {
35		$(".mobile-menu-shopping dt").on("click", function () {
36			$(this).next().slideToggle();
37		});
38	});
39	$(function () {
40		$(".mobile-menu-facility dt").on("click", function () {
41			$(this).next().slideToggle();
42		});
43	});
44
45
46	$(function () {
47		var windowWidth = $(window).width();
48		var windowSm = 768;
49		var topBtn = $('#page-top');
50		topBtn.hide();
51
52
53		if (windowWidth <= windowSm) {} else {
54			//スクロールが100に達したらボタン表示
55			$(window).scroll(function () {
56				if ($(this).scrollTop() > 100) {
57					topBtn.fadeIn();
58				} else {
59					topBtn.fadeOut();
60				}
61			});
62			//スクロールしてトップ
63			topBtn.click(function () {
64				$('body,html').animate({
65					scrollTop: 0
66				}, 500);
67				return false;
68			});
69		}
70	});
71	
72	$(function () {
73		var windowWidth = $(window).width();
74		var windowSm = 768;
75		var topBtn = $('#page-top3');
76		topBtn.hide();
77
78		if (windowWidth <= windowSm) {
79
80   //スクロールが100に達したらボタン表示
81			$(window).scroll(function () {
82				if ($(this).scrollTop() > 30) {
83     topBtn.fadeIn();
84    } else {
85     topBtn.fadeOut();
86    }
87   });
88   //スクロールしてトップ
89   topBtn.click(function () {
90    $('body,html').animate({
91     scrollTop: 0
92    }, 500);
93    return false;
94   });
95   
96  } else {
97			//スクロールが100に達したらボタン表示
98			$(window).scroll(function () {
99				if ($(this).scrollTop() > 100) {
100					topBtn.fadeIn();
101				} else {
102					topBtn.fadeOut();
103				}
104			});
105			//スクロールしてトップ
106			topBtn.click(function () {
107				$('body,html').animate({
108					scrollTop: 0
109				}, 500);
110				return false;
111			});
112		}
113	});
114
115	// $('.gallery-row a').addClass('foobox').attr('rel','gallery');
116
117	$win.on('load resize', function () {
118		if (window.matchMedia('(min-width:768px)').matches) {
119			$('a[href^="tel:"]').on('click', function (e) {
120				e.preventDefault();
121			});
122			// $('#child-lookenjoy,#child-drinkeat,#child-facilities').insertBefore('#masthead');
123		}
124
125		$(window).scroll(function () {
126			var TargetPos = 30;
127			var ScrollPos = $(window).scrollTop();
128			if (ScrollPos > TargetPos) {
129				$('body').addClass('scrolled');
130			} else {
131				$('body').removeClass('scrolled');
132			}
133		});
134	});
135})(jQuery);

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.