PageSourceSearch

https://parkers-tokyo.jp/js/custom.js

js parkers-tokyo.jp collected 2026-10-04 17:11:52 UTC 3,570 bytes, 109 lines download raw bytes

1/* filter */
2// Custom Script
3// Developed by: Samson.Onna
4var customScripts = {
5    profile: function () {
6        // portfolio
7        if ($('.isotopeWrapper').length) {
8            var $container = $('.isotopeWrapper');
9            var $resize = $('.isotopeWrapper').attr('id');
10            // initialize isotope
11            $container.isotope({
12                itemSelector: '.isotopeItem',
13                resizable: false, // disable normal resizing
14                masonry: {
15                    columnWidth: $container.width() / $resize
16                }
17            });
18            $("a[href='#top']").click(function () {
19                $("html, body").animate({ scrollTop: 0 }, "slow");
20                return false;
21            });
22            $('.navbar-inverse').on('click', 'li a', function () {
23                $('.navbar-inverse .in').addClass('collapse').removeClass('in').css('height', '1px');
24            });
25            $('#filter a').click(function () {
26                $('#filter a').removeClass('current');
27                $(this).addClass('current');
28                var selector = $(this).attr('data-filter');
29                $container.isotope({
30                    filter: selector,
31                    animationOptions: {
32                        duration: 1000,
33                        easing: 'easeOutQuart',
34                        queue: false
35                    }
36                });
37                return false;
38            });
39            $(window).smartresize(function () {
40                $container.isotope({
41                    // update columnWidth to a percentage of container width
42                    masonry: {
43                        columnWidth: $container.width() / $resize
44                    }
45                });
46            });
47        }
48    },
49    fancybox: function () {
50        // fancybox
51        $(".fancybox").fancybox();
52    },
53    onePageNav: function () {
54
55        $('#mainNav').onePageNav({
56            currentClass: 'active',
57            changeHash: false,
58            scrollSpeed: 950,
59            scrollThreshold: 0.2,
60            filter: '',
61            easing: 'swing',
62            begin: function () {
63                //I get fired when the animation is starting
64            },
65            end: function () {
66                //I get fired when the animation is ending
67            },
68            scrollChange: function ($currentListItem) {
69                //I get fired when you enter a section and I pass the list item of the section
70            }
71        });
72    },
73    slider: function () {
74        $('#da-slider').cslider({
75            autoplay: true,
76            bgincrement: 0
77        });
78    },
79    owlSlider: function () {
80        var owl = $("#owl-demo");
81        owl.owlCarousel();
82        // Custom Navigation Events
83        $(".next").click(function () {
84            owl.trigger('owl.next');
85        })
86        $(".prev").click(function () {
87            owl.trigger('owl.prev');
88        })
89    },
90    bannerHeight: function () {
91        var bHeight = $(".banner-container").height();
92        $('#da-slider').height(bHeight);
93        $(window).resize(function () {
94            var bHeight = $(".banner-container").height();
95            $('#da-slider').height(bHeight);
96        });
97    },
98    init: function () {
99        customScripts.onePageNav();
100        customScripts.profile();
101        customScripts.fancybox();
102        customScripts.slider();
103        customScripts.owlSlider();
104        customScripts.bannerHeight();
105    }
106}
107$('document').ready(function () {
108    customScripts.init();
109});

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.