(function ($, root, undefined) { $(function () { 'use strict'; check_scroll(); function check_scroll() { if( $(window).scrollTop() > 50 ){ $('html').addClass('scrolled'); } else { $('html').removeClass('scrolled'); } } /* function equalHeight( ele ) { ele.stop().height( 'auto' ); var maxHeight = 0; ele.each( function() { var H = $(this).height(); if ( H > maxHeight ) maxHeight = H; }); ele.stop().height( maxHeight ); } if($(window).width() > 767) { equalHeight( $('.list-module li .description') ); } else { $('.list-module li .description').removeAttr('style'); } */ /* $('.custom-swiper').addClass('swiper-container'); $('.custom-swiper > .elementor-container').addClass('swiper-wrapper'); $('.custom-swiper > .elementor-container > .elementor-column').addClass('swiper-slide'); $('.custom-swiper').after('
'); const customSwiper = new Swiper('.custom-swiper', { clickable: true, loop: true, speed: 500, pagination: { el: '.swiper-pagination', clickable: true }, autoplay: { delay: 4000 }, breakpoints: { 400: { slidesPerView: 3 }, 1200: { slidesPerView: 4, } } }); */ $('.hdg-accordion-button').click(function(){ if($(this).next('.hdg-accordion-content').is(":hidden")){ $('.hdg-accordion-button').removeClass('hdg-accordion-button-active'); $(this).addClass('hdg-accordion-button-active'); $('.hdg-accordion-content').stop().slideUp(); $(this).next('.hdg-accordion-content').stop().slideDown(); } else { $('.hdg-accordion-button').removeClass('hdg-accordion-button-active'); $('.hdg-accordion-content').stop().slideUp(); } }); /* $('.play-video-js video').click(function(){ $(this).get(0).play(); }); */ $(window).scroll(function(){ check_scroll(); }); $(window).resize(function(){ }); $(window).on('load', function(){ check_scroll(); $('html').addClass('loaded'); }); }); })(jQuery, this);