29 lines
650 B
JavaScript
29 lines
650 B
JavaScript
/******/ (() => { // webpackBootstrap
|
|
/*!*********************************!*\
|
|
!*** ./src/latest-news/view.js ***!
|
|
\*********************************/
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
new Swiper(".latest-news-swiper", {
|
|
slidesPerView: 1,
|
|
spaceBetween: 30,
|
|
pagination: {
|
|
el: ".swiper-pagination",
|
|
clickable: true
|
|
},
|
|
navigation: {
|
|
nextEl: ".swiper-button-next",
|
|
prevEl: ".swiper-button-prev"
|
|
},
|
|
breakpoints: {
|
|
640: {
|
|
slidesPerView: 2
|
|
},
|
|
1024: {
|
|
slidesPerView: 3
|
|
}
|
|
}
|
|
});
|
|
});
|
|
/******/ })()
|
|
;
|
|
//# sourceMappingURL=view.js.map
|