(function($){"use strict";jQuery(window).on('load',function(){$(".preloader").delay(1600).fadeOut("slow");});$('.hamburger').on('click',function(event){$(this).toggleClass('h-active');$('.main-nav').toggleClass('slidenav');});$('.header-home .main-nav ul li a').on('click',function(event){$('.hamburger').removeClass('h-active');$('.main-nav').removeClass('slidenav');});$(".main-nav .fl").on('click',function(event){var $fl=$(this);$(this).parent().siblings().find('.sub-menu').slideUp();$(this).parent().siblings().find('.fl').addClass('flaticon-plus').text("+");if($fl.hasClass('flaticon-plus')){$fl.removeClass('flaticon-plus').addClass('flaticon-minus').text("-");}else{$fl.removeClass('flaticon-minus').addClass('flaticon-plus').text("+");} $fl.next(".sub-menu").slideToggle();});$(window).on('scroll',function(){var scroll=$(window).scrollTop();if(scroll>=20){$(".header-area").addClass("sticky");}else{$(".header-area").removeClass("sticky");}});$("#datepicker").datepicker();var x,i,j,l,ll,selElmnt,a,b,c;x=document.getElementsByClassName("custom-select");l=x.length;for(i=0;i{element.addEventListener('click',()=>{document.querySelectorAll('.schedule-sidebar').forEach((element)=>element.classList.add('sb-active'))})}) document.querySelectorAll('.sb-toggle-icon').forEach((element)=>{element.addEventListener('click',()=>{document.querySelectorAll('.schedule-sidebar').forEach((element)=>element.classList.remove('sb-active'))})}) function timeConverter(UNIX_timestamp){var a=new Date(UNIX_timestamp*1000);var months=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];var year=a.getFullYear();var month=months[a.getMonth()];var date=a.getDate();var hour=a.getHours();var min=a.getMinutes();var sec=a.getSeconds();var time=date+' '+month+' '+year+' '+hour+':'+min+':'+sec;console.log(date);$("#timer #days").html(date);$("#timer #hours").html(hour);$("#timer #minutes").html(min);$("#timer #seconds").html(sec);} function makeTimer(){var endTime=new Date("September 01, 2022 00:00:00");var endTime=(Date.parse(endTime))/1000;var now=new Date();var now=(Date.parse(now)/1000);var timeLeft=endTime-now;var days=Math.floor(timeLeft/86400);var hours=Math.floor((timeLeft-(days*86400))/3600);var Xmas95=new Date('December 25, 1995 23:15:30');var hour=Xmas95.getHours();var minutes=Math.floor((timeLeft-(days*86400)-(hours*3600))/60);var seconds=Math.floor((timeLeft-(days*86400)-(hours*3600)-(minutes*60)));if(hours<"10"){hours="0"+hours;} if(minutes<"10"){minutes="0"+minutes;} if(seconds<"10"){seconds="0"+seconds;} $("#timer #days").html(days);$("#timer #hours").html(hours);$("#timer #minutes").html(minutes);$("#timer #seconds").html(seconds);$("#timer_h #days_h").html(days);$("#timer_h #hours_h").html(hours);$("#timer_h #minutes_h").html(minutes);$("#timer_h #seconds_h").html(seconds);$("#timer_h2 #days_h2").html(days);$("#timer_h2 #hours_h2").html(hours);$("#timer_h2 #minutes_h2").html(minutes);$("#timer_h2 #seconds_h2").html(seconds);} setInterval(function(){makeTimer();},1000);var cursor=document.querySelector('.cursor');var cursorinner=document.querySelector('.cursor2');var a=document.querySelectorAll('a');document.addEventListener('mousemove',function(e){var x=e.clientX;var y=e.clientY;cursor.style.transform=`translate3d(calc(${e.clientX}px - 50%), calc(${e.clientY}px - 50%), 0)`});document.addEventListener('mousemove',function(e){var x=e.clientX;var y=e.clientY;cursorinner.style.left=x+'px';cursorinner.style.top=y+'px';});document.addEventListener('mousedown',function(){cursor.classList.add('click');cursorinner.classList.add('cursorinnerhover')});document.addEventListener('mouseup',function(){cursor.classList.remove('click') cursorinner.classList.remove('cursorinnerhover')});a.forEach(item=>{item.addEventListener('mouseover',()=>{cursor.classList.add('hover');});item.addEventListener('mouseleave',()=>{cursor.classList.remove('hover');});}) $('[data-fancybox="gallery"]').fancybox({buttons:["slideShow","thumbs","zoom","fullScreen","close"],loop:false,protect:true});$(".number").counterUp({time:3000});new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:true,live:true}).init();var heroSlider=new Swiper('.hero-slider',{slidesPerView:1,speed:1000,spaceBetween:0,loop:true,centeredSlides:true,roundLengths:true,autoplay:{delay:5000},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev',},pagination:{el:'.hero-pagination',type:'custom',clickable:true,renderCustom:function(swiper,current,total){function numberAppend(d){return(d<10)?'0'+d.toString():d.toString();} return numberAppend(current);}},});var heroSliderTwo=new Swiper('.hero-two-slider',{slidesPerView:1,initialSlide:1,speed:1800,spaceBetween:0,loop:true,centeredSlides:true,roundLengths:true,autoplay:{delay:10000},pagination:{el:".hero-pagination",}});var scheduleSlider=new Swiper('.schedule-slider',{slidesPerView:1,speed:1000,spaceBetween:40,loop:true,centeredSlides:true,roundLengths:true,navigation:{nextEl:'.schedule-button-next',prevEl:'.schedule-button-prev',},});var testimonialSlider=new Swiper(".testimonial-slider",{slidesPerView:1,spaceBetween:24,freeMode:false,effect:'coverflow',loop:true,speed:1400,coverflowEffect:{rotate:15,slideShadows:false,},pagination:{el:'.swiper-pagination',type:'custom',clickable:true,renderCustom:function(swiper,current,total){function numberAppend(d){return(d<10)?'0'+d.toString():d.toString();} return numberAppend(current)+``+numberAppend(total);}},navigation:{nextEl:".testi-button-next",prevEl:".testi-button-prev",},});var gallarySlider=new Swiper('.gallary-slider',{slidesPerView:1,speed:1000,spaceBetween:24,loop:true,centeredSlides:true,roundLengths:true,autoplay:{delay:9000},navigation:{nextEl:'.gallary-next1',prevEl:'.gallary-prev1',},breakpoints:{480:{slidesPerView:1},768:{slidesPerView:2},992:{slidesPerView:3},1200:{slidesPerView:3},}});var gallarySlider2=new Swiper('.gallary-slider2',{slidesPerView:1,speed:1000,spaceBetween:24,loop:true,centeredSlides:true,roundLengths:true,autoplay:{delay:12000},navigation:{nextEl:'.gallary-next2',prevEl:'.gallary-prev2',},breakpoints:{480:{slidesPerView:1},768:{slidesPerView:2},992:{slidesPerView:3},1200:{slidesPerView:3},}});var feedbackSlider=new Swiper('.feedback-slider',{slidesPerView:1,speed:1000,spaceBetween:24,loop:true,roundLengths:true,autoplay:{delay:12000},navigation:{nextEl:'.feedback-next',prevEl:'.feedback-prev',},breakpoints:{480:{slidesPerView:1},768:{slidesPerView:2},992:{slidesPerView:2},1200:{slidesPerView:3},}});var blogSlider=new Swiper('.blog-slider',{slidesPerView:1,speed:1000,spaceBetween:24,loop:true,roundLengths:true,autoplay:{delay:12000},navigation:{nextEl:'.blog-next',prevEl:'.blog-prev',},breakpoints:{480:{slidesPerView:1},768:{slidesPerView:2},992:{slidesPerView:2},1200:{slidesPerView:3},}});var eventSlider=new Swiper('.recent-event-slider',{slidesPerView:1,speed:1000,spaceBetween:24,loop:true,roundLengths:true,autoplay:{delay:12000},navigation:{nextEl:'.blog-next',prevEl:'.blog-prev',},breakpoints:{480:{slidesPerView:1},768:{slidesPerView:2},992:{slidesPerView:2},1200:{slidesPerView:3},}});var testimonialSliderTwo=new Swiper('.testimonial-slider-two',{slidesPerView:1,speed:1000,spaceBetween:24,loop:true,roundLengths:true,autoplay:{delay:12000},navigation:{nextEl:'.testi-next',prevEl:'.testi-prev',},pagination:{el:'.testi-pagination',type:'custom',clickable:true,renderCustom:function(swiper,current,total){function numberAppend(d){return(d<10)?'0'+d.toString():d.toString();} return numberAppend(current);}},breakpoints:{480:{slidesPerView:1},768:{slidesPerView:1},992:{slidesPerView:2},1200:{slidesPerView:2},}});var sponsorSliderOne=new Swiper('.sponsor-slider-one',{slidesPerView:2,speed:1000,spaceBetween:24,loop:true,roundLengths:true,autoplay:{delay:12000},navigation:{nextEl:'.sponsor-one-next',prevEl:'.sponsor-one-prev',},breakpoints:{480:{slidesPerView:2},768:{slidesPerView:3},992:{slidesPerView:4},1200:{slidesPerView:5},}});var sponsorSliderTwo=new Swiper('.sponsor-slider-two',{slidesPerView:2,speed:1000,spaceBetween:24,loop:true,roundLengths:true,autoplay:{delay:11000},navigation:{nextEl:'.sponsor-two-next',prevEl:'.sponsor-two-prev',},breakpoints:{480:{slidesPerView:2},768:{slidesPerView:3},992:{slidesPerView:4},1200:{slidesPerView:5},}});var sponsorSliderThree=new Swiper('.sponsor-slider-three',{slidesPerView:2,speed:1000,spaceBetween:24,loop:true,roundLengths:true,autoplay:{delay:15000},navigation:{nextEl:'.sponsor-three-next',prevEl:'.sponsor-three-prev',},breakpoints:{480:{slidesPerView:2},768:{slidesPerView:3},992:{slidesPerView:4},1200:{slidesPerView:5},}});var speakerSliderTwo=new Swiper('.speaker-slider-two',{slidesPerView:1,speed:1000,spaceBetween:24,loop:true,roundLengths:true,autoplay:{delay:15000},pagination:{el:".speaker-two-pagination",},breakpoints:{480:{slidesPerView:1},768:{slidesPerView:2},992:{slidesPerView:2},1200:{slidesPerView:3},}});var sbSpeakerSliderTwo=new Swiper('.sb-speakers-slider',{slidesPerView:3,speed:1000,spaceBetween:24,loop:true,roundLengths:true,autoplay:{delay:15000},pagination:{el:".speaker-sb-pagination",}});}(jQuery));