jQuery(function($){ $(document).ready(function(){ if ($(window).width() > 575) { if (window.location.search) { var sPageURL = window.location.search.substring(1); $('#'+sPageURL).reveal(); } } var cardCount = $('.section3_card').length; var kozepsoIndex = Math.floor(cardCount / 2); if (cardCount === 1) { $('.section3_card').css("margin", "0px auto") } else if (cardCount === 2) { $('.section3_card').css("margin", "0px 24px") $('#section_03_card_cont').slick({ centerMode: true, slidesToShow: 1, variableWidth: true, arrows: true, infinite: false, dots: true, initialSlide: 0, responsive: [ { breakpoint: 768, settings: { centerMode: true, slidesToShow: 1, } } ] }); } else { $('.section3_card').css("margin", "0px 24px") $('#section_03_card_cont').slick({ centerMode: true, slidesToShow: 1, variableWidth: true, arrows: true, infinite: false, dots: true, initialSlide: kozepsoIndex, responsive: [ { breakpoint: 768, settings: { centerMode: true, slidesToShow: 1, } } ] }); } var sectionFourCount = $('.section4_card').length; var kozepsoIndexSecFour = Math.floor(sectionFourCount / 2); $('#section_04_card_cont').slick({ dots: false, arrows: false, infinite: false, speed: 300, slidesToShow: 5, slidesToScroll: 1, responsive: [ { breakpoint: 1172, settings: { slidesToShow: 1, centerMode: true, dots: true, variableWidth: true, initialSlide: kozepsoIndexSecFour, } }, ] }); $('.inwb_slick_partner_carousel').slick({ dots: true, autoplay: true, infinite: true, speed: 1000, slidesToShow: 4, slidesToScroll: 1, autoplaySpeed: 5000, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll: 1, dots: true } }, { breakpoint: 768, settings: { slidesToShow: 2, } }, { breakpoint: 575, settings: { slidesToShow: 2, slidesToScroll: 1, centerMode: false, variableWidth: false } } ] }); }); });