//SLIDE FEATURED PRODUCT HOME PAGE [].forEach.call(document.querySelectorAll('.glider'), function(el) { el.addEventListener('glider-loaded', function(event) { var glider = Glider(this); if (glider.dots === undefined) return; if (glider.dots.children.length < 2) $(glider.dots).addClass('d-none'); else $(glider.dots).removeClass('d-none'); }); el.addEventListener('glider-refresh', function(event) { var glider = Glider(this); if (glider.dots === undefined) return; if (glider.dots.children.length < 2) $(glider.dots).addClass('d-none'); else $(glider.dots).removeClass('d-none'); }); el.addEventListener('glider-slide-visible', function(event) { var imgs_to_anticipate = 3; var glider = Glider(this); for (var i = 0; i <= imgs_to_anticipate; ++i){ var index = Math.min(event.detail.slide + i, glider.slides.length - 1), glider = glider; lazyExecute($(glider.slides[index]).find('.lazy')); } }); }); // creare tante inizializzazioni quanti sono i gruppi if ($('.article2__section3__body__desc__list .glider').length > 0) { $( ".article2__section3__body__desc__list .glider" ).each(function() { this.glider = new Glider(this, { slidesToShow: 1, slidesToScroll: 1, draggable: true, skipTrack: true, rewind: false, dots: this.parentNode.querySelector('.dots'), responsive: [{ breakpoint: 576, settings: { slidesToShow: 2, } },{ breakpoint: 768, settings: { slidesToShow: 2, } },{ breakpoint: 992, settings: { slidesToShow: 3, } },{ breakpoint: 1200, settings: { slidesToShow: 4, } }] }); }); } // creare tante inizializzazioni quanti sono i gruppi if ($('.article2__section3__body__desc__list .glider').length > 0) { $( ".article2__section3__body__desc__list .glider" ).each(function() { this.glider = new Glider(this, { slidesToShow: 1, slidesToScroll: 1, draggable: true, skipTrack: true, rewind: false, dots: this.parentNode.querySelector('.dots'), responsive: [{ breakpoint: 576, settings: { slidesToShow: 2, } },{ breakpoint: 768, settings: { slidesToShow: 2, } },{ breakpoint: 992, settings: { slidesToShow: 3, } },{ breakpoint: 1200, settings: { slidesToShow: 4, } }] }); }); } // creare tante inizializzazioni quanti sono i gruppi if ($('.home-products-slide .glider').length > 0) { $( ".home-products-slide .glider" ).each(function() { this.glider = new Glider(this, { slidesToShow: 1, slidesToScroll: 1, draggable: true, skipTrack: true, rewind: false, arrows: { next: this.parentNode.querySelector('.glider-next'), prev: this.parentNode.querySelector('.glider-prev') }, responsive: [{ breakpoint: 410, settings: { slidesToShow: 2, } },{ breakpoint: 768, settings: { slidesToShow: 3, } },{ breakpoint: 992, settings: { slidesToShow: 4, } },{ breakpoint: 1401, settings: { slidesToShow: 5, } }] }); var container_hide = $(this).closest('.container_hide'); if (container_hide.length) { container_hide.addClass('d-none').removeClass('container_hide'); } }); } // creare tante inizializzazioni quanti sono i gruppi if ($('#article-list6').length > 0) { $( "#article-list6" ).each(function() { this.glider = new Glider(this, { slidesToShow: 1, slidesToScroll: 1, draggable: true, skipTrack: true, rewind: false, dots: this.parentNode.querySelector('.dots'), arrows: { next: this.parentNode.querySelector('.glider-next'), prev: this.parentNode.querySelector('.glider-prev') }, responsive: [ { breakpoint: 576, settings: { slidesToShow: 2, } }, { breakpoint: 992, settings: { slidesToShow: 3, } }, { breakpoint: 1200, settings: { slidesToShow: 4, } } ] }); }); } // creare tante inizializzazioni quanti sono i gruppi if ($('.home-promotions-slide .glider').length > 0) { $( ".home-promotions-slide .glider" ).each(function() { this.glider = new Glider(this, { slidesToShow: 1, slidesToScroll: 1, draggable: true, skipTrack: true, rewind: true, /* arrows: { next: el.parentNode.querySelector('.glider-next'), prev: el.parentNode.querySelector('.glider-prev') } */ }); }); } // creare tante inizializzazioni quanti sono i gruppi if ($('.new-products-slide .glider').length > 0) { $( ".new-products-slide .glider" ).each(function() { this.glider = new Glider(this, { slidesToShow: 1.5, slidesToScroll: 1, draggable: true, skipTrack: true, arrows: { prev: '.glider-prev', next: '.glider-next' }, rewind: false, arrows: { next: this.parentNode.querySelector('.glider-next'), prev: this.parentNode.querySelector('.glider-prev') }, responsive: [{ breakpoint: 576, settings: { slidesToShow: 2, } },{ breakpoint: 768, settings: { slidesToShow: 3, } },{ breakpoint: 1200, settings: { slidesToShow: 4, } },{ breakpoint: 1401, settings: { slidesToShow: 5, } }] }); }); } // creare tante inizializzazioni quanti sono i gruppi if ($('#manufacturer-list.glider').length > 0) { $( "#manufacturer-list.glider" ).each(function() { this.glider = new Glider(this, { slidesToShow: 2.5, slidesToScroll: 1, draggable: true, skipTrack: true, rewind: false, dots: false, responsive: [ { breakpoint: 768, settings: { slidesToShow: 4.5, } }, { breakpoint: 992, settings: { slidesToShow: 6.5, } }, { breakpoint: 1200, settings: { slidesToShow: 7.5, } }, { breakpoint: 1400, settings: { slidesToShow: 9, } }, ] }); }); } // creare tante inizializzazioni quanti sono i gruppi if ($('#product_color__box__slide').length > 0) { var product_color__box__slide = $( "#product_color__box__slide" )[0]; product_color__box__slide.glider = new Glider(product_color__box__slide, { slidesToShow: 2.5, slidesToScroll: 1, draggable: true, skipTrack: true, rewind: false, arrows: { next: product_color__box__slide.parentNode.querySelector('.glider-next'), prev: product_color__box__slide.parentNode.querySelector('.glider-prev') }, responsive: [ { breakpoint: 576, settings: { slidesToShow: 2.5, } }, { breakpoint: 768, settings: { slidesToShow: 3.5, } }, { breakpoint: 992, settings: { slidesToShow: 3.5, } }, { breakpoint: 1200, settings: { slidesToShow: 3.5, } } ] }); }