PageSourceSearch

https://mcautoandtransmissions.com/wp-content/themes/mcautoandtransmissions/js/myscript.js?ver=1263

js mcautoandtransmissions.com collected 2026-10-05 18:00:17 UTC 9,998 bytes, 524 lines download raw bytes

1/**
2 * jquery.slimmenu.js
3 * http://adnantopal.github.io/slimmenu/
4 * Author: @adnantopal
5 * Copyright 2013-2015, Adnan Topal (adnan.co)
6 * Licensed under the MIT license.
7 */
8(function ($, window, document, undefined) {
9    "use strict";
10
11    var pluginName = 'slimmenu',
12        oldWindowWidth = 0,
13        defaults = {
14            resizeWidth: '767',
15            initiallyVisible: false,
16            collapserTitle: 'Main Menu',
17            animSpeed: 'fast',
18            easingEffect: null,
19            indentChildren: false,
20            childrenIndenter: '  ',
21            expandIcon: '<i class="fas fa-angle-down"></i>',
22            collapseIcon: '<i class="fas fa-angle-up"></i>'
23        };
24
25    function Plugin(element, options) {
26        this.element = element;
27        this.$elem = $(this.element);
28        this.options = $.extend(defaults, options);
29        this.init();
30    }
31
32    Plugin.prototype = {
33
34        init: function () {
35            var $window = $(window),
36                options = this.options,
37                $menu = this.$elem,
38                $collapser = '<div class="menu-collapser">' + options.collapserTitle + '<div class="collapse-button"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></div></div>',
39                $menuCollapser;
40
41            $menu.before($collapser);
42            $menuCollapser = $menu.prev('.menu-collapser');
43
44            $menu.on('click', '.sub-toggle', function (e) {
45                e.preventDefault();
46                e.stopPropagation();
47
48                var $parentLi = $(this).closest('li');
49
50                if ($(this).hasClass('expanded')) {
51                    $(this).removeClass('expanded').html(options.expandIcon);
52                    $parentLi.find('>ul').slideUp(options.animSpeed, options.easingEffect);
53                } else {
54                    $(this).addClass('expanded').html(options.collapseIcon);
55                    $parentLi.find('>ul').slideDown(options.animSpeed, options.easingEffect);
56                }
57            });
58
59            $menuCollapser.on('click', '.collapse-button', function (e) {
60                e.preventDefault();
61                $menu.slideToggle(options.animSpeed, options.easingEffect);
62            });
63
64            this.resizeMenu();
65            $window.on('resize', this.resizeMenu.bind(this));
66            $window.trigger('resize');
67        },
68
69        resizeMenu: function () {
70            var self = this,
71                $window = $(window),
72                windowWidth = $window.width(),
73                $options = this.options,
74                $menu = $(this.element),
75                $menuCollapser = $('body').find('.menu-collapser');
76
77            if (window['innerWidth'] !== undefined) {
78                if (window['innerWidth'] > windowWidth) {
79                    windowWidth = window['innerWidth'];
80                }
81            }
82
83            if (windowWidth != oldWindowWidth) {
84                oldWindowWidth = windowWidth;
85
86                $menu.find('li').each(function () {
87                    if ($(this).has('ul').length) {
88                        if ($(this).addClass('has-submenu').has('.sub-toggle').length) {
89                            $(this).children('.sub-toggle').html($options.expandIcon);
90                        } else {
91                            $(this).addClass('has-submenu').append('<span class="sub-toggle">' + $options.expandIcon + '</span>');
92                        }
93                    }
94
95                    $(this).children('ul').hide().end().find('.sub-toggle').removeClass('expanded').html($options.expandIcon);
96                });
97
98                if ($options.resizeWidth >= windowWidth) {
99                    if ($options.indentChildren) {
100                        $menu.find('ul').each(function () {
101                            var $depth = $(this).parents('ul').length;
102                            if (!$(this).children('li').children('a').has('i').length) {
103                                $(this).children('li').children('a').prepend(self.indent($depth, $options));
104                            }
105                        });
106                    }
107
108                    $menu.addClass('collapsed').find('li').has('ul').off('mouseenter mouseleave');
109                    $menuCollapser.show();
110
111                    if (!$options.initiallyVisible) {
112                        $menu.hide();
113                    }
114                } else {
115                    $menu.find('li').has('ul')
116                        .on('mouseenter', function () {
117                            $(this).find('>
117ul').stop().slideDown($options.animSpeed, $options.easingEffect);
118                        })
119                        .on('mouseleave', function () {
120                            $(this).find('>ul').stop().slideUp($options.animSpeed, $options.easingEffect);
121                        });
122
123                    $menu.find('li > a > i').remove();
124                    $menu.removeClass('collapsed').show();
125                    $menuCollapser.hide();
126                }
127            }
128        },
129
130        indent: function (num, options) {
131            var i = 0,
132                $indent = '';
133            for (; i < num; i++) {
134                $indent += options.childrenIndenter;
135            }
136            return '<i>' + $indent + '</i> ';
137        }
138    };
139
140    $.fn[pluginName] = function (options) {
141        return this.each(function () {
142            if (!$.data(this, 'plugin_' + pluginName)) {
143                $.data(this, 'plugin_' + pluginName,
144                    new Plugin(this, options));
145            }
146        });
147    };
148
149}(jQuery, window, document));
150
151
152
153
154
155$(document).ready(function(){
156	
157	$(".loc-served-btn").click(function(){
158	  $(".loc-served-btn").toggleClass("active");
159	});	
160	
161	
162
163	
164	/*var stickyheader = $('.header');
165		$(window).scroll(function () {
166			if ($(this).scrollTop() > 400) {
167				stickyheader.addClass("sticky-head");
168			} else {
169				stickyheader.removeClass("sticky-head");
170			}
171	});*/
172	
173	
174	
175	
176	
177	
178
179		
180
181	$('.slimmenu').slimmenu(
182
183	{
184
185		resizeWidth: '1199',
186
187		collapserTitle: '',
188
189		animSpeed:'fast',
190
191		indentChildren: true,
192
193		childrenIndenter: '&rsaquo;'
194
195	});
196
197		
198
199	/***********Top bar fixed*****************/
200
201	
202
203	/*$('a[href^="#"]').on('click',function (e) {
204
205	    e.preventDefault();
206
207
208
209	    var target = this.hash;
210
211	    var $target = $(target);
212
213
214
215	    $('html, body').stop().animate({
216
217	        'scrollTop': $target.offset().top
218
219	    }, 900, 'swing', function () {
220
221	        window.location.hash = target;
222
223	    });
224
225	
226
227	});
228*/
229	
230
231	
232
233	
234
235	$(".home-slider").slick({
236
237			autoplay: false,
238
239			autoplaySpeed: 8000,
240
241			speed: 1000,
242
243			infinite: true,
244			dots: false,
245			arrows: true,
246			fade: true,
247
248			slidesToShow: 1,
249
250			slidesToScroll: 1,
251
252			pauseOnHover: false,
253			adaptiveHeight: true,
254			pauseOnFocus: false,	
255			swipe:false,
256			
257
258			responsive: [
259
260			{
261
262			  breakpoint: 641,
263
264			  settings: {
265
266				adaptiveHeight: true
267							  }
268
269			}
270
271		  ]
272
273		});
274	
275
276	$(".testimonials-rotator").slick({
277
278			autoplay: true,
279
280			autoplaySpeed: 5000,
281
282			speed: 1000,
283
284			infinite: true,
285
286			dots: false,
287
288
289			slidesToShow: 1,
290
291			slidesToScroll: 1,
292
293			pauseOnHover: false,
294
295			pauseOnFocus: false,
296
297			arrows: true,
298			
299			adaptiveHeight: true,
300			responsive: [
301
302			{
303
304			  breakpoint: 1200,
305
306			  settings: {
307				adaptiveHeight: true,
308				arrows: false
309							  }
310			}
311			
312		  ]
313		});
314		
315		
316		
317		$(".sec2con").slick({
318
319			autoplay: true,
320
321			autoplaySpeed: 3000,
322
323			speed: 1000,
324
325			infinite: true,
326
327			dots: false,
328
329
330			slidesToShow: 3,
331
332			slidesToScroll: 1,
333			pauseOnHover: false,
334			pauseOnFocus: false,	
335			swipe:true,
336			arrows: true,
337
338			responsive: [
339
340			{
341
342			  breakpoint: 992,
343
344			  settings: {
345
346				adaptiveHeight: true,
347				slidesToShow: 2
348							  }
349			},
350			{
351
352			  breakpoint: 641,
353
354			  settings: {
355
356				adaptiveHeight: true,
357				slidesToShow: 1
358							  }
359
360			}
361
362		  ]
363
364		});
365
366		
367		
368		
369		$(".brands ul").slick({
370
371			autoplay: true,
372
373			autoplaySpeed: 3000,
374
375			speed: 1000,
376
377			infinite: true,
378
379			dots: false,
380
381
382			slidesToShow: 5,
383
384			slidesToScroll: 1,
385			pauseOnHover: false,
386			pauseOnFocus: false,	
387			swipe:true,
388			arrows: true,
389
390			responsive: [
391
392			{
393
394			  breakpoint: 992,
395
396			  settings: {
397
398				adaptiveHeight: true,
399				slidesToShow: 3
400							  }
401			},
402			{
403
404			  breakpoint: 641,
405
406			  settings: {
407
408				adaptiveHeight: true,
409				slidesToShow: 1
410							  }
411
412			}
413
414		  ]
415
416		});
417		
418		
419		$(".hometeam ul").slick({
420
421			autoplay: false,
422
423			autoplaySpeed: 3000,
424
425			speed: 1000,
426
427			infinite: true,
428
429			dots: false,
430
431
432			slidesToShow: 5,
433
434			slidesToScroll: 1,
435			pauseOnHover: false,
436			pauseOnFocus: false,	
437			swipe:true,
438			arrows: true,
439
440			responsive: [
441
442			{
443
444			  breakpoint: 992,
445
446			  settings: {
447
448				adaptiveHeight: true,
449				slidesToShow: 2
450							  }
451			},
452			{
453
454			  breakpoint: 641,
455
456			  settings: {
457
458				adaptiveHeight: true,
459				slidesToShow: 1
460							  }
461
462			}
463
464		  ]
465
466		});
467
468		
469		
470		
471		
472		
473		$(".gallery-slider").slick({
474
475			autoplay: true,
476
477			autoplaySpeed: 3000,
478
479			speed: 1000,
480
481			infinite: true,
482
483			dots: false,
484
485
486			slidesToShow: 1,
487
488			slidesToScroll: 1,
489			pauseOnHover: false,
490			pauseOnFocus: false,	
491			swipe:true,
492			arrows: true,
493
494			responsive: [
495
496			{
497
498			  breakpoint: 992,
499
500			  settings: {
501
502				adaptiveHeight: true,
503				slidesToShow: 2
504							  }
505			},
506			{
507
508			  breakpoint: 641,
509
510			  settings: {
511
512				adaptiveHeight: true,
513				slidesToShow: 1
514							  }
515
516			}
517
518		  ]
519
520		});
521		
522		
523	
524});

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.