$(document).ready(function(){document.oncontextmenu=cmenu;function cmenu(){return!1} ww=$(window).width();initFloatSliders() $('.main__slider').owlCarousel({loop:!0,animateIn:'fadeIn',animateOut:'fadeOut',responsiveClass:!0,items:1,dots:!1,nav:!1,lazyLoad:!0,mouseDrag:!1,touchDrag:!1,autoplay:!0,autoplayTimeout:5000,});if(ww<768){$('.ba__slider').owlCarousel({loop:!1,responsiveClass:!0,items:1,dots:!0,nav:!0,navText:[''+files[0].name+''+''+getReadableFileSizeString(files[0].size)+'')}else{$(this).parent('.file__input').find('label').text(sideOldLabel)}});var modalInputFile=$('#modalForm input[type=file]'),modalOldLabel=modalInputFile.parent('.file__input').find('label').text();modalInputFile.change(function(){var files=modalInputFile.prop('files');if(files.length!=0){$(this).parent('.file__input').find('label').html(''+files[0].name+''+''+getReadableFileSizeString(files[0].size)+'')}else{$(this).parent('.file__input').find('label').text(modalOldLabel)}});$('.item__question').click(function(){$('.faq__list li').removeClass('active');$(this).parents('li').toggleClass('active')});$('.item__tab').click(function(){$(this).parents('.tabs__list').find('li.active').removeClass('active');$(this).parent().addClass('active');var currIndex=$(this).parent().index();$(this).parents('section').find('.tabs__content').children('li.active').removeClass('active');$(this).parents('section').find('.tabs__content').children('li:nth-child('+(currIndex+1)+')').addClass('active')});const itemTab=$('.collection__tab-col');const bodyTab=$('.collection__item');itemTab.on('click',function(){const id=$(this).attr('data-tab');if(!$(this).hasClass('active')){itemTab.removeClass('active');bodyTab.removeClass('active');$(this).addClass('active');$(`.collection__item[data-tab="${id}"]`).addClass('active')}});$('.mobile__menu button').click(function(){$(this).toggleClass('menu__opened');$('body').toggleClass('menu__opened');$('.mobile__menu--fixed').html($('header .header__menu').html());$('.mobile__menu--fixed ul').append($('.preheader .preheader__menu .menu__list').html());$('.mobile__menu button').toggle();$('.mobile__menu--fixed').append('
')});$(document).on("click","div.close__menu",function(){$('.mobile__menu button').toggleClass('menu__opened');$('body').toggleClass('menu__opened');$('.mobile__menu--fixed').html($(' header .header .header__menu').html());$('.mobile__menu button').toggle()});$('.mobile__menu__overlay').click(function(){$('.mobile__menu button').toggleClass('menu__opened');$('body').toggleClass('menu__opened');$('.mobile__menu--fixed').html($(' header .header .header__menu').html());$('.mobile__menu button').toggle()});$('#landing__how__it__works .info__content li').hover(function(){$('#landing__how__it__works .info__content li.active').removeClass('active');$('#landing__how__it__works .info__images li.active').removeClass('active');$(this).addClass('active');var clickedIndex=$(this).index();$('#landing__how__it__works .info__images li:nth-child('+(clickedIndex+1)+')').addClass('active')});if(ww>767){$('.compare__slider').owlCarousel({responsiveClass:!0,items:2,dots:!1,nav:!0,lazyLoad:!0,mouseDrag:!1,touchDrag:!0,margin:30,navText:[' ',' '],lazyLoad:!0,mouseDrag:!0,touchDrag:!0,})}else{$('.ba__slider').remove()} $('.testimonials__slider').owlCarousel({loop:!0,animateIn:'fadeIn',animateOut:'fadeOut',responsiveClass:!0,items:3,dots:!0,dotsEach:!0,nav:!0,navText:[' ',' '],lazyLoad:!0,mouseDrag:!0,touchDrag:!0,responsive:{0:{items:1},600:{items:1},768:{items:2},992:{items:2},1199:{items:3}}});$('.gallery__slider').owlCarousel({rewind:!0,loop:!1,animateIn:'fadeIn',animateOut:'fadeOut',responsiveClass:!0,items:3,dots:!1,nav:!0,margin:8,navText:[' ',' '],lazyLoad:!0,mouseDrag:!1,touchDrag:!1,responsive:{0:{items:1},576:{items:1},768:{items:2},992:{items:2}}});$('.owl-carousel').on('translated.owl.carousel',function(event){var attr=$(this).attr('id');if(typeof attr!==typeof undefined&&attr!==!1){checkClasses($(this).attr('id'))}});$('.owl-carousel').on('initialized.owl.carousel',function(event){var attr=$(this).attr('id');if(typeof attr!==typeof undefined&&attr!==!1){checkClasses($(this).attr('id'))}});$('.reviews__slider').owlCarousel({loop:!0,animateIn:'fadeIn',animateOut:'fadeOut',responsiveClass:!0,items:4,dots:!1,nav:!1,lazyLoad:!0,mouseDrag:!1,touchDrag:!1,center:!0,startPosition:5,responsive:{0:{items:1,autoHeight:!0,autoplay:!1,touchDrag:!0,},576:{items:2},768:{items:2},992:{items:4,autoplay:!0,autoplayTimeout:3000,autoplayHoverPause:!0,}}});$('.designs__slider').owlCarousel({loop:!0,animateIn:'fadeIn',animateOut:'fadeOut',responsiveClass:!0,items:1,dots:!0,dotsEach:!0,nav:!0,navText:[' ',' '],lazyLoad:!0,mouseDrag:!1,touchDrag:!1,responsive:{0:{},480:{},768:{items:2},992:{items:1}}});if($('.why__us__slider').length>0){$('.why__us__slider').owlCarousel({loop:!0,responsiveClass:!0,items:1,dots:!0,dotsEach:!0,nav:!0,navText:[' ',' '],lazyLoad:!0,mouseDrag:!1,touchDrag:!1})} var sideInputFile=$('#sideForm input[type=file]'),sideOldLabel=sideInputFile.parent('.file__input').find('label').text();sideInputFile.change(function(){var files=sideInputFile.prop('files');if(files.length!=0){$(this).parent('.file__input').find('label').html(' ',' '],responsive:{0:{items:1},576:{items:1},768:{items:1,touchDrag:!1},992:{items:2,slideBy:2,touchDrag:!1}},onInitialized:compareslInitialized})}else{$('.compare__slider').remove()} if(ww<992&&ww>767){$('.compare__slider .compare__slide .slider__input').attr('value',30);setTimeout(function(){$('.compare__slider .compare__slide .slider__input').trigger('change')},100)} function compareslInitialized(event){var sliderHeight=$('.compare__slider').height();$('head').append(` `)} $(".compare__slider .compare__slide .slider__input").on("input change",(e)=>{const sliderPos=e.target.value;$(e.target).parents('.compare__slide').find('.image__before').css('width',`${sliderPos}%`) $(e.target).parents('.compare__slide').find('.slider__button').css('left',`${sliderPos}%`) $(e.target).parents('.compare__slide').find('.slider__line').css('left',`${sliderPos}%`) if(e.target.value<30){$(e.target).parents('.compare__slide').find('.image__before .image__title').css('opacity','0')}else{$(e.target).parents('.compare__slide').find('.image__before .image__title').css('opacity','1')} if(e.target.value>70){$(e.target).parents('.compare__slide').find('.image__after .image__title').css('opacity','0')}else{$(e.target).parents('.compare__slide').find('.image__after .image__title').css('opacity','1')}});if(ww<992){$('.collapse').removeAttr('data-parent');$('aside .site__menu').prepend('