diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-12 23:57:48 +0200 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-12 23:57:48 +0200 |
| commit | 7aa203150fc1a2ec79c681c13f0d486d531746eb (patch) | |
| tree | f09ba9f69ccd434e9c7fdeb41807fc8008784d8a /html/content/js/Sliders | |
| parent | 221af3a2e035bd6689294509feb52f286d3bd5be (diff) | |
| download | classroom-7aa203150fc1a2ec79c681c13f0d486d531746eb.tar.gz classroom-7aa203150fc1a2ec79c681c13f0d486d531746eb.tar.bz2 classroom-7aa203150fc1a2ec79c681c13f0d486d531746eb.zip | |
error pages; js system to support back/front-end
Diffstat (limited to 'html/content/js/Sliders')
| -rw-r--r-- | html/content/js/Sliders/productsSlider.js | 45 | ||||
| -rw-r--r-- | html/content/js/Sliders/slider.js | 42 |
2 files changed, 0 insertions, 87 deletions
diff --git a/html/content/js/Sliders/productsSlider.js b/html/content/js/Sliders/productsSlider.js deleted file mode 100644 index cc043b9..0000000 --- a/html/content/js/Sliders/productsSlider.js +++ /dev/null @@ -1,45 +0,0 @@ -// Modules included:
-// 'virtual',
-// 'mousewheel',
-// 'navigation',
-// 'pagination',
-// 'zoom',
-// 'lazy',
-// 'autoplay',
-// 'thumbs',
-// 'manipulation',
-// 'effect-fade',
-
-$$plugins.define('productsSlider', ['swiper-bundle'], function (element, options, Swiper) {
- if (element.childNodes.length == 0) {
- return;
- }
-
- // init Swiper
- const swiper = new Swiper(element, {
- breakpoints: {
- 0: {
- slidesPerGroup: 1
- },
- 768: {
- slidesPerGroup: 2
- },
- 1024: {
- slidesPerGroup: 3
- }
- },
- navigation: {
- nextEl: element.querySelector('.swiper-button-next'),
- prevEl: element.querySelector('.swiper-button-prev'),
- },
- pagination: {
- el: element.querySelector('.swiper-pagination'),
- type: 'bullets',
- clickable: 'true'
- },
- slidesPerGroup: 3,
- slidesPerView: 'auto',
- spaceBetween: 16,
- speed: 1000
- });
-});
diff --git a/html/content/js/Sliders/slider.js b/html/content/js/Sliders/slider.js deleted file mode 100644 index a9f5824..0000000 --- a/html/content/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
- });
-});
|
