PageSourceSearch

https://big-step.co.jp/js/common.min.js

js big-step.co.jp collected 2026-10-02 17:17:47 UTC 11,240 bytes, 270 lines download raw bytes

1var CMN = CMN || function (g, r, s) {
2  var e, t, n = (e = navigator.userAgent.toLocaleLowerCase(), t = {
3    is_mobile: !1,
4    is_tablet: !1,
5    is_pc: !1,
6    is_android: !1
7  }, 0 < e.indexOf("iphone") || 0 < e.indexOf("android") && 0 < e.indexOf("mobile") ? t.is_mobile = !0 : 0 < e.indexOf("ipad") || 0 < e.indexOf("android") ? t.is_tablet = !0 : t.is_pc = !0, 0 < e.indexOf("android") && (t.is_android = !0), t);
8
9  function i() {
10    return n.is_pc ? r.innerWidth || s.documentElement.clientWidth || s.body.clientWidth : s.documentElement.clientWidth || s.body.clientWidth
11  }
12
13  function o() {
14    return i() <= 767
15  }
16  var a = (l.prototype.updateHeight = function () {
17    g.each(this.targets, function () {
18      var e = g(this);
19      e.css({
20        minHeight: CMN.getHeight(e),
21        height: 0
22      })
23    })
24  }, l.prototype.close = function (i) {
25    var o = this;
26    o.targets && o.targets.length && g.each(o.targets, function (e, t) {
27      var n = g(t);
28      o.option.set_height && !i && n.css({
29        minHeight: "",
30        height: ""
31      }), n.removeClass(o.prefix + "-open").addClass(o.prefix + "-close"), o.$el.removeClass(o.prefix + "-trig-open").addClass(o.prefix + "-trig-close")
32    }), o.rels && o.rels.length && g.each(o.rels, function (e, t) {
33      g(t).removeClass(o.prefix + "-rel-open").addClass(o.prefix + "-rel-close")
34    })
35  }, l.prototype.open = function (i) {
36    var o = this;
37    o.targets && o.targets.length && g.each(o.targets, function (e, t) {
38      var n = g(t);
39      n.addClass(o.prefix + "-open").removeClass(o.prefix + "-close"), o.$el.addClass(o.prefix + "-trig-open").removeClass(o.prefix + "-trig-close"), o.option.set_height && !i && n.css({
40        minHeight: CMN.getHeight(n),
41        height: 0
42      })
43    }), o.rels && o.rels.length && g.each(o.rels, function (e, t) {
44      g(this).addClass(o.prefix + "-rel-open").removeClass(o.prefix + "-rel-close")
45    })
46  }, l);
47
48  function l(e, t) {
49    var n = this;
50    n.$el = null, n.option = {}, e instanceof jQuery ? n.$el = e : n.$el = g(e), n.def_option = {
51      opened: !1,
52      target: void 0,
53      rel: void 0,
54      before_cb: void 0,
55      after_cb: void 0,
56      event: "click",
57      prefix: "-js-slide-toggle",
58      set_height: !0,
59      prevent_default: !0,
60      stop_propagation: !1,
61      stop_immediate_propagation: !1
62    }, n.option = g.extend({}, n.def_option, t), n.prefix = n.option.prefix, n.targets = [n.$el], n.rels = null;
63    var i = n.$el.data("slide-toggle-target"),
64      o = n.$el.data("slide-toggle-rel"),
65      a = null,
66      r = null;
67    if (void 0 !== n.option.target && (i = n.option.target), void 0 !== n.option.rel && (o = n.option.rel), void 0 !== n.option.before_cb && (a = n.option.before_cb), void 0 !== n.option.after_cb && (r = n.option.after_cb), void 0 !== n.$el && null !== n.$el && n.$el.length) {
68      if (n.$el.addClass(n.prefix + "-trig"), i)
69        if ("string" == typeof i) {
70          var s = i.split(",");
71          n.targets = g.grep(s, function (e) {
72            return "" !== e.trim()
73          }), n.targets.length || (n.targets = [n.$el])
74        } else n.targets = i;
75      if (o)
76        if ("string" == typeof o) {
77          var l = o.split(",");
78          n.rels = g.grep(l, function (e) {
79            return "" !== e.trim()
80          }), n.rels.length || (n.rels = null)
81        } else n.rels = o;
82      n.close(!0);
83      var c = n.option.event.split(" ");
84      c = g.map(c, function (e) {
85        return e + ".slide-toggle"
86      }), n.$el.on(c.join(" "), function (e) {
87        n.option.prevent_default && e.preventDefault(), n.option.stop_propagation && e.stopPropagation(), n.option.stop_immediate_propagation && e.stopImmediatePropagation();
88        var t = g(this).hasClass(n.prefix + "-trig-open");
89        if ("function" == typeof a && !1 === a(n, !t)) return !1;
90        t ? n.close() : n.open(), "function" == typeof r && r(n, !t)
91      }), n.option.opened && n.$el.trigger("click.slide-toggle")
92    }
93  }
94  return {
95    isSP: o,
96    isPC: function () {
97      return !o()
98    },
99    windowWidth: i,
100    windowHeight: function () {
101      return n.is_pc ? r.innerHeight || s.documentElement.clientHeight || s.body.clientHeight : s.documentElement.clientHeight || s.body.clientHeight
102    },
103    smoothScrollBy: function (e) {
104      var t = null;
105      if ("number" == typeof e ? t = e : (t = g(e)).length || (t = null), null == t) return !0;
106      var n = g(r.navigator.appName.match(/Opera/) ? "html" : "html,body"),
107        i = g(".js-g-header").outerHeight(!0);
108      i = i || 0;
109      var o = "number" == typeof t ? t : t.offset().top - i,
110        a = g(s).height() - g(r).height();
111      return a < o && (o = a), n.stop().animate({
112        scrollTop: o
113      }, {
114        duration: 800,
115        easing: "swing"
116      }), !1
117    },
118    getHeight: function (e) {
119      var t = 0;
120      if (e.length) {
121        var n = [];
122        if (void 0 !== e.attr("style") && (n = e.attr("style").split(";")), e.css({
123            height: "auto",
124            transition: "none"
125          }), t = parseInt(e.outerHeight()), e.css({
126            height: "",
127            transition: ""
128          }), n && n.length) {
129          var i = ["height", "transition"],
130            o = {};
131          g.each(n, function (e, t) {
132            var n = t.split(":");
133            2 === n.length && -1 !== g.inArray(g.trim(n[0]), i) && (o[g.trim(n[0])] = g.trim(n[1]))
134          }), o && e.css(o)
135        }
136      }
137      return t
138    },
139    slideToggle: function (e, t) {
140      return new a(e, t)
141    },
142    tabSwitch: function () {
143      var a = "-js-tab-switch",
144        e = g("[data-tab-switch]");
145      e.length && (e.on("click.tab-switch", "> *:not([data-tab-switch-exclude])", function (e) {
146        var t = g(this);
147        g(this).siblings().removeClass(a + "-current").removeClass("-js-current"), t.addClass(a + "-current").addClass("-js-current");
148        var n = g(e.delegateTarget).data("tab-switch"),
149          i = g(n),
150          o = i.children();
151        i.length && o && (o.removeClass(a + "-show").addClass(a + "-hide"), o.eq(t.index()).removeClass(a + "-hide").addClass(a + "-show"))
152      }), e.each(function () {
153        var e = g(this).children(),
154          t = e.filter("[data-tab-switch-current]");
155        t.length || (t = e.eq(0)), t.length && t.trigger("click.tab-switch")
156      }))
157    },
158    tabTarget: function () {
159      var s = "-js-tab-target",
160        e = g("[data-tab-target]");
161      e.length && (e.on("click.tab-target", function (e) {
162        var t = g(this),
163          n = t.data("tab-target"),
164          i = t.data("tab-target-group"),
165          o = g('[data-tab-target-group="' + i + '"]'),
166          a = g('[data-tab-target-id="' + n + '"]'),
167          r = g('[data-tab-target-group-id="' + i + '"]');
168        r.length && (r.removeClass(s + "-show").removeClass(s + "-hide"), r.not(a).addClass(s + "-hide")), a.length && a.addClass(s + "-show"), o.length && o.removeClass(s + "-current").removeClass("-js-current"), t.addClass(s + "-current").addClass("-js-current")
169      }), g("[data-tab-target-current]").trigger("click.tab-target"))
170    },
171    ua: n
172  }
173}(jQuery, window, window.document);
174! function (e) {
175  CMN.ua.is_tablet && e("head").find('meta[name="viewport"]').attr("content", "width=767")
176}(jQuery),
177function (t, n) {
178  var i = CMN.isSP(),
179    o = t.Event("switch_responsive");
180  t(n).on("resize", function () {
181    var e = CMN.isSP();
182    i !== e && (i = e, t(n).trigger(o))
183  })
184}(jQuery, window, window.document),
185function (h, f, m) {
186  h(f).on("load.anchor", function () {
187    var e = f.location.hash;
188    "" !== e && CMN.smoothScrollBy(e)
189  }), h(function () {
190    var t, e, n, i, o, a, r, s, l, c, g, d, p;
191
192    function u() {
193      i.hasClass("-js-open") ? (i.removeClass("-js-open"), h(this).removeClass("-js-open")) : (now_scroll = h(f).scrollTop(), i.addClass("-js-open"), h(this).addClass("-js-open"))
194    }
195    h("[data-slide-toggle-target]").each(function () {
196        CMN.slideToggle(h(this))
197      }), CMN.tabTarget(), CMN.tabSwitch(), h('a[href*="#"]').on("click.anchor", function (e) {
198        var t = f.location;
199        if (-1 !== String(h(this).attr("href")).indexOf("?")) return !0;
200        var n = h(this).get(0);
201        t.pathname === n.pathname && (e.preventDefault(), CMN.smoothScrollBy(n.hash))
202      }), t = h(f.navigator.appName.match(/Opera/) ? "html" : "html,body"), e = "onwheel" in m ? "wheel" : "onmousewheel" in m ? "mousewheel" : "DOMMouseScroll", h(m).on("touchstart mousedown " + e, function (e) {
203        t.is(":animated") && t.stop()
204      }), (n = h(".js-pagetop")).on("click.pagetop", function (e) {
205        return e.preventDefault(), CMN.smoothScrollBy(0), !1
206      }), h(f).on("scroll.pagetop", function () {
207        150 < h(this).scrollTop() ? n.fadeIn() : n.fadeOut()
208      }).trigger("scroll.pagetop"), i = h(".js-navi"), o = h(".js-menu-toggle"), a = h(".js-menu-close"), o.on("click.menu_open", function () {
209        u()
210      }), a.on("click.menu_close", function () {
211        u()
212      }), r = h(".js-language"), s = r.find(".toggle-inner-menu"), l = CMN.slideToggle(r, {
213        target: s,
214        prevent_default: !1,
215        stop_propagation: !0
216      }), r.on("mouseenter.language", function (e) {
217        CMN.isPC() && l.open()
218      }), s.on("mouseleave.language", function () {
219        CMN.isPC() && l.close()
220      }), h(f).on("click.language, touchstart.language", function (e) {
221        h(e.target).closest(".-js-slide-toggle-trig-open").length || l.close()
222      }), c = h(".js-share"), g = c.find(".toggle-inner-menu"), d = CMN.slideToggle(c, {
223        target: g,
224        prevent_default: !1,
225        stop_propagation: !0
226      }), c.on("mouseenter.language", function (e) {
227        CMN.isPC() && d.open()
228      }), c.on("mouseleave.language", function () {
229        CMN.isPC() && d.close()
230      }), h(f).on("click.language, touchstart.language", function (e) {
231        h(e.target).closest(".-js-slide-toggle-trig-open").length || d.close()
232      }), objectFitImages(".js-ofi"), (p = h(".js-bottom-slider")).length && p.slick({
233        speed: 800,
234        slidesToShow: 3,
235        autoplay: !0,
236        autoplaySpeed: 2e3,
237        responsive: [{
238          breakpoint: 767,
239          settings: {
240            arrows: !1,
241            dots: !0,
242            centerMode: !0,
243            slidesToShow: 1
244          }
245        }]
246      }),
247      function () {
248        var e = h(".js-partner");
249        if (e.length) {
250          var t = null,
251            n = {
252              arrows: !0,
253              dots: !0,
254              slidesToShow: 2,
255              autoplay: !0,
256              appendArrows: e.siblings(".arrows")
257            },
258            i = null;
259          h(f).on("resize.partner_slider", function () {
260            t !== CMN.isSP() && ((t = CMN.isSP()) && !i ? i = h(".js-partner").slick(n) : i && (h(i).slick("unslick"), i = null))
261          }).trigger("resize.partner_slider")
262        }
263      }(), h(".js-side-sticky").length && new StickySidebar(".js-side-sticky", {
264        topSpacing: 130,
265        minWidth: 767,
266        containerSelector: ".g-contents",
267        innerWrapperSelector: ".aside-fix"
268      })
269  })
270}(jQuery, window, window.document);

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.