PageSourceSearch

https://keeway-india.com/wp-content/themes/keymoto/assets/js/scripts.js?ver=1.0

js keeway-india.com collected 2026-10-08 23:52:53 UTC 40,454 bytes, 1,115 lines download raw bytes

1jQuery.noConflict()(function($) {
2
3    "use strict";
4    var $window = window,
5        offset = '90%',
6        $doc = $(document),
7        self = this,
8        $body = $('body'),
9        TweenMax = window.TweenMax,
10        fl_theme = window.fl_theme || {};
11        fl_theme.window = $(window);
12        fl_theme.document = $(document);
13        window.fl_theme = fl_theme;
14        fl_theme.window = $(window);
15
16
17// Stiky Sidebar
18    fl_theme.initStikySidebar = function(){
19        var sidebar_stiky = $('.sidebar-sticky');
20        if(sidebar_stiky.length){
21            sidebar_stiky.theiaStickySidebar({
22                additionalMarginTop: 30,
23                additionalMarginBottom: 30
24            });
25        }
26    };
27
28// Resize iframe video
29    fl_theme.initResponsiveIframe = function(){
30        var resizeitem = $('iframe');
31        resizeitem.height(
32            resizeitem.attr("height") / resizeitem.attr("width") * resizeitem.width()
33        );
34    };
35
36//Image Popups
37    fl_theme.initImagePopup = function(){
38        $('.fl-gallery-image-popup').magnificPopup({
39            delegate: 'a',
40            type: 'image',
41            removalDelay: 500,
42            image: {
43                markup: '<div class="mfp-figure">'+
44                    '<div class="mfp-img"></div>'+
45                    '<div class="mfp-bottom-bar">'+
46                    '<div class="mfp-title"></div>'+
47                    '</div>'+
48                    '</div>'+
49                    '<div class="mfp-close"></div>'+
50                    '<div class="mfp-counter"></div>'
51            },
52            callbacks: {
53                beforeOpen: function() {
54                    this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
55                    this.st.mainClass = 'fl-zoom-in-popup-animation';
56                }
57            },
58            closeOnContentClick: true,
59            midClick: true,
60            gallery: {
61                enabled: true,
62                arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%">' +
63                    '<svg viewBox="0 0 40 40">'+
64                    '<path d="M10,20 L30,20 M22,12 L30,20 L22,28"></path>'+
65                    '</svg>'+
66                    '</button>', // markup of an arrow button
67
68                tPrev: 'Previous', // title for left button
69                tNext: 'Next', // title for right button
70
71                tCounter: '<span class="mfp-counter">%curr% of %total%</span>' // markup of counter
72            }
73        });
74    };
75// Gallery Popups
76    fl_theme.initGalleryPopup = function(){
77        $('.fl-magic-popup').each(function() {
78            var popup_gallery_custom_class = $(this).attr('data-custom-class'),
79                gallery_enable = true,
80                popup_type = 'image';
81            if($(this).hasClass('fl-single-popup')){
82                gallery_enable = false;
83                popup_gallery_custom_class = 'fl-single-popup';
84            } else if ($(this).hasClass('fl-video-popup')) {
85                popup_type = 'iframe';
86                gallery_enable = false;
87                popup_gallery_custom_class = 'fl-video-popup';
88            }
89
90            $("." + popup_gallery_custom_class).magnificPopup({
91                delegate: 'a',
92                type: popup_type,
93                gallery: {
94                    enabled: gallery_enable,
95                    tPrev: 'Previous',
96                    tNext: 'Next',
97                    tCounter: '<span class="mfp-counter">%curr% / %total%</span>' // markup of counter
98                },
99                image: {
100                    markup:
101                        '<div class="mfp-figure">'+
102                        '<div class="mfp-img"></div>'+
103                        '</div>'+
104                        '<div class="mfp-close"></div>'+
105                        '<div class="mfp-bottom-bar">'+
106                        '<div class="mfp-title"></div>'+
107                        '<div class="mfp-counter"></div>' +
108                        '</div>'
109                },
110                iframe: {
111                    markup: '<div class="mfp-iframe-scaler">'+
112                        '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
113                        '</div>'+
114                        '<div class="mfp-close"></div>'
115                },
116                mainClass: 'mfp-zoom-in',
117                removalDelay: 300,
118                callbacks: {
119                    open: function () {
120                        $.magnificPopup.instance.next = function () {
121                            var self = this;
122                            self.wrap.removeClass('mfp-image-loaded');
123                            setTimeout(function () {
124                                $.magnificPopup.proto.next.call(self);
125                            }, 120);
126                        };
127                        $.magnificPopup.instance.prev = function () {
128                            var self = this;
129                            self.wrap.removeClass('mfp-image-loaded');
130                            setTimeout(function () {
131                                $.magnificPopup.proto.prev.call(self);
132                            }, 120);
133                        }
134                    },
135                    imageLoadComplete: function () {
136                        var self = this;
137                        setTimeout(function () {
138                            self.wrap.addClass('mfp-image-loaded');
139                        }, 16);
140                    }
141                }
142            });
143
144        });
145    };
146// Var
147    fl_theme.initCustomSelect =function(){
148        var jelect = $('.jelect');
149        if(jelect.length){
150            jelect.jelect();
151        }
152    };
153
154// Fixed Nav Bar
155    fl_theme.initNavBarFixed = function() {
156
157        var c, currentScrollTop = 0;
158        var body = $('body'),
159            nav_bar = $('.fl--header'),
160            nav_bar_height = nav_bar.height();
161
162        if(nav_bar.hasClass( "fixed-navbar" )){
163            body.find('.header-padding').css("padding-top",nav_bar_height+"px");
164
165            $(window).scroll(function () {
166                var a = $(window).scrollTop();
167                var b = nav_bar.height();
168                var d = nav_bar.find('.fl-top-header-content').height();
169                currentScrollTop = a;
170                if(nav_bar.hasClass( "auto-hide-navbar" )){
171                    if (c < currentScrollTop && a > b + 500) {
172                        nav_bar.addClass("scrollUp");
173                    } else if (c > currentScrollTop && !(a <= b)) {
174                        nav_bar.removeClass("scrollUp");
175                    }
176                }
177
178                if (c < currentScrollTop && a > b) {
179                    nav_bar.addClass("fixed-enable");
180                }else if (c > currentScrollTop && a < d) {
181                    nav_bar.removeClass("fixed-enable");
182                }
183
184
185                c = currentScrollTop;
186
187            });
188        }
189    };
190
191// Car Google Maps
192    fl_theme.initCarGoogleMaps = function(){
193        var car_maps = $('#contact-map'),
194            lat = car_maps.attr('data-location-lat'),
195            long = car_maps.attr('data-location-long');
196
197        if(car_maps.length){
198            car_maps.gmap3({
199                marker: {
200                    options: {
201                        position:[lat, long],
202                        //icon: "'.$image_done[0].'"
203                    }
204                },map: {
205                    options: {
206                        center:[lat, long],
207                        zoom: 11,
208                        scrollwheel: false,
209                        draggable: true,
210                        mapTypeControl: true,
211                        styles:[{"featureType":"administrative","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-100},{"lightness":20}]},{"featureType":"road","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-100},{"lightness":40}]},{"featureType":"water","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-10},{"lightness":30}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"visibility":"simplified"},{"saturation":-60},{"lightness":10}]},{"featureType":"landscape.natural","elementType":"all","stylers":[{"visibility":"simplified"},{"saturation":-60},{"lightness":60}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"},{"saturation":-100},{"lightness":60}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"},{"saturation":-100},{"lightness":60}]}]
212                    }
213                }
214            });
215
216        }
217    };
218// Change Grid Switch Car Page
219    fl_theme.initGridSwitchCar = function (){
220        if ($('#pixad-listing').hasClass('grid')) {
221            $('.sorting__item.view-by .grid').addClass('active')
222        }else{
223            $('.sorting__item.view-by .list').addClass('active')
224        }
225    };
226
227
228
229
230
231    fl_theme.initCustomWidgetRange= function(){
232/////////////////////////////////////////////////////////////////
233//PRICE RANGE
234/////////////////////////////////////////////////////////////////
235
236        if ($('#slider-price').length > 0) {
237            var slider = document.getElementById('slider-price');
238            var min_price = document.getElementById('pix-min-price').value;
239            var max_price = document.getElementById('pix-max-price').value;
240            var max_slider_price = document.getElementById('pix-max-slider-price').value;
241
242            var pix_thousand = document.getElementById('pix-thousand').value;
243            var pix_decimal = document.getElementById('pix-decimal').value;
244            var pix_decimal_number = document.getElementById('pix-decimal_number').value;
245
246            //var symbol_price = document.getElementById('pix-currency-symbol').value;
247            min_price = min_price == '' ? 0 : min_price;
248            max_price = max_price == '' ? max_slider_price : max_price;
249
250            noUiSlider.create(slider, {
251                start: [min_price, max_price],
252                step: 1000,
253                connect: true,
254                range: {
255                    'min': 0,
256                    'max': Number(max_slider_price)
257                },
258
259
260                format: wNumb({
261                    decimals: pix_decimal_number,
262                    mark: pix_decimal,
263                    thousand: pix_thousand
264                })
265
266            });
267
268            var pValues_price = [
269                document.getElementById('slider-price_min'),
270                document.getElementById('slider-price_max')
271            ];
272
273            slider.noUiSlider.on('update', function( values, handle ) {
274                pValues_price[handle].value = values[handle];
275            });
276
277            slider.noUiSlider.on('change', function( values, handle ) {
278                $(pValues_price[handle]).trigger('change');
279            });
280
281        }
282
283/////////////////////////////////////////////////////////////////
284//YEAR RANGE
285/////////////////////////////////////////////////////////////////
286
287        if ($('#slider-year').length > 0) {
288            var slider_year = document.getElementById('slider-year');
289            var min_year = document.getElementById('pix-min-year').value;
290            var max_year = document.getElementById('pix-max-year').value;
291            var max_slider_year = document.getElementById('pix-max-slider-year').value;
292            min_year = min_year == '' ? 1950 : min_year;
293            max_year = max_year == '' ? max_slider_year : max_year;
294
295            noUiSlider.create(slider_year, {
296                start: [min_year, max_year],
297                step: 1,
298                connect: true,
299                range: {
300                    'min': 1950,
301                    'max': Number(max_slider_year)
302                },
303
304                format: {
305                    to: function ( value ) {
306                        return value;
307                    },
308                    from: function ( value ) {
309                        return value;
310                    }
311                }
312
313            });
314
315            var pValues_year = [
316                document.getElementById('slider-year_min'),
317                document.getElementById('slider-year_max')
318            ];
319
320            slider_year.noUiSlider.on('update', function( values, handle ) {
321                pValues_year[handle].value = values[handle];
322            });
323
324            slider_year.noUiSlider.on('change', function( values, handle ) {
325                $(pValues_year[handle]).trigger('change');
326            });
327
328        }
329
330
331
332/////////////////////////////////////////////////////////////////
333//   MILEAGE RANGE
334/////////////////////////////////////////////////////////////////
335
336        if ($('#slider-mileage').length > 0) {
337            var slider_mileage = document.getElementById('slider-mileage');
338            var min_mileage = document.getElementById('pix-min-mileage').value;
339            var max_mileage = document.getElementById('pix-max-mileage').value;
340            var max_slider_mileage = document.getElementById('pix-max-slider-mileage').value;
341            min_mileage = min_mileage == '' ? 0 : min_mileage;
342            max_mileage = max_mileage == '' ? max_slider_mileage : max_mileage;
343
344            noUiSlider.create(slider_mileage, {
345                start: [min_mileage, max_mileage],
346                step: 10000,
347                connect: true,
348                range: {
349                    'min': 0,
350                    'max': Number(max_slider_mileage)
351                },
352
353                format: {
354                    to: function ( value ) {
355                        return value;
356                    },
357                    from: function ( value ) {
358                        return value;
359                    }
360                }
361
362            });
363
364            var pValues_mileage = [
365                document.getElementById('slider-mileage_min'),
366                document.getElementById('slider-mileage_max')
367            ];
368
369            slider_mileage.noUiSlider.on('update', function( values, handle ) {
370                pValues_mileage[handle].value = values[handle];
371            });
372
373            slider_mileage.noUiSlider.on('change', function( values, handle ) {
374                $(pValues_mileage[handle]).trigger('change');
375            });
376
377        }
378
379/////////////////////////////////////////////////////////////////
380//   ENGINE RANGE
381/////////////////////////////////////////////////////////////////
382
383        if ($('#slider-engine').length > 0) {
384            var slider_engine = document.getElementById('slider-engine');
385            var min_engine = document.getElementById('pix-min-engine').value;
386            var max_engine = document.getElementById('pix-max-engine').value;
387            var max_slider_engine = document.getElementById('pix-max-slider-engine').value;
388            min_engine = min_engine == '' ? 0 : min_engine;
389            max_engine = max_engine == '' ? max_slider_engine : max_engine;
390
391            noUiSlider.create(slider_engine, {
392                start: [min_engine, max_engine],
393                step: 0.1,
394                connect: true,
395                range: {
396                    'min': 0,
397                    'max': Number(max_slider_engine)
398                },
399
400                // Full number format support.
401
402            });
403
404            var pValues_engine = [
405                document.getElementById('slider-engine_min'),
406                document.getElementById('slider-engine_max')
407            ];
408
409            slider_engine.noUiSlider.on('update', function( values, handle ) {
410                pValues_engine[handle].value = values[handle];
411            });
412
413            slider_engine.noUiSlider.on('change', function( values, handle ) {
414                $(pValues_engine[handle]).trigger('change');
415            });
416
417        }
418
419    };
420
421    fl_theme.initCustomHeidthIframeSlider = function(){
422        var slider_iframe = $('.car-details .auto-slider .slides li iframe'),
423            slider_iframe_parent = $('.car-details .auto-slider .slides li').height();
424
425        if(slider_iframe.length){
426            slider_iframe.css({ 'height': '' + slider_iframe_parent+ 'px' });
427        }
428
429
430
431    };
432
433    fl_theme.initCustomWidgetFunction = function(){
434        /*Widgets*/
435        $('.widget.widget_categories .children').parent('.cat-item').addClass('has-sub-category');
436    };
437
438    // 
438Open Close Mobile Navigation
439    fl_theme.initMobileNavigationOpenClose = function () {
440        var $navbar_wrapper         = $('.fl-mobile-menu-wrapper'),
441            $navbar_menu_sidebar    = $('.fl--mobile-menu-navigation-wrapper'),
442            $hamburgerbars          = $('.fl--hamburger-menu-wrapper,.fl--hamburger-menu'),
443            $social_profiles        = $('.fl-mobile-menu-wrapper ul.fl-sidebar-social-profiles li a'),
444            OpenNavBar              = void 0;
445
446        self.fullscreenNavbarIsOpened = function () {
447            return OpenNavBar;
448        };
449
450        self.toogleOpenCloseMobileMenu = function () {
451            self[OpenNavBar ? 'closeFullscreenNavbar' : 'openFullscreenNavbar']();
452        };
453        self.openFullscreenNavbar = function () {
454            if (OpenNavBar || !$navbar_wrapper.length) {
455                return;
456            }
457            OpenNavBar = 1;
458
459            var $navbarMenuItems = $navbar_wrapper.find('.fl--mobile-menu >li >a,.fl--mobile-menu li.opened .sub-menu >li >a');
460            if (!$navbar_wrapper.find('.fl--mobile-menu >li.opened').length) {
461                $navbarMenuItems = $navbar_wrapper.find('.fl--mobile-menu >li >a');
462            }
463
464            $hamburgerbars.addClass('opened');
465            $hamburgerbars.removeClass('closed');
466
467            // NavBarMenu Items Animation
468            TweenMax.set($navbarMenuItems, {
469                opacity: 0,
470                x: '-20%',
471                force3D: true
472            });
473
474            TweenMax.staggerTo($navbarMenuItems, 0.2, {
475                opacity: 1,
476                x: '0%',
477                delay: 0.4
478            }, 0.04);
479
480            // Social Profiles Animation
481            TweenMax.set($social_profiles, {
482                opacity: 0,
483                y: '-100%',
484                force3D: true
485            });
486
487            TweenMax.staggerTo($social_profiles, 0.2, {
488                opacity: 1,
489                y: '0%',
490                delay: 0.6
491            }, 0.04);
492
493            // NavBarMenu wrapper Animation
494            TweenMax.set($navbar_wrapper, {
495                display: 'none',
496                force3D: true
497            });
498
499            TweenMax.to($navbar_wrapper, 0.4, {
500                opacity: 1,
501                display: 'block'
502            }, 0.04);
503
504            // NavBarMenu menu sidebar Animation
505            TweenMax.set($navbar_menu_sidebar, {
506                opacity: 0,
507                x: '-100%',
508                force3D: true
509            });
510
511            TweenMax.to($navbar_menu_sidebar, 0.4, {
512                opacity: 1,
513                x: '0%',
514                display: 'block'
515            }, 0.04);
516
517            $navbar_wrapper.addClass('open');
518
519        };
520
521        self.closeFullscreenNavbar = function (dontTouchBody) {
522            if (!OpenNavBar || !$navbar_wrapper.length) {
523                return;
524            }
525            OpenNavBar = 0;
526
527
528            // disactive all togglers
529            $hamburgerbars.removeClass('opened');
530            $hamburgerbars.addClass('closed');
531
532
533            var $navbarMenuItems = $navbar_wrapper.find('.fl--mobile-menu >li >a');
534
535
536            // set top position and animate
537            TweenMax.to($navbar_wrapper, 0.4, {
538                force3D: true,
539                opacity: 0,
540                display: 'none',
541                delay: 0.1
542            });
543
544            TweenMax.to($navbar_menu_sidebar, 0.2, {
545                opacity: 0,
546                x: '-100%',
547                force3D: true,
548                delay: 0.3
549            }, 0.1);
550
551            TweenMax.to($navbarMenuItems, 0.2, {
552                opacity: 0,
553                x: '-20%',
554                delay: 0.2
555            }, 0.1);
556
557
558
559            // open navbar block
560            $navbar_wrapper.removeClass('open');
561
562        };
563
564        $doc.on('click', '.fl--hamburger-menu-wrapper,.fl--mobile-menu-icon,.fl--hamburger-menu', function (e) {
565            self.toogleOpenCloseMobileMenu();
566            e.preventDefault();
567        });
568    };
569    // Mobile Menu
570    fl_theme.initMobileNavigationSubMenuAnimation = function () {
571        var $mobileMenu = $('.fl--mobile-menu');
572
573        $mobileMenu.find('li').each(function(){
574            var $this = $(this);
575            if($this.find('ul').length > 0) {
576                $this.find('> a').append('<span class="fl-menu-flipper-icon fl--open-child-menu"><span class="fl-front-content"><i class="fl-custom-icon-list-style-6"></i></span><span class="fl-back-content"><i class="fl-custom-icon-cancel-5"></i></span></span>');
577            }
578        });
579
580        // open -> close sub-menu
581        function toggleSub_menu($sub_menu_find) {
582            var $navigation_Items = $sub_menu_find.find('.sub-nav >.sub-menu >li >a');
583
584            if (!$sub_menu_find.find('.sub-nav >.sub-menu >li.opened').length) {
585                $navigation_Items = $sub_menu_find.find('.sub-menu >li >a');
586            }
587
588            TweenMax.set($navigation_Items, {
589                opacity: 0,
590                x: '-20%',
591                force3D: true
592            }, 0.04);
593            if ($sub_menu_find.hasClass('opened')) {
594                $sub_menu_find.removeClass('opened');
595                $sub_menu_find.find('li').removeClass('opened');
596                $sub_menu_find.find('ul').slideUp(200);
597                TweenMax.staggerTo($navigation_Items, 0.3, {
598                    opacity: 0,
599                    x: '-20%',
600                    force3D: true
601                }, 0.04);
602                console.log($navigation_Items);
603            } else {
604                TweenMax.staggerTo($navigation_Items, 0.3, {
605                    x: '0%',
606                    opacity: 1,
607                    delay: 0.2
608                }, 0.04);
609
610                $sub_menu_find.addClass('opened');
611                if (!$sub_menu_find.children('ul').length) {
612                    $sub_menu_find.find('div').children('ul').slideDown();
613                } else {
614                    $sub_menu_find.children('ul').slideDown();
615                }
616                // Sub menu Children
617                $sub_menu_find.siblings('li').children('ul').slideUp(200);
618                $sub_menu_find.siblings('li').removeClass('opened');
619                $sub_menu_find.siblings('li').find('li').removeClass('opened');
620                $sub_menu_find.siblings('li').find('ul').slideUp(200);
621            }
622        }
623
624        $mobileMenu.on('click', 'li.has-submenu >a', function (e) {
625            toggleSub_menu($(this).parent());
626            e.preventDefault();
627        });
628    };
629
630    // WPML Demo Click
631    fl_theme.initWPMLDemoClickLink = function(){
632
633        $body.on('click', '.demo-language-selector a', function (e) {
634
635            alert('The language switcher requires WPML plugin to be installed and activated.If you don\'t need this option do not install the plugin');
636
637            e.preventDefault();
638        });
639    };
640
641    fl_theme.initVelocityAnimationSave = function(){
642        var animated_velocity = $('.fl-animated-item-velocity');
643
644        // Hided item if animated not complete
645        animated_velocity.each(function () {
646            var $this = $(this),
647                $item;
648
649            if ($this.data('item-for-animated')) {
650                $item = $this.find($this.data('item-for-animated'));
651                $item.each(function() {
652                    if(!$(this).hasClass('animation-complete')) {
653                        $(this).css('opacity','0');
654                    }
655                });
656            } else {
657                if(!$this.hasClass('animation-complete')) {
658                    $this.css('opacity','0');
659                }
660            }
661        });
662
663        // animated Function
664        animated_velocity.each(function () {
665            var $this_item = $(this), $item, $animation;
666            $animation = $this_item.data('animate-type');
667            if ($this_item.data('item-for-animated')) {
668                $item = $this_item.find($this_item.data('item-for-animated'));
669                $item.each(function() {
670                    var $this = $(this);
671                    var delay='';
672                    if ($this_item.data('item-delay')) {
673                        delay = $this_item.data('item-delay');
674                    }else {
675                        if ($this.data('item-delay')) {
676                            delay = $this.data('item-delay');
677                        }
678                    }
679                    $this.waypoint(function () {
680                            if(!$this.hasClass('animation-complete')) {
681                                $this.addClass('animation-complete')
682                                    .velocity('transition.'+$animation,{delay:delay,display:'undefined',opacity:1});
683                            }
684                        },
685                        {
686                            offset: offset
687                        });
688                });
689            } else {
690                $this_item.waypoint(function () {
691                        var delay='';
692                        if ($this_item.data('item-delay')) {
693                            delay = $this_item.data('item-delay');
694                        }
695
696                        if(!$this_item.hasClass('animation-complete')) {
697                            $this_item.addClass('animation-complete')
698                                .velocity('transition.'+$animation,{  delay:delay,display:'undefined',opacity:1});
699                        }
700
701                    },
702                    {
703                        offset: offset
704                    });
705            }
706        });
707    };
708
709
710    // Post Archive And Single Slider Post
711    fl_theme.initPostSlider = function (){
712        $('.post-gallery-slider').each(function () {
713            $(this).slick({
714                dots: false,
715                infinite: false,
716                draggable: true,
717                speed: 800,
718                nextArrow:'.slider-arrow-right',
719                prevArrow:'.slider-arrow-left',
720            });
721        });
722    };
723
724    fl_theme.initSharePostArchive = function() {
725        $('body').on('click', '.share-post', function (e) {
726
727            if($(this).hasClass('closed')){
728                $(this).removeClass('closed').addClass('opened');
729                $(this).parent().find('.post-share-icon').removeClass('closed').addClass('opened');
730            }else{
731                $(this).removeClass('opened').addClass('closed');
732                $(this).parent().find('.post-share-icon').removeClass('opened').addClass('closed');
733            }
734
735            e.preventDefault();
736        });
737    };
738    // Venobox
739    fl_theme.initVenoBoxFunction = function () {
740        var venobox = $('.venobox');
741        if(venobox.length){
742            venobox.each(function() {
743                $(this).venobox();
744            });
745        }
746    };
747    // Post Archive And Single Slider Post
748    fl_theme.initMotoSlider = function (){
749        $('.templines-moto-slider').each(function () {
750            var $motoslider = $(this);
751            var current = $motoslider.parent().find('.current');
752            $motoslider.on('init', function(event, slick) {
753                current.text(slick.currentSlide + 1);
754                $('.total').text(slick.slideCount);
755            });
756            $motoslider.on('beforeChange', function(event, slick, currentSlide, nextSlide) {
757                current.text(nextSlide + 1);
758                TweenMax.fromTo(current, .5, {y:"-3px",opacity: 0}, {y:"0px",opacity: 1, delay:0.2,easing: 'easeInOutQuad'});
759
760            });
761
762            // Slick Slider Options
763            $motoslider.not('.slick-initialized').slick({
764                draggable: true,
765                arrows: true,
766                dots: false,
767                infinite: true,
768                speed: 1000,
769                mobileFirst: true,
770                pauseOnHover: true,
771                nextArrow: $motoslider.parent().find('.moto-slider-arrow-next'),
772                prevArrow: $motoslider.parent().find('.moto-slider-arrow-prev'),
773            });
774            console.log($motoslider.parent());
775        });
776    };
777    // Testimonial Slider
778    fl_theme.initTestimonialSlider = function (){
779        $('.templines-testimonial-slider').each(function () {
780            var $motoslider = $(this);
781            // Slick Slider Options
782            $motoslider.not('.slick-initialized').slick({
783                draggable: true,
784                arrows: true,
785                dots: true,
786                infinite: true,
787                speed: 1000,
788                mobileFirst: true,
789                pauseOnHover: true,
790                nextArrow: $motoslider.parent().find('.moto-slider-arrow-next'),
791                prevArrow: $motoslider.parent().find('.moto-slider-arrow-prev'),
792            });
793        });
794    };
795
796    // Line Height Check
797    fl_theme.initLineHeightСheck = function () {
798        var $element = $('.post-inner_content >p ,.single-page-wrapper >p');
799        $element.each(function() {
800            if ($(this).css("font-size") >= "20px") {
801                $(this).css('line-height','1.6');
802            }
803        });
804    };
805
806    fl_theme.initGoogleMapsPageBuilderFunction = function (){
807        var google_map = $(".page-builder-google-map-wrap"),
808            custom_html_google_map = google_map.attr('data-custom-class'),
809            address = google_map.attr('data-map-address'),
810            scrollwell = google_map.attr('data-map-scrollwhell'),
811            icon = google_map.attr('data-map-marker'),
812            map_zoom = google_map.attr('data-map-zoom'),
813            style_map = '';
814            if(google_map.hasClass('map-light-coloured')){
815                style_map = '[ { "featureType": "landscape", "stylers": [ { "hue": "#FFBB00" }, { "saturation": 43.400000000000006 }, { "lightness": 37.599999999999994 }, { "gamma": 1 } ] }, { "featureType": "road.highway", "stylers": [ { "hue": "#FFC200" }, { "saturation": -61.8 }, { "lightness": 45.599999999999994 }, { "gamma": 1 } ] }, { "featureType": "road.arterial", "stylers": [ { "hue": "#FF0300" }, { "saturation": -100 }, { "lightness": 51.19999999999999 }, { "gamma": 1 } ] }, { "featureType": "road.local", "stylers": [ { "hue": "#FF0300" }, { "saturation": -100 }, { "lightness": 52 }, { "gamma": 1 } ] }, { "featureType": "water", "stylers": [ { "hue": "#0078FF" }, { "saturation": -13.200000000000003 }, { "lightness": 2.4000000000000057 }, { "gamma": 1 } ] }, { "featureType": "poi", "stylers": [ { "hue": "#00FF6A" }, { "saturation": -1.0989010989011234 }, { "lightness": 11.200000000000017 }, { "gamma": 1 } ] } ]';
816            }
817        $('.'+custom_html_google_map+" .google-map").gmap3({
818            marker: {
819                address: address,
820
821                options: {
822                    icon: icon
823                }
824            },map: {
825                options: {
826                    zoom:Number(map_zoom),
827                    scrollwheel: false,
828                    draggable: true,
829                    mapTypeControl: true,
830                    style_map
831                }
832            }
833        });
834
835};
836
837    // Car slider
838    fl_theme.initCarsSlider = function() {
839
840        $('.auto-slider .slides').slick({
841            dots: false,
842            infinite: false,
843            speed: 500,
844            slidesToShow: 1,
845            slidesToScroll: 1,
846            draggable: true,
847            focusOnSelect: true,
848            nextArrow: '.fl-slider-arrow-right',
849            prevArrow: '.fl-slider-arrow-left',
850            asNavFor: '.auto-carousel .slides'
851        });
852
853        $('.auto-carousel .slides').slick({
854            dots: false,
855            infinite: false,
856            draggable: true,
857            speed: 500,
858            slidesToShow: 5,
859            slidesToScroll: 1,
860            focusOnSelect: true,
861            arrows: false,
862            swipeToSlide: true,
863            asNavFor: '.auto-slider .slides',
864            responsive: [
865                {
866                    breakpoint: 1024,
867                    settings: {
868                        slidesToShow: 3,
869                        slidesToScroll: 1
870                    }
871                },
872                {
873                    breakpoint: 600,
874                    settings: {
875                        slidesToShow: 2,
876                        slidesToScroll: 1
877                    }
878                },
879                {
880                    breakpoint: 480,
881                    settings: {
882                        slidesToShow: 2,
883                        slidesToScroll: 1
884                    }
885                }
886            ]
887        });
888
889    };
890
891    // Full Search Form Open Close
892    fl_theme.initFullSearchFormOpenClose = function () {
893        var OpenSearchFullScrean                = void 0,
894            searchFormWrap                      = $('.header-search-form'),
895            searchForm                          = $('.header-search-form .search-form-entry-content .search-form-wrapper form'),
896            searchCloseBtn                      = $('.header-search-form .search-form-entry-content .search-close-btn'),
897            seacrhOverflow                      = $('.header-search-form .search-form-entry-content .overflow-search-bg');
898
899        self.FullScreanSearchFormIsOpened = function () {
900            return OpenSearchFullScrean;
901        };
902
903        self.toogleOpenCloseFullSearchForm = function () {
904            self[OpenSearchFullScrean ? 'closeFullScreanSearchForm' : 'openFullScreanSearchForm']();
905        };
906        self.openFullScreanSearchForm = function () {
907            if (OpenSearchFullScrean || !searchFormWrap.length) {
908                return;
909            }
910            OpenSearchFullScrean = 1;
911            searchFormWrap.addClass('opened');
912
913
914            TweenMax.to(seacrhOverflow, 0.1, {
915                opacity: 1,
916                delay: 0.2
917            }, 0.04);
918
919            TweenMax.to(searchForm, 0.2, {
920                opacity: 1,
921                y: '0%',
922                delay: 0.4
923            }, 0.04);
924
925            TweenMax.to(searchCloseBtn, 0.2, {
926                opacity: 1,
927                x: '0%',
928                delay: 0.6
929            }, 0.04);
930
931        };
932
933        self.closeFullScreanSearchForm = function () {
934            if (!OpenSearchFullScrean || !searchFormWrap.length) {
935                return;
936            }
937            OpenSearchFullScrean = 0;
938
939            TweenMax.to(searchCloseBtn, 0.2, {
940                opacity: 0,
941                x: '60',
942                delay: 0.3
943            }, 0.04);
944
945            TweenMax.to(seacrhOverflow, 0.2, {
946                opacity: 0,
947                delay: 0.5
948            }, 0.04);
949
950            TweenMax.to(searchForm, 0.2, {
951                opacity: 0,
952                y: '-30',
953                delay: 0.6
954            }, 0.04);
955
956            TweenMax.set(searchFormWrap, {
957                className:"-=opened",
958                delay: 0.8
959            });
960
961        };
962
963        $doc.on('click', '.fl-search-header-icon-wrap,.search-close-btn,.header-search-form .search-form-entry-content .overflow-search-bg', function (e) {
964            self.toogleOpenCloseFullSearchForm();
965            e.preventDefault();
966        });
967    };
968    // SidebarHeader Open Close
969    fl_theme.initHeaderSidebarOpenClose = function () {
970        var OpenHeaderSIdebar                   = void 0,
971            HeaderSidebarWrap                  = $('.header-sidebar-wrap'),
972            HeaderSidebar                          = $('.header-sidebar-wrap .entry-content .header-sidebar-container'),
973            HeaderSidebarOverflow                      = $('.header-sidebar-wrap .entry-content .overflow-header-sidebar');
974
975        self.HeaderSIdebarFormIsOpened = function () {
976            return OpenHeaderSIdebar;
977        };
978
979        self.toogleOpenCloseHeaderSidebar = function () {
980            self[OpenHeaderSIdebar ? 'closeHeaderSIdebarForm' : 'openHeaderSIdebarForm']();
981        };
982        self.openHeaderSIdebarForm = function () {
983            if (OpenHeaderSIdebar || !HeaderSidebarWrap.length) {
984                return;
985            }
986            OpenHeaderSIdebar = 1;
987            HeaderSidebarWrap.addClass('opened');
988
989
990            TweenMax.to(HeaderSidebarOverflow, 0.1, {
991                opacity: 1,
992                delay: 0.2
993            }, 0.04);
994
995            TweenMax.to(HeaderSidebar, 0.2, {
996                opacity: 1,
997                x: '0%',
998                delay: 0.4
999            }, 0.04);
1000
1001        };
1002
1003        self.closeHeaderSIdebarForm = function () {
1004            if (!OpenHeaderSIdebar || !HeaderSidebarWrap.length) {
1005                return;
1006            }
1007            OpenHeaderSIdebar = 0;
1008
1009            TweenMax.to(HeaderSidebarOverflow, 0.2, {
1010                opacity: 0,
1011                delay: 0.5
1012            }, 0.04);
1013
1014            TweenMax.to(HeaderSidebar, 0.2, {
1015                opacity: 0,
1016                x: '330px',
1017                delay: 0.6
1018            }, 0.04);
1019
1020            TweenMax.set(HeaderSidebarWrap, {
1021                className:"-=opened",
1022                delay: 0.8
1023            });
1024
1025        };
1026
1027        $doc.on('click', '.fl-sidebar-header-icon-wrap,.header-sidebar-wrap .entry-content .header-sidebar-container .entry-sidebar .closed-icon-wrap .closed-icon-header-sidebar,.header-sidebar-wrap .entry-content .overflow-header-sidebar', function (e) {
1028            self.toogleOpenCloseHeaderSidebar();
1029            e.preventDefault();
1030        });
1031    };
1032    // SidebarHeader Open Close
1033    fl_theme.initMotoSliderImage = function () {
1034        var $motoslider = $('.moto-image-slider');
1035        // Slick Slider Options
1036        $motoslider.not('.slick-initialized').slick({
1037            draggable: true,
1038            arrows: false,
1039            dots: false,
1040            infinite: true,
1041            autoplay:true,
1042            speed: 1000,
1043            mobileFirst: true,
1044            pauseOnHover: true,
1045        });
1046    };
1047    fl_theme.initCustomFunction = function(){
1048        // Sidebar
1049        fl_theme.initStikySidebar();
1050        // Resize iframe video
1051        fl_theme.initResponsiveIframe();
1052        // Image Popup
1053        fl_theme.initImagePopup();
1054        // Gallery Popups
1055        fl_theme.initGalleryPopup();
1056        // Select
1057        fl_theme.initCustomSelect();
1058        // Open Close Mobile Navigation
1059        fl_theme.initMobileNavigationOpenClose();
1060        // Sub Menu Animation
1061        fl_theme.initMobileNavigationSubMenuAnimation();
1062        //Navbar fixed
1063        fl_theme.initNavBarFixed();
1064        // Car Google Maps
1065        fl_theme.initCarGoogleMaps();
1066        // Change Grid Switch Car Page
1067        fl_theme.initGridSwitchCar();
1068        // Widget Range
1069        fl_theme.initCustomWidgetRange();
1070        // Custom Widget Function
1071        fl_theme.initCustomWidgetFunction();
1072        //  Custom Iframe Slider Function
1073        fl_theme.initCustomHeidthIframeSlider();
1074        //  WPML Demo Click Link
1075        fl_theme.initWPMLDemoClickLink();
1076        // Share Post
1077        fl_theme.initSharePostArchive();
1078        // Post Slider
1079        fl_theme.initPostSlider();
1080        // Venobox
1081        fl_theme.initVenoBoxFunction();
1082        // Line Height Check
1083        fl_theme.initLineHeightСheck();
1084        // Moto Slider
1085        fl_theme.initMotoSlider();
1086        // Testimonial Slider
1087        fl_theme.initTestimonialSlider();
1088        // Google Map Page Builder
1089        fl_theme.initGoogleMapsPageBuilderFunction();
1090        // Car slider
1091        fl_theme.initCarsSlider();
1092        // Full Search Form Open Close
1093        fl_theme.initFullSearchFormOpenClose();
1094        // SidebarHeader Open Close
1095        fl_theme.initHeaderSidebarOpenClose();
1096        // Slider Moto Image
1097        fl_theme.initMotoSliderImage();
1098    };
1099
1100    fl_theme.initVelocityAnimationSave();
1101    fl_theme.initCustomFunction();
1102
1103
1104    $($window).resize(function() {
1105        fl_theme.initResponsiveIframe();
1106        fl_theme.initNavBarFixed();
1107        // Resize iframe video
1108        fl_theme.initResponsiveIframe();
1109        // Custom Iframe Slider Function
1110        fl_theme.initCustomHeidthIframeSlider();
1111        setTimeout(fl_theme.initCustomHeidthIframeSlider, 200);
1112    });
1113
1114
1115});

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.