generateSlickSlider: function() {
let self = this;
self.initSlick($('.evo-box-slider:not(.slick-initialized)'), 'box-slider');
self.initSlick($('.evo-slider-half:not(.slick-initialized)'), 'slider-half');
self.initSlick($('.evo-slider:not(.slick-initialized)'), 'product-slider');
self.initSlick($('.news-slider:not(.slick-initialized)'), 'news-slider');
$('.slick-lazy').on('mouseenter', function (e) {
let mainNode = $(this);
mainNode.removeClass('slick-lazy');
if (!mainNode.hasClass('slick-initialized')) {
mainNode.find('.product-wrapper').removeClass('mx-auto ml-auto-util mr-auto');
self.initSlick(mainNode, mainNode.data('slick-type'));
}
});
showNotify: function(options) {
eModal.alert({
size: 'xl',
buttons: false,
title: options.title,
message: options.text,
keyboard: true,
tabindex: -1})
.then(
function() {
$.evo.generateSlickSlider();
}
);
},
register: function() {
this.productTabsPriceFlow();
this.generateSlickSlider();
setTimeout(() => {
$('.nav-tabs').tabdrop();
}, 200);
this.tooltips();
this.popupDep();
this.popover();
this.addCartBtnAnimation();
this.checkout();
if ($('body').data('page') == 3) {
this.addInactivityCheck('#cart-form');
}
this.fixStickyElements();
this.setWishlistVisibilitySwitches();
this.initEModals();
$.evo.article().initConfigListeners();
this.initScrollEvents();
this.initReviewHelpful();
this.initWishlist();
this.initPaginationEvents();
this.initFilterEvents();
this.initItemSearch('filter');
this.initSliders();
this.registerImageHover();
}
};