"use strict";
$(function () {
var SWIPER = {
init: function init() {
$('.js-swiper').each(function (_idx, el) {
var $swiper = $(el);
var dataSwiper = $swiper.data('swiper') || {};
var defaultParams = {
direction: 'horizontal',
slidesPerView: 4,
spaceBetween: 0,
roundLengths: true,
loop: true,
pagination: {
el: $swiper.find('.js-swiper-pagination'),
type: 'bullets',
clickable: true,
bulletClass: 'arrow__point',
bulletActiveClass: 'arrow__point-active'
},
navigation: {
prevEl: $swiper.find('.js-swiper-left'),
nextEl: $swiper.find('.js-swiper-right')
},
breakpoints: {
576: {
slidesPerView: 2,
spaceBetween: 10
}
},
on: {
init: function init() {
$swiper.find('.swiper-load').removeClass('swiper-load');
}
}
};
var params = Object.assign(defaultParams, dataSwiper); // eslint-disable-next-line
new Swiper($swiper.find('.swiper-container'), params);
});
}
};
SWIPER.init();
var MENU = {
init: function init() {
var $menu = $('.js-menu');
var $menuBtn = $('.js-menu-btn');
$menuBtn.on('click', function () {
$menu.toggleClass('menu-show');
$menuBtn.toggleClass('burger-show');
});
}
};
MENU.init();
var MORE = {
init: function init() {
$('.js-more').on('click', function () {
$('.table__row').css('display', 'block');
$('.card-bonus').show();
$('.card-review').show();
$('.js-more').remove();
});
}
};
MORE.init();
});