PageSourceSearch

https://www.comojapan-tokyo.com/js/script.js

js comojapan-tokyo.com collected 2026-10-06 18:09:50 UTC 2,742 bytes, 65 lines download raw bytes

1$(function() {
2    $("form input[type!=image][type!=button][type!=submit][type!=reset],form select").keypress(function(e) {
3        return !(e.which && 13 == e.which || e.keyCode && 13 == e.keyCode);
4    }), $(document).on("change", ":file", function() {
5        var e = $(this), n = (e.get(0).files && e.get(0).files.length, e.val().replace(/\\/g, "/").replace(/.*\//, ""));
6        e.parent().parent().next(":text").val(n);
7    }), $(".js-photo-ofi").length && objectFitImages(".js-photo-ofi img"), $("a[href^=#].js-scroll-link").click(function() {
8        var e = $(this).attr("href");
9        var n = $("#" == e || "" == e ? "html" : e).offset().top;
10        return $("body,html").animate({
11            scrollTop: n
12        }, 400, "swing"), $(".navbar-offcanvas").collapse("hide"), $(".navbar-toggle").removeClass("is-open"), 
13        !1;
14    }), $(".js-match").matchHeight(), $("[data-rel^=lightcase]").lightcase({
15        maxHeight: 1e3
16    }), $(".js-scroll-top").click(function() {
17        return $("body,html").animate({
18            scrollTop: 0
19        }, 400), !1;
20    });
21    var e = $(".header");
22    function n() {
23        var e = $(window).width();
24        $(".dropdown").off(), e <= 768 ? $(".dropdown").on({
25            click: function(e) {
26                if ($menu = $(this).find(".dropdown-menu"), "block" != $menu.css("display")) return $(".dropdown-menu").hide(), 
27                $menu.slideDown(200), !1;
28                $(this).has("a.link-gnav").length || $(".dropdown-menu").slideUp(200);
29            }
30        }) : $(".dropdown").on({
31            mouseenter: function() {
32                $menu = $(this).find(".dropdown-menu"), "block" == $menu.css("display") ? $(".dropdown-menu").hide() : ($(".dropdown-menu").hide(), 
33                $menu.slideDown(200));
34            },
35            mouseleave: function() {
36                $menu = $(this).find(".dropdown-menu"), "block" == $menu.css("display") ? $(".dropdown-menu").hide() : ($(".dropdown-menu").hide(), 
37                $menu.slideDown(200));
38            }
39        });
40    }
41    $(window).scroll(function() {
42        80 < $(window).scrollTop() ? e.attr("data-status", "scrolled") : e.attr("data-status", "");
43    }), n(), $(window).on("resize", n), $("#slider-mv").sliderPro({
44        width: 800,
45        height: 490,
46        slideDistance: 80,
47        arrows: !0,
48        fadeArrows: !1,
49        buttons: !0,
50        autoplayOnHover: "none",
51        autoplay: !0,
52        visibleSize: "100%",
53        autoplayDelay: 5e3,
54        breakpoints: {
55            980: {
56                width: "100%",
57                autoHeight: !0
58            },
59            767: {
60                arrows: !1,
61                slideDistance: 0
62            }
63        }
64    });
65});

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.