From e70176b6e6f539754974117625eeab06c4c5dd01 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Tue, 14 Mar 2023 00:23:55 +0200 Subject: main admin and front-end scripts --- html/assets/js/sliders/slider.js | 42 ---------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 html/assets/js/sliders/slider.js (limited to 'html/assets/js/sliders') diff --git a/html/assets/js/sliders/slider.js b/html/assets/js/sliders/slider.js deleted file mode 100644 index a9f5824..0000000 --- a/html/assets/js/sliders/slider.js +++ /dev/null @@ -1,42 +0,0 @@ -// Modules included: -// 'virtual', -// 'mousewheel', -// 'navigation', -// 'pagination', -// 'zoom', -// 'lazy', -// 'autoplay', -// 'thumbs', -// 'manipulation', -// 'effect-fade', - -$$plugins.define('slider', ['swiper-bundle'], function (element, options, Swiper) { - if (element.childNodes.length == 0) { - return; - } - - // init Swiper - const swiper = new Swiper(element, { - autoHeight: options.autoHeight ? options.autoHeight : false, - breakpoints: options.breakpoints, - centerInsufficientSlides: options.centerInsufficientSlides ? options.centerInsufficientSlides : false, - centeredSlides: options.centeredSlides ? options.centeredSlides : false, - direction: options.direction ? options.direction : 'horizontal', - effect: options.effect ? options.effect : 'slide', - loop: options.loop ? options.loop : false, - navigation: { - nextEl: element.querySelector('.swiper-button-next'), - prevEl: element.querySelector('.swiper-button-prev'), - }, - pagination: { - el: element.querySelector('.swiper-pagination'), - type: 'bullets', - clickable: 'true' - }, - slidesPerGroup: options.slidesPerGroup ? options.slidesPerGroup : 1, - slidesPerView: options.slidesPerView ? options.slidesPerView : 1, - spaceBetween: options.spaceBetween ? options.spaceBetween : 0, - speed: options.speed ? options.speed : 800, - watchSlidesProgress: true - }); -}); -- cgit v1.2.3