PageSourceSearch

https://mitsubasushi.com/files/theme/jquery.home-main.js?1584175689

js mitsubasushi.com collected 2026-10-07 03:49:22 UTC 6,760 bytes, 205 lines download raw bytes

1$(document).ready(function()
2        /* ==================== Pre Loader ==================== */
3        {setTimeout(function() {
4            $('#loading').fadeOut('slow', function() {});
5        }, 300);
6		
7		/* ==================== Dynamic Header Height ==================== */
8		$('.dynamic-head .full-screen').css({"padding-top" : $(".top-bar").height() + "px"});
9		
10		/* ==================== Home Slider ==================== */
11		$(function() {
12            var owl = $(".home-slider");
13            owl.owlCarousel({
14                pagination: false,
15                navigation: false,
16				slideSpeed : 300,
17				items : 1,
18				autoPlay: 9000,
19				loop: true,
20				itemsDesktop : false,
21				itemsDesktopSmall : false,
22				itemsTablet: false,
23				itemsMobile : false,
24				afterAction: afterAction
25            });
26            // Custom navigation
27            $(".slide-next").click(function() {
28                owl.trigger('owl.next');
29            })
30            $(".slide-prev").click(function() {
31                owl.trigger('owl.prev');
32            })
33        });
34		
35		function changeClass(slide){
36
37        setTimeout(function(){
38
39         $(".owl-item").each(function(){
40          if ($(this).index() === slide){
41            $(this).addClass("active");
42          } else{
43           $(this).removeClass("active");
44          }
45        });
46
47    },500);
48  }
49
50function afterAction(){
51  changeClass(this.owl.currentItem);
52}
53
54        /* ==================== Scroller Menu toggle ==================== */
55        $('#toggle').click(function(e) {
56            e.stopPropagation();
57        }); 
58		$('html').click(function(e) {
59            if (!$('.toggle').is($(e.target))) {
60                $('#toggle').prop("checked", false);
61            }
62        });
63
64        /* ==================== Multi Menu toggle ==================== */
65        $('.hamburger').click(function() {
66            $('body').toggleClass("menu-open");
67        });
68		
69        /* ==================== Top bar height effect one page scroller layout ==================== */      
70		$(window).bind("scroll", function() {
71            if ($(this).scrollTop() > 20) {
72                $(".infobar").removeClass("ib-large").addClass("ib-small animated fadeOut");
73            } else {
74                $(".infobar").removeClass("ib-small animated fadeIn").addClass("ib-large");
75            }
76        });
77        $(window).bind("scroll", function() {
78            if ($(this).scrollTop() > 300) {
79                $(".top-bar").removeClass("tb-large").addClass("tb-small animated fadeInDown");
80            } else {
81                $(".top-bar").removeClass("tb-small animated fadeInDown").addClass("tb-large");
82            }
83        });
84        $('#live-tog').click(function() {
85		  $('body').toggleClass("scroller-menu-on");
86		    $('body').toggleClass("scroller-menu-off");
87		});
88		
89		$('.wft-btn').click(function() {
90		  $('body').toggleClass("live-menu-on");
91		});
92
93
94        /* ==================== Menu slider ==================== */
95        $(function() {
96            var owl = $(".work-slider");
97            owl.owlCarousel({
98                pagination: false,
99                navigation: false,
100                items: 5,
101                itemsDesktop: [1900, 3],
102                itemsTablet: [1025, 2],
103                itemsMobile: [321, 1],
104            });
105            // Custom navigation
106            $(".work-next").click(function() {
107                owl.trigger('owl.next');
108            })
109            $(".work-prev").click(function() {
110                owl.trigger('owl.prev');
111            })
112        });
113		
114		/* ==================== Testimonial slider ==================== */
115        $(function() {
116            var owl = $(".wft-testimonial-slider");
117            owl.owlCarousel({
118                pagination: false,
119                navigation: false,
120				slideSpeed : 300,
121				items : 2, 
122				itemsDesktop: [1000, 2],
123                itemsTablet: [800, 1],
124                itemsMobile: [321, 1],			
125            });
126            // Custom navigation
127            $(".test-next").click(function() {
128                owl.trigger('owl.next');
129            })
130            $(".test-prev").click(function() {
131                owl.trigger('owl.prev');
132            })
133        });
134		
135        /* ==================== Gallery Mobile ==================== */
136      	$('.imageGallery').each(function(){
137      	  if ($(this).children('div').length <= 25) {
138      	    $(this).children('div').addClass('fullwidth-mobile');
139      	  }
140      	});
141
142        /* ==================== Scrollto ==================== */
143
144		$(".back-top").hide();
145
146        // fade in #scroll-top
147        $(window).scroll(function () {
148          if ($(this).scrollTop() > 150) {
149            $('.back-top').fadeIn();
150           } else {
151            $('.back-top').fadeOut();
152           }
153        });
154	
155        $(function() {
156            $('.scrollto').bind('click.scrollto', function(e) {
157                e.preventDefault();
158                var target = this.hash,
159                    $target = $(target);
160                $('html, body').stop().animate({
161                    'scrollTop': $target.offset().top - 0
162                }, 900, 'swing', function() {
163                    window.location.hash = target;
164                });
165            });
166        });
167
168        /* ==================== Equal height ==================== */
169        $('.equal').children('.col').equalizeHeight(); $(window).resize(function() {
170            $('.equal').children('.col').equalizeHeight();
171            setTimeout(function() {
172                $('.equal').children('.col').equalizeHeight();
173            }, 100);
174            setTimeout(function() {
175                $('.equal').children('.col').equalizeHeight();
176            }, 400);
177            setTimeout(function() {
178                $('.equal').children('.col').equalizeHeight();
179            }, 1400);
180            setTimeout(function() {
181                $('.equal').children('.col').equalizeHeight();
182            }, 2400);
183        }); setTimeout(function() {
184            $(window).trigger('resize scroll');
185        }, 1000); setTimeout(function() {
186            $(window).trigger('resize scroll');
187        }, 3000); $(window).load(function() {
188            $('.equal').children('.col').equalizeHeight();
189            $(window).trigger('resize scroll');
190            setTimeout(function() {
191                $('.equal').children('.col').equalizeHeight();
192            }, 1000);
193            setTimeout(function() {
194                $('.equal').children('.col').equalizeHeight();
195            }, 1300);
196        });
197
198        /* ==================== one page nav ==================== */
199        $('#nav').onePageNav({
200            currentClass: 'current',
201            changeHash: false,
202            scrollSpeed: 1200
203        });
204		
205	});

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.