PageSourceSearch

https://www.houyhnhnm.jp/wp-content/themes/new_houyhnhnm_renew_vol1/assets/js-min/autoPageLoad.js

js houyhnhnm.jp collected 2026-10-02 02:29:02 UTC 6,187 bytes, 126 lines download raw bytes

1$(function() {
2	var g = 0,
3		l = 1,
4		d = $(".js-ajax-wrapper"),
5		i = d.attr("data-type"),
6		n = !1,
7		h = d.height(),
8		r = [],
9		f = "",
10		s = location.search;
11
12        var languagePrefix = document.documentElement.lang === 'en' ? '/en' : '';
13		console.log("languagePrefix"+languagePrefix);
14        // console.log("言語設定" + languagePrefix);
15
16	"tag" === i && (f = d.attr("data-tag"), console.log(f)), a(), _();
17	var p = document.title;
18
19	function a() {
20		var a, r, t, e = $(window),
21			o = e.height(),
22			p = (e.width(), e.scrollTop()),
23			o = p + o;
24		d.offset().top + d.outerHeight() < o && (n || (n = !0, a = parseInt(d.find(
25				"[data-page]").filter(":last").attr("data-page")),
26				 t = languagePrefix + "/" + i + "/page/" + (r = (a = 0 === a ? 1 : a) + 1), 
27				 "tag" === i ? t = languagePrefix + "/tag/" + f + "/page/" + r + s : 
28				 "search" === i ? t = languagePrefix + "/page/" + r + "/" + s : t +=s, 
29				 $.ajax(t, {
30					timeout: 1e3,
31					datatype: "html"
32			}).then(function(a) {
33				var t, e, o, g, l, i, a = $($.parseHTML(a));
34				(a = a.find(".js-ajax-wrapper > *")).find("li").length && (isSp ? (t =
35						"sp_all_footer_" + r, a.find("#sp_all_footer").attr("id", t), e =
36						typeof googletag.defineSlot === 'function' ? googletag.defineSlot(
37							"/83555300,22649571021/rhino/houyhnhnm/sp_all_footer", [
38								[320, 50],
39								[336, 280],
40								[320, 100],
41								[320, 180],
42								[1, 1], "fluid", [300, 250]
43							], t).addService(googletag.pubads()):[]) : (o = "pc_all_footer_left_" +
44						r, a.find("#pc_all_footer_left").attr("id", o), g =
45						"pc_all_footer_right_" + r, a.find("#pc_all_footer_right").attr(
46							"id", g), l = typeof googletag.defineSlot === 'function' ? googletag.defineSlot(
47							"/83555300,22649571021/rhino/houyhnhnm/pc_all_footer_left", [
48								[336, 280],
49								[1, 1],
50								[300, 250]
51							], o).addService(googletag.pubads()):[], i = typeof googletag.defineSlot === 'function'?googletag.defineSlot(
52							"/83555300,22649571021/rhino/houyhnhnm/pc_all_footer_right", [
53								[336, 280],
54								[1, 1],
55								[300, 250]
56							], g).addService(googletag.pubads()):[]), d.append(a), isSp ? (
57								typeof googletag.display === 'function'?googletag.display(t):console.log('not display'), typeof fmPrebid === 'function'?fmPrebid([e]):console.log('not fmp')) : (typeof googletag.display === 'function'?googletag.display(o):console.log('not display'),
58								typeof fmPrebid === 'function'?fmPrebid([l]):console.log('not fmp'), typeof googletag.display === 'function'?googletag.display(g):console.log('not display'), typeof fmPrebid === 'function'?fmPrebid([i]):console.log('not fmp')), _(), n = !1,
59					lazyload())
60			}))), g < p || (console.log(n), d.offset().top > p && 50 < p && (n || (1 <
61			(a = parseInt(d.find("[data-page]").filter(":first").attr("data-page"))) ?
62			(n = !0, r = a - 1, t = "tag" === i ? "/tag/" + f + "/page/" + r + s :
63				"/" + i + "/page/" + r, "search" === i ? t = "/page/" + r + "/" + s :
64				t += s, $.ajax(t, {
65					timeout: 1e3,
66					datatype: "html"
67				}).then(function(a) {
68					var t, e, o, g, l, i, a = $($.parseHTML(a));
69					(a = a.find(".js-ajax-wrapper > *")).find("li").length && (isSp ? (t =
70						"sp_all_footer_" + r, a.find("#sp_all_footer").attr("id", t), e =
71						typeof googletag.defineSlot === 'function'?googletag.defineSlot(
72							"/83555300,22649571021/rhino/houyhnhnm/sp_all_footer", [
73								[320, 50],
74								[336, 280],
75								[320, 100],
76								[320, 180],
77								[1, 1], "fluid", [300, 250]
78							], t).addService(googletag.pubads()):[]) : (o =
79						"pc_all_footer_left_" + r, a.find("#pc_all_footer_left").attr(
80							"id", o), g = "pc_all_footer_right_" + r, a.find(
81							"#pc_all_footer_right").attr("id", g), l = typeof googletag.defineSlot === 'function'?googletag.defineSlot(
82							"/83555300,22649571021/rhino/houyhnhnm/pc_all_footer_left", [
83								[336, 280],
84								[1, 1],
85								[300, 250]
86							], o).addService(googletag.pubads()):[], i = typeof googletag.defineSlot === 'function'?googletag.defineSlot(
87							"/83555300,22649571021/rhino/houyhnhnm/pc_all_footer_right", [
88								[336, 280],
89								[1, 1],
90								[300, 250]
91							], g).addService(googletag.pubads()):[]), d.prepend(a), isSp ? (
92								typeof googletag.display === 'function'?googletag.display(t):console.log('not display'), typeof fmPrebid === 'function'?fmPrebid([e]):console.log('not fmp')) : (typeof googletag.display === 'function'?googletag.display(o):console.log('not display'),
93								typeof fmPrebid === 'function'?fmPrebid([l]):console.log('not fmprebid'), typeof googletag.display === 'function'?googletag.display(g):console.log('not display'), typeof fmPrebid === 'function'?fmPrebid([i]):console.log('not fmp')), $(window).scrollTop(
94						p + h), _(), n = !1, lazyload())
95				})) : n = !1)), p < 20 && ($('[datap-page="0"]').length || $(
96			'[datap-page="1"]').length || (n = !1))), g = p
97	}
98
99	function _() {
100		r = [], $("[data-page]").each(function() {
101			r.push([$(this).attr("data-page"), $(this).offset().top])
102		})
103	}
104	$(window).on({
105		scroll: function() {
106			a(),
107				function() {
108					for (var a, t = $(window), e = t.height(), o = (t.width(), t.scrollTop() +
109							e), g = 0; g < r.length; g++) r[g + 1] ? r[g][1] < o - e / 2 && o -
110						e / 2 < r[g + 1][1] && (a = r[g][0]) : r[g][1] < o - e / 2 && (a = r[
111							g][0]);
112					a !== l && (a <= 1 || !a ? "tag" === i ? (history.pushState("", "",
113							"/" + i + "/" + f + "/" + s), sendGaPageView("/" + i + "/" + f +
114							"/" + s, p)) : "search" === i ? (history.pushState("", "", "/" + s),
115							sendGaPageView("/" + s, p)) : (history.pushState("", "", "/" + i +
116							"/" + s), sendGaPageView("/" + i + "/" + s, p)) : "tag" === i ? (
117							history.pushState("", "", "/" + i + "/" + f + "/page/" + a + s),
118							sendGaPageView("/" + i + "/" + f + "/page/" + a + s, p)) :
119						"search" === i ? (history.pushState("", "", "/page/" + a + "/" + s),
120							sendGaPageView("/page/" + a + "/" + s, p)) : (history.pushState("",
121							"", "/" + i + "/page/" + a + s), sendGaPageView("/" + i +
122							"/page/" + a + s, p)), l = a)
123				}()
124		}
125	})
126});

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.