PageSourceSearch

https://www.kirishima-fg.jp/wp/wp-content/themes/kirishima-fg3/js/top.js

js kirishima-fg.jp collected 2026-10-04 13:26:01 UTC 7,799 bytes, 259 lines download raw bytes

1jQuery(function($){
2var PBR = PBR || {};
3PBR.el = {
4	$html: $("html"),
5	$body: $("body"),
6	$loading: $(".l-loading"),
7	$page: $(".l-page"),
8	$scroll: $(".l-scroll"),
9	$header: $(".l-header"),
10	$main: $(".l-main"),
11	$footer: $(".l-footer")
12}, PBR.page = {
13	isTop: PBR.el.$body.hasClass("home")
14}, PBR.ua = function () {
15	var e = navigator.userAgent.toLowerCase(),
16		n = -1 != e.indexOf("msie") || -1 != e.indexOf("trident"),
17		i = -1 != e.indexOf("edge"),
18		o = -1 != e.indexOf("windows") && -1 != e.indexOf("phone") || -1 != e.indexOf("iphone") || -1 != e.indexOf("ipod") || -1 != e.indexOf("android") && -1 != e.indexOf("mobile") || -1 != e.indexOf("firefox") && -1 != e.indexOf("mobile") || -1 != e.indexOf("blackberry"),
19		t = -1 != e.indexOf("windows") && -1 != e.indexOf("touch") || -1 != e.indexOf("ipad") || -1 != e.indexOf("android") && -1 == e.indexOf("mobile") || -1 != e.indexOf("firefox") && -1 != e.indexOf("tablet") || -1 != e.indexOf("kindle") || -1 != e.indexOf("silk") || -1 != e.indexOf("playbook");
20	return n && PBR.el.$html.addClass("is-ie"), i && PBR.el.$html.addClass("is-edge"), {
21		isIE: n,
22		isEdge: i,
23		isSP: o,
24		isTB: t
25	}
26}(), PBR.ev = function () {
27	var e = {},
28		n = $(window).width(),
29		i = $(window).height(),
30		o = n,
31		t = i,
32		s = function () {
33			if (window.getComputedStyle) var e = window.getComputedStyle(document.body, ":before").getPropertyValue("content").replace(/"/g, "");
34			else e = "lg";
35			return e
36		};
37	return e.new = s(), e.old = e.new, e.count = 1, $(function () {
38		$(window).triggerHandler("my_ready", e)
39	}), $(window).on("load", function () {
40		$(window).triggerHandler("my_load", e)
41	}), $(window).on("orientationchange", function () {
42		$(window).triggerHandler("my_orientationchange", e)
43	}), $(window).on("resize", function () {
44		n = $(window).width(), i = $(window).height(), n !== o && (e.new = s()), e.new === e.old ? ($(window).triggerHandler("my_resize", e), n !== o && $(window).triggerHandler("my_resizeW", e), i !== t && $(window).triggerHandler("my_resizeH", e)) : e.new !== e.old && (e.count++, $(window).triggerHandler("my_change", e)), e.old = e.new, o = n, t = i
45	}), {
46		mediaQuery: e
47	}
48}(), PBR.scroll = function () {
49	var e = $('a[href*="#"]'),
50		i = "",
51		n = {
52			damping: .2,
53			thumbMinSize: 20,
54			renderByPixels: !0,
55			alwaysShowTracks: !0
56		},
57		o = function (e) {
58			(!e || e < 0) && (e = 0), i ? i.scrollTo(0, e, 600) : PBR.el.$html.add(PBR.el.$body).stop().animate({
59				scrollTop: e
60			}, 600)
61		};
62	return e.off("click.loading").on("click", function () {
63		if (location.pathname.replace(/^\//, "") === this.pathname.replace(/^\//, "") && location.hostname === this.hostname) {
64			var e = $(this.hash),
65				n = PBR.el.$header.height(),
66				i = e.offset().top - n;
67			return o(i), !1
68		}
69	}), $(window).on("my_ready my_change", function (e, n) {
70		"lg" === n.new || n.old
71	}), {
72		bar: i,
73		options: n,
74		getHeight: function () {
75			return i ? i.getSize().content.height : PBR.el.$scroll.height()
76		},
77		scrollTop: function () {
78			return i ? i.scrollTop : $(window).scrollTop()
79		},
80		scrollLeft: function () {
81			return i ? i.scrollLeft : $(window).scrollLeft()
82		},
83		offsetTop: function (e) {
84			var n = e.offset().top;
85			return i && (n += i.scrollTop), n
86		},
87		scrollTo: o,
88		addListener: function (e) {
89			i ? i.addListener(e) : $(window).on("scroll", e)
90		}
91	}
92}(), PBR.preloader = function (e) {
93	var n = new Image,
94		i = new $.Deferred;
95	return n.onload = function () {
96		i.resolve()
97	}, n.onerror = function () {}, n.src = e, i
98}, PBR.switchImage = function () {
99	var s = $(".js-switch-image"),
100		a = s.length;
101	$(window).on("my_ready my_change", function (e, n) {
102		var o = n.new,
103			t = "lg" === o ? "sm" : "lg";
104		s.removeClass("is-loaded");
105		for (var i = 0; i < a; i++) ! function (e) {
106			var n = s.eq(e),
107				i = n.attr("src").replace("_" + t, "_" + o);
108			PBR.preloader(i).done(function () {
109				n.addClass("is-loaded")
110			}), n.attr("src", i)
111		}(i)
112	})
113}(), $(window).on("my_ready my_change", function (e, n) {
114	if ("sm" === n.new) {
115		var i = $(window).height();
116		$("#js-top_hero").css("height", i)
117	}
118	});
119	
120var heroBg = function () {
121	$(".js-hero").find(".js-hero__inner");
122	var e = $("#js-top_hero"),
123		n = 0,
124		i = e.length,
125		o = !1,
126		t = function () {
127			i - 1 < n && (n = 0)
128		},
129		s = function () {
130			o = setInterval(t, 5e3)
131		},
132		a = function () {
133			$(window).height()
134		};
135	setTimeout(function () {
136		t(), s()
137	}, 1700), $(window).on("my_ready my_change", function (e, n) {
138		a()
139	}), $(window).on("my_resizeH", function (e, n) {
140		"lg" === n.new && a()
141	}), $(window).on("my_resizeW", function (e, n) {
142		"sm" === n.new && a()
143	}), document.addEventListener("visibilitychange", function () {
144		document.hidden ? clearInterval(o) : s()
145	})
146}();
147
148
149PBR.opningLoader = function () {
150	$(window).on("my_ready my_change", function (e, n) {
151		$("body").hasClass("no-referrer") ? i(t) : i(o)
152	});
153	var i = function (e) {
154			$.each(e, function (o, e) {
155				$.each(e, function (e, n) {
156					setTimeout(function () {
157						var i = $(o).show();
158						$.each(n.anims, function (e, n) {
159							i.velocity(n.properties, n.options)
160						})
161					}, n.start || 0)
162				})
163			})
164		},
165		o = {
166			".op": [{
167				start: 0,
168				anims: [{
169					properties: {
170						opacity: 1
171					},
172					options: {
173						duration: 1e3,
174						easing: "easeInQuad",
175						complete: function () {
176							i(e)
177						}
178					}
179				}]
180			}]
181		},
182		e = {
183			".l-loading": [{
184				start: 0,
185				anims: [{
186					properties: {
187						translateY: "0"
188					},
189					options: {
190						duration: 0,
191						easing: "easeInQuad",
192						begin: function () {
193							$("html").addClass("is-hello"), i(n)
194						}
195					}
196				}]
197			}]
198		},
199		t = {
200			".l-loading": [{
201				start: 0,
202				anims: [{
203					properties: {
204						translateY: "0"
205					},
206					options: {
207						duration: 0,
208						easing: "easeInQuad",
209						begin: function () {
210							$("html").addClass("is-hello"), i(n)
211						}
212					}
213				}]
214			}]
215		},
216		n = {
217			".l-loading": [{
218				start: 0,
219				anims: [{
220					properties: {
221						opacity: 1,
222						translateY: "0"
223					},
224					options: {
225						duration: 0,
226						easing: "easeInQuad",
227						begin: function () {
228							$("html").addClass("is-bye"), $("html").addClass("is-bye2"), $(".op").remove(), $("html").removeClass("nosc"), $("#js-top_hero").addClass("is-active"), setTimeout(function () {
229								$(".js-mv_animation1").addClass("is-hero"), $(".js-mv_animation2").addClass("is-hero"), $(".js-mv_animation3").addClass("is-hero"), $(".js-mv_animation4").addClass("is-hero"), setTimeout(function () {
230									$("#pagetop .hddr-trp").addClass("is-hello_hedder"), $("#js-nav__btn").addClass("is-hello_hedder"), $("#js-top_search").addClass("is-hello_hedder"), $(".l-scroll").addClass("is-hello_hedder")
231								}, 900)
232							}, 1500)
233						}
234					}
235				}]
236			}]
237		}
238}()
239, PBR.animeScroll = function () {
240	var e, s;
241	e = $(".js-scroll-animation"), s = $("#js-scroll_header"), e.each(function (e) {
242		var o = $(this),
243			t = $(this).hasClass("is-swip"),
244			i = function () {
245				var e = !1;
246				if (!e) {
247					var n = PBR.scroll.scrollTop(),
248						i = $(window).height();
249					PBR.scroll.offsetTop(o) - i <= n && (e = !0, t && o.addClass("is-end"), o.addClass("is-animate")), n <= 100 ? s.removeClass("is-hedder_chenge_own") : s.find("l-header").hasClass("is-hedder_chenge_own") || s.addClass("is-hedder_chenge_own"), window.pageYOffset, $(document).height(), $(window).height(), $(window).width() < 767 && (n <= 50 ? s.removeClass("is-hedder_chenge_own") : s.find("l-header").hasClass("is-hedder_chenge_own") || s.addClass("is-hedder_chenge_own"))
250				}
251			};
252		$(window).on("my_ready my_change", function (e, n) {
253			PBR.scroll.addListener(i), i()
254		}), $(window).on("my_resize", function (e, n) {
255			i()
256		})
257	})
258}();
259});

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.