(function($){"use strict";$('.dropdown-menu a.dropdown-toggle').on('click',function(e){if(!$(this).next().hasClass('show')){$(this).parents('.dropdown-menu').first().find('.show').removeClass('show');}
var $subMenu=$(this).next('.dropdown-menu');$subMenu.toggleClass('show');$(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown',function(e){$('.dropdown-submenu .show').removeClass('show');});return false;});$(document).on('ready',function(){$("[data-background]").each(function(){$(this).css("background-image","url("+$(this).attr("data-background")+")");});});new WOW().init();$('.hero-slider').owlCarousel({loop:true,nav:true,dots:false,margin:0,autoplay:true,autoplayHoverPause:true,autoplayTimeout:5000,items:1,navText:["<i class='fal fa-long-arrow-left'></i>","<i class='fal fa-long-arrow-right'></i>"],});$('.hero-slider2').on('change.owl.carousel',function(event){new WOW().init();});$('.partner-slider').owlCarousel({loop:true,margin:0,nav:false,dots:false,autoplay:true,responsive:{0:{items:2},600:{items:3},1000:{items:6}}});$('.testimonial-slider').owlCarousel({loop:true,margin:30,nav:false,dots:true,autoplay:true,responsive:{0:{items:1},600:{items:2},1000:{items:4}}});$('.car-single-slider').owlCarousel({loop:true,margin:20,nav:true,dots:false,navText:["<i class='fal fa-long-arrow-left'></i>","<i class='fal fa-long-arrow-right'></i>"],autoplay:true,responsive:{0:{items:1},600:{items:1},1000:{items:1}}});$(window).on('load',function(){$(".preloader").fadeOut("slow");});$('.counter').countTo();$('.counter-box').appear(function(){$('.counter').countTo();},{accY:-100});$(".popup-gallery").magnificPopup({delegate:'.popup-img',type:'image',gallery:{enabled:true},});$(".popup-youtube, .popup-vimeo, .popup-gmaps").magnificPopup({type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:false,fixedContentPos:false});$(window).scroll(function(){if(document.body.scrollTop>100||document.documentElement.scrollTop>100){$("#scroll-top").fadeIn('slow');}else{$("#scroll-top").fadeOut('slow');}});$("#scroll-top").click(function(){$("html, body").animate({scrollTop:0},1500);return false;});$(window).scroll(function(){if($(this).scrollTop()>50){$('.navbar').addClass("fixed-top");}else{$('.navbar').removeClass("fixed-top");}});if($('#countdown').length){$('#countdown').countdown('2030/01/30',function(event){$(this).html(event.strftime(''+'<div class="row">'+'<div class="col countdown-single">'+'<h2 class="mb-0">%-D</h2>'+'<h5 class="mb-0">Day%!d</h5>'+'</div>'+'<div class="col countdown-single">'+'<h2 class="mb-0">%H</h2>'+'<h5 class="mb-0">Hours</h5>'+'</div>'+'<div class="col countdown-single">'+'<h2 class="mb-0">%M</h2>'+'<h5 class="mb-0">Minutes</h5>'+'</div>'+'<div class="col countdown-single">'+'<h2 class="mb-0">%S</h2>'+'<h5 class="mb-0">Seconds</h5>'+'</div>'+'</div>'));});}
let date=new Date().getFullYear();$("#date").html(date);if($('.date-picker').length){$(function(){$(".date-picker").datepicker();});}
if($('.time-picker').length){$(function(){$(".time-picker").timepicker();});}
$(".profile-img-btn").click(function(){$(".profile-img-file").click();});})(jQuery);