PageSourceSearch

https://www.motu-ooyama.com/wp/wp-content/themes/motu-ooyama/common/js/custom.js?1590494775

js motu-ooyama.com collected 2026-10-02 17:40:34 UTC 13,030 bytes, 459 lines download raw bytes

1/* eslint-disable */
2
3jQuery(function() {
4  var _,
5    e,
6    i = window.innerHeight ? window.innerHeight : $(window).height();
7
8  function o() {
9    var _ = 0.5625 * $(".movie__inr").width();
10    $(".movie__inr iframe").height(_);
11  }
12  if (
13    (navigator.userAgent.match(/(iPhone|iPad|iPod|Android)/) &&
14      $(".tellink").each(function() {
15        var _ = $(this).html();
16        $(this)
17          .children()
18          .is("img")
19          ? $(this).html(
20              $("<a>")
21                .attr(
22                  "href",
23                  "tel:" +
24                    $(this)
25                      .children()
26                      .attr("alt")
27                      .replace(/-/g, "")
28                )
29                .append(_ + "</a>")
30            )
31          : $(this).html(
32              $("<a>")
33                .attr(
34                  "href",
35                  "tel:" +
36                    $(this)
37                      .text()
38                      .replace(/-/g, "")
39                )
40                .append(_ + "</a>")
41            );
42      }),
43    $("#sitemenu__open").on("click", function() {
44      return (
45        $(".sitemenu")
46          .stop()
47          .fadeIn(),
48        !1
49      );
50    }),
51    $(".sitemenu a").on("click", function() {
52      $(".sitemenu")
53        .stop()
54        .fadeOut();
55    }),
56    $("#sitemenu__close").on("click", function() {
57      return (
58        $(".sitemenu")
59          .stop()
60          .fadeOut(),
61        !1
62      );
63    }),
64    $(window).on("load resize", function() {
65      (i = window.innerHeight ? window.innerHeight : $(window).height()) < 750
66        ? $(".side__wrap").css({
67            position: "absolute"
68          })
69        : $(".side__wrap").css({
70            position: "fixed"
71          }),
72        o();
73    }),
74    o(),
75    window.matchMedia("(max-width:768px)").matches)
76  )
77    var n = 60;
78  else n = 0;
79  var t = location.hash;
80
81  function s(_, e) {
82    var i = $(_).offset().top - e;
83    $("body,html")
84      .stop()
85      .animate(
86        {
87          scrollTop: i
88        },
89        1400,
90        "easeOutExpo"
91      );
92  }
93  t &&
94    ($("body,html")
95      .stop()
96      .scrollTop(0),
97    setTimeout(function() {
98      s(t, n);
99    }, 100)),
100    $(document).on("click", 'a[href^="#"]', function() {
101      var _ = $(this).attr("href");
102      return s("#" == _ || "" == _ ? "html" : _, n), !1;
103    }),
104    $("#shoppage").length &&
105      window.matchMedia("(max-width:480px)").matches &&
106      s(".shopinfo__ttl", 10),
107    $("#shopinfo__slider").length &&
108      $("#shopinfo__slider").bxSlider({
109        mode: "fade",
110        speed: 2e3,
111        pause: 5e3,
112        controls: !1,
113        pagerCustom: ".shopinfo__slider__nav",
114        auto: !0
115      }),
116    $(".foreign__slider").bxSlider({
117      mode: "fade",
118      speed: 2e3,
119      pause: 7e3,
120      pager: !1,
121      controls: !1,
122      auto: !0
123    }),
124    window.matchMedia("(max-width:480px)").matches
125      ? $(".notset").on("touchstart", function() {
126          $(this)
127            .find(".pop")
128            .is(":visible")
129            ? $(this)
130                .find(".pop")
131                .stop()
132                .css({
133                  opacity: 0,
134                  top: -30
135                })
136                .hide()
137            : $(this)
138                .find(".pop")
139                .show()
140                .stop()
141                .animate(
142                  {
143                    opacity: 1,
144                    top: -40
145                  },
146                  800,
147                  "easeOutExpo"
148                );
149        })
150      : $(".notset").hover(
151          function() {
152            $(this)
153              .find(".pop")
154              .show()
155              .stop()
156              .animate(
157                {
158                  opacity: 1,
159                  top: -40
160                },
161                800,
162                "easeOutExpo"
163              );
164          },
165          function() {
166            $(this)
167              .find(".pop")
168              .stop()
169              .animate(
170                {
171                  opacity: 0,
172                  top: -30
173                },
174                200,
175                "easeOutExpo",
176                function() {
177                  $(this)
178                    .find(".pop")
179                    .stop()
180                    .hide();
181                }
182              );
183          }
184        ),
185    $(".fade").on("inview", function(_, e, i, o) {
186      e
187        ? $(this)
188            .stop()
189            .addClass("fade_on")
190        : $(this)
191            .stop()
192            .removeClass("fade_on");
193    });
194  var h = 0;
195  $(window).scroll(function() {
196    (_ = $("body").height()),
197      (e = _ - i - 120),
198      500 < $(this).scrollTop()
199        ? 0 == h &&
200          ($(".pagetop")
201            .stop()
202            .fadeIn(),
203          (h = 1))
204        : 1 == h &&
205          ($(".pagetop")
206            .stop()
207            .fadeOut(),
208          (h = 0)),
209      $(this).scrollTop() >= e
210        ? $(".pagetop").css({
211            position: "absolute",
212            bottom: 170
213          })
214        : $(".pagetop").css({
215            position: "fixed",
216            bottom: 50
217          });
218  }),
219    $(".foreign__shop__tab li a").on("click", function() {
220      var _ = $(this).data("farea");
221      return (
222        $(".foreign__shop__tab li").removeClass("active"),
223        $(this)
224          .parent("li")
225          .addClass("active"),
226        $(".foreign__shop__area").hide(),
227        $("#foreign__shop__area__" + _).fadeIn(),
228        $(".foreign__shop__img li").width("100%"),
229        !1
230      );
231    });
232  var a,
233    d,
234    p = 0,
235    u = 1,
236    l = [],
237    f = [];
238  (l[1] = 0),
239    (f[1] = 0),
240    $(window).on("load resize", function() {
241      if (
242        !window.matchMedia("(max-width:768px)").matches &&
243        $("#shopinfo__menu__cook .menu__box__type3").length
244      ) {
245        for (
246          var _ = 0;
247          _ < $("#shopinfo__menu__cook .menu__box__type3 ul li").length;
248          _++
249        )
250          (_ + 1) % 4 == 0 && ((l[++u] = 0), (f[u] = 0)),
251            (a = $("#shopinfo__menu__cook .menu__box__type3 ul li")
252              .eq(_)
253              .find("dt p")
254              .height()),
255            (d = $("#shopinfo__menu__cook .menu__box__type3 ul li")
256              .eq(_)
257              .find("dd.txt")
258              .height()),
259            l[u] < a && (l[u] = a),
260            f[u] < d && (f[u] = d);
261        for (_x = 0; _x < 3; _x++)
262          $("#shopinfo__menu__cook .menu__box__type3 ul li")
263            .eq(_x)
264            .find("dt p")
265            .height(l[1]),
266            $("#shopinfo__menu__cook .menu__box__type3 ul li")
267              .eq(_x)
268              .find("dd.txt")
269              .height(f[1]);
270        for (_x = 3; _x < 6; _x++)
271          $("#shopinfo__menu__cook .menu__box__type3 ul li")
272            .eq(_x)
273            .find("dt p")
274            .height(l[2]),
275            $("#shopinfo__menu__cook .menu__box__type3 ul li")
276              .eq(_x)
277              .find("dd.txt")
278              .height(f[2]);
279        for (_x = 6; _x < 9; _x++)
280          $("#shopinfo__menu__cook .menu__box__type3 ul li")
281            .eq(_x)
282            .find("dt p")
283            .height(l[3]),
284            $("#shopinfo__menu__cook .menu__box__type3 ul li")
285              .eq(_x)
286              .find("dd.txt")
287              .height(f[3]);
288        for (_x = 9; _x < 12; _x++)
289          $("#shopinfo__menu__cook .menu__box__type3 ul li")
290            .eq(_x)
291            .find("dt p")
292            .height(l[4]),
293            $("#shopinfo__menu__cook .menu__box__type3 ul li")
294              .eq(_x)
295              .find("dd.txt")
296              .height(f[4]);
297        for (_x = 12; _x < 15; _x++)
298          $("#shopinfo__menu__cook .menu__box__type3 ul li")
299            .eq(_x)
300            .find("dt p")
301            .height(l[5]),
302            $("#shopinfo__menu__cook .menu__box__type3 ul li")
303              .eq(_x)
304              .find("dd.txt")
305              .height(f[5]);
306      }
307      var e,
308        i,
309        o = 1,
310        n = [],
311        t = [];
312      if (
313        ((n[1] = 0),
314        (t[1] = 0),
315        !window.matchMedia("(max-width:768px)").matches &&
316          $("#shopinfo__menu__drink .menu__box__type3").length)
317      ) {
318        for (
319          _ = 0;
320          _ < $("#shopinfo__menu__drink .menu__box__type3 ul li").length;
321          _++
322        )
323          (_ + 1) % 4 == 0 && ((n[++o] = 0), (t[o] = 0)),
324            (e = $("#shopinfo__menu__drink .menu__box__type3 ul li")
325              .eq(_)
326              .find("dt p")
327              .height()),
328            (i = $("#shopinfo__menu__drink .menu__box__type3 ul li")
329              .eq(_)
330              .find("dd.txt")
331              .height()),
332            n[o] < e && (n[o] = e),
333            t[o] < i && (t[o] = i);
334        for (_x = 0; _x < 3; _x++)
335          $("#shopinfo__menu__drink .menu__box__type3 ul li")
336            .eq(_x)
337            .find("dt p")
338            .height(n[1]),
339            $("#shopinfo__menu__drink .menu__box__type3 ul li")
340              .eq(_x)
341              .find("dd.txt")
342              .height(t[1]);
343        for (_x = 3; _x < 6; _x++)
344          $("#shopinfo__menu__drink .menu__box__type3 ul li")
345            .eq(_x)
346            .find("dt p")
347            .height(n[2]),
348            $("#shopinfo__menu__drink .menu__box__type3 ul li")
349              .eq(_x)
350              .find("dd.txt")
351              .height(t[2]);
352        for (_x = 6; _x < 9; _x++)
353          $("#shopinfo__menu__drink .menu__box__type3 ul li")
354            .eq(_x)
355            .find("dt p")
356            .height(n[3]),
357            $("#shopinfo__menu__drink .menu__box__type3 ul li")
358              .eq(_x)
359              .find("dd.txt")
360              .height(t[3]);
361        for (_x = 9; _x < 12; _x++)
362          $("#shopinfo__menu__drink .menu__box__type3 ul li")
363            .eq(_x)
364            .find("dt p")
365            .height(n[4]),
366            $("#shopinfo__menu__drink .menu__box__type3 ul li")
367              .eq(_x)
368              .find("dd.txt")
369              .height(t[4]);
370        for (_x = 12; _x < 15; _x++)
371          $("#shopinfo__menu__drink .menu__box__type3 ul li")
372            .eq(_x)
373            .find("dt p")
374            .height(n[5]),
375            $("#shopinfo__menu__drink .menu__box__type3 ul li")
376              .eq(_x)
377              .find("dd.txt")
378              .height(t[5]);
379      }
380      0 == p &&
381        ((p = 1));
382        // $(".shopinfo__menu__data").hide(),
383        // $("#shopinfo__menu__course").show());
384    }),
385    $(".recruit__shop__list ul li a").on("click", function() {
386      var _ = $(this).data("shopid");
387      $(".recruit__area").hide(), $("#recruit__area__" + _).fadeIn();
388      var e = $("#recruit__detail").offset().top;
389      return (
390        $("html, body").animate(
391          {
392            scrollTop: e
393          },
394          1400,
395          "easeOutExpo"
396        ),
397        !1
398      );
399    }),
400    $("#shopinfo__menu__course .slider__nav li a").on("click", function() {
401      var _ = $(this).data("slide-index");
402      return (
403        $("#shopinfo__menu__course .slider li").hide(),
404        $("#shopinfo__menu__course .slider__nav li a").removeClass("active"),
405        $(this).addClass("active"),
406        $("#shopinfo__menu__course #course_slider_" + _).fadeIn(),
407        $("#shopinfo__menu__course .course__inner").hide(),
408        $("#shopinfo__menu__course #course_" + _).fadeIn(),
409        !1
410      );
411    }),
412    $("#shopinfo__menu__lunch .slider__nav li a").on("click", function() {
413      var _ = $(this).data("slide-index");
414      return (
415        $("#shopinfo__menu__lunch .slider li").hide(),
416        $("#shopinfo__menu__lunch .slider__nav li a").removeClass("active"),
417        $(this).addClass("active"),
418        $("#shopinfo__menu__lunch #lunch_slider_" + _).fadeIn(),
419        $("#shopinfo__menu__lunch .lunch__inner").hide(),
420        $("#shopinfo__menu__lunch #lunch_" + _).fadeIn(),
421        !1
422      );
423    }),
424    $(".shopinfo__news .news__more").on("click", function() {
425      $(this).hide(), $(".shopinfo__news .hidden").fadeIn();
426    }),
427    $(".shop__tab__new__label").on("click", function() {
428      $(this).hasClass("active")
429        ? (console.log(1),
430          $(this).removeClass("active"),
431          $(".shop__tab__new__list").fadeOut(),
432          $(".shop__list__wrap").hide())
433        : (console.log(2),
434          $(this).addClass("active"),
435          $(".shop__tab__new__list").fadeIn());
436    });
437
438  // $(".shopinfo__menu__tab li").on("click", function() {
439  //   const _ = $(this)
440  //     .find("a")
441  //     .data("menu");
442
443  //   $(".shopinfo__menu__tab li").removeClass("active");
444  //   $(this).addClass("active");
445  //   $(".shopinfo__menu__data").removeClass("active");
446  //   $(".shopinfo__menu__data").hide();
447  //   $("#shopinfo__menu__" + _).fadeIn();
448
449  //   const e = $("#shopinfo__menu__detail").offset().top;
450
451  //   $("html, body").animate(
452  //     {
453  //       scrollTop: e - 70
454  //     },
455  //     1400,
456  //     "easeOutExpo"
457  //   );
458  // });
459});

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.