MediaWiki:Gadget-SlickInit.js

$(document).ready(function{ $('.slick').slick({ dots: true, infinite: true, speed: 300, slidesToShow: 1, slidesToScroll: 1, variableWidth: false, adaptiveHeight: true, centerMode: true, autoplay: true, autoplaySpeed: 5000, }); }); $(document).ready(function{ $('.slider-for').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: true, cssEase: 'ease-in-out', fade: true, infinite: true, asNavFor: '.your-class' }); });

$('.slider-popup').slick({ slidesToShow: 1,  slidesToScroll: 1,   dots: false,  centerMode: true,  infinite: true,  variableWidth: true,  arrows: true,  asNavFor: '.slider-for' });

$('#product-popup').on('shown.bs.modal', function (e) {  $('.slider-popup').slick("setPosition", 0);  });

$(document).ready(function{ $('.your-class').slick({ slidesToShow: 1, slidesToScroll: 1, dots: false, centerMode: true, infinite: true, variableWidth: true, asNavFor: '.slider-for' }); $('.your-class').show; });

$('.modal').on('shown.bs.modal', function (e) { $('.your-class').slick('setPosition');  $('.wrap-modal-slider').addClass('open'); })