1(function ($) { 2 "use strict"; 3 4/*============================================= 5 = Preloader = 6=============================================*/ 7$(window).on('load', function () { 8 preloader(); 9}); 10 11function preloader() { 12 $('#lexendLoader').delay(0).fadeOut(); 13}; 14 15 16/*=========================================== 17 = Mobile Menu = 18=============================================*/ 19//SubMenu Dropdown Toggle 20if ($('.tgmenu__wrap li.menu-item-has-children ul').length) { 21 $('.tgmenu__wrap .navigation li.menu-item-has-children').append('<div class="dropdown-btn"><span class="plus-line"></span></div>'); 22} 23 24//Mobile Nav Hide Show 25if ($('.tgmobile__menu').length) { 26 27 var mobileMenuContent = $('.tgmenu__wrap .tgmenu__main-menu').html(); 28 $('.tgmobile__menu .tgmobile__menu-box .tgmobile__menu-outer').append(mobileMenuContent); 29 30 //Dropdown Button 31 $('.tgmobile__menu li.menu-item-has-children .dropdown-btn').on('click', function () { 32 $(this).toggleClass('open'); 33 $(this).prev('ul').slideToggle(300); 34 }); 35 //Menu Toggle Btn 36 $('.mobile-nav-toggler').on('click', function () { 37 $('body').addClass('mobile-menu-visible'); 38 }); 39 40 //Menu Toggle Btn 41 $('.tgmobile__menu-backdrop, .tgmobile__menu .close-btn').on('click', function () { 42 $('body').removeClass('mobile-menu-visible'); 43 }); 44}; 45 46 47/*============================================= 48 = Data Background = 49=============================================*/ 50$("[data-background]").each(function () { 51 $(this).css("background-image", "url(" + $(this).attr("data-background") + ")") 52}) 53 54 55 56/*============================================= 57 = Testimonial Active = 58=============================================*/ 59var testimonialThumbnail = new Swiper(".testimonial-thumb-active", { 60 spaceBetween: 0, 61 slidesPerView: 1, 62 observer: true, 63 observeParents: true, 64 effect: 'fade', 65 fadeEffect: { 66 crossFade: true, 67 }, 68 autoplay: { 69 delay: 5000, 70 }, 71}); 72var testimonialContent = new Swiper(".testimonial-content-active", { 73 spaceBetween: 0, 74 slidesPerView: 1, 75 observer: true, 76 observeParents: true, 77 effect: 'fade', 78 fadeEffect: { 79 crossFade: true, 80 }, 81 autoplay: { 82 delay: 5000, 83 }, 84 pagination: { 85 el: ".testimonial-pagination", 86 clickable: true, 87 }, 88 thumbs: { 89 swiper: testimonialThumbnail, 90 }, 91}); 92 93 94})(jQuery);
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.