PageSourceSearch

https://tmsauto.com/wp-content/themes/tmsauto/js/myscript.js?ver=1642

js tmsauto.com collected 2026-09-29 09:21:28 UTC 9,736 bytes, 545 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: true,
238
239			autoplaySpeed: 5000,
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	$(".promotions-slider").slick({
276
277			autoplay: true,
278
279			autoplaySpeed: 3000,
280
281			speed: 1000,
282
283			infinite: true,
284
285			dots: false,
286
287
288			slidesToShow: 1,
289
290			slidesToScroll: 1,
291			pauseOnHover: false,
292			pauseOnFocus: false,	
293			swipe:true,
294			arrows: true
295		});
296
297	$(".testimonials-rotator").slick({
298
299			autoplay: true,
300
301			autoplaySpeed: 5000,
302
303			speed: 1000,
304
305			infinite: true,
306
307			dots: false,
308
309
310			slidesToShow: 1,
311
312			slidesToScroll: 1,
313
314			pauseOnHover: false,
315
316			pauseOnFocus: false,
317
318			arrows: true,
319			
320			adaptiveHeight: true,
321			responsive: [
322
323			{
324
325			  breakpoint: 1200,
326
327			  settings: {
328				adaptiveHeight: true,
329				arrows: false
330							  }
331			}
332			
333		  ]
334		});
335		
336		
337		
338		$(".sec2con").slick({
339
340			autoplay: true,
341
342			autoplaySpeed: 3000,
343
344			speed: 1000,
345
346			infinite: true,
347
348			dots: false,
349
350
351			slidesToShow: 3,
352
353			slidesToScroll: 1,
354			pauseOnHover: false,
355			pauseOnFocus: false,	
356			swipe:true,
357			arrows: true,
358
359			responsive: [
360
361			{
362
363			  breakpoint: 992,
364
365			  settings: {
366
367				adaptiveHeight: true,
368				slidesToShow: 2
369							  }
370			},
371			{
372
373			  breakpoint: 641,
374
375			  settings: {
376
377				adaptiveHeight: true,
378				slidesToShow: 1
379							  }
380
381			}
382
383		  ]
384
385		});
386
387		
388		
389		
390		$(".brands ul").slick({
391
392			autoplay: true,
393
394			autoplaySpeed: 3000,
395
396			speed: 1000,
397
398			infinite: true,
399
400			dots: false,
401
402
403			slidesToShow: 5,
404
405			slidesToScroll: 1,
406			pauseOnHover: false,
407			pauseOnFocus: false,	
408			swipe:true,
409			arrows: true,
410
411			responsive: [
412
413			{
414
415			  breakpoint: 992,
416
417			  settings: {
418
419				adaptiveHeight: true,
420				slidesToShow: 3
421							  }
422			},
423			{
424
425			  breakpoint: 641,
426
427			  settings: {
428
429				adaptiveHeight: true,
430				slidesToShow: 1
431							  }
432
433			}
434
435		  ]
436
437		});
438		
439		
440		$(".hometeam ul").slick({
441
442			autoplay: false,
443
444			autoplaySpeed: 3000,
445
446			speed: 1000,
447
448			infinite: true,
449
450			dots: false,
451
452
453			slidesToShow: 5,
454
455			slidesToScroll: 1,
456			pauseOnHover: false,
457			pauseOnFocus: false,	
458			swipe:true,
459			arrows: true,
460
461			responsive: [
462
463			{
464
465			  breakpoint: 992,
466
467			  settings: {
468
469				adaptiveHeight: true,
470				slidesToShow: 2
471							  }
472			},
473			{
474
475			  breakpoint: 641,
476
477			  settings: {
478
479				adaptiveHeight: true,
480				slidesToShow: 1
481							  }
482
483			}
484
485		  ]
486
487		});
488
489		
490		
491		
492		
493		
494		$(".gallery-slider").slick({
495
496			autoplay: true,
497
498			autoplaySpeed: 3000,
499
500			speed: 1000,
501
502			infinite: true,
503
504			dots: false,
505
506
507			slidesToShow: 1,
508
509			slidesToScroll: 1,
510			pauseOnHover: false,
511			pauseOnFocus: false,	
512			swipe:true,
513			arrows: true,
514
515			responsive: [
516
517			{
518
519			  breakpoint: 992,
520
521			  settings: {
522
523				adaptiveHeight: true,
524				slidesToShow: 2
525							  }
526			},
527			{
528
529			  breakpoint: 641,
530
531			  settings: {
532
533				adaptiveHeight: true,
534				slidesToShow: 1
535							  }
536
537			}
538
539		  ]
540
541		});
542		
543		
544	
545});

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.