%PDF- %PDF-
Direktori : /home/qgbqkvz/www/wp-content/themes/hello-elementor/assets/js/ |
Current File : /home/qgbqkvz/www/wp-content/themes/hello-elementor/assets/js/functions.js |
jQuery(document).ready(function() { jQuery('#list').click(function(event){event.preventDefault();jQuery('#products .item').addClass('list-group-item');}); jQuery('#grid').click(function(event){event.preventDefault();jQuery('#products .item').removeClass('list-group-item');jQuery('#products .item').addClass('grid-group-item');}); var swiper = new Swiper(".swiper-producers-cat", { slidesPerView: 1, spaceBetween: 3, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, breakpoints: { 480: { slidesPerView: 2, spaceBetween: 3, }, 768: { slidesPerView: 3, spaceBetween: 20, }, 1099: { slidesPerView: 4, spaceBetween: 20, }, 1200: { slidesPerView: 5, spaceBetween: 20, }, 1400: { slidesPerView: 6, spaceBetween: 20, }, }, }); var swiper = new Swiper(".swiper-members", { slidesPerView: 1, spaceBetween: 3, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, breakpoints: { 480: { slidesPerView: 2, spaceBetween: 10, }, 768: { slidesPerView: 3, spaceBetween: 22, }, 1099: { slidesPerView: 4, spaceBetween: 22, } }, }); }); jQuery(document).on("click",".search-open", function () { jQuery('.overlay').removeClass('open'); jQuery(".overlay-search").addClass("open"); jQuery("body").css({'overflow':'hidden'}); jQuery("#masthead").css({'z-index':'auto'}); }); jQuery(document).on("click",".overlay-search .btn-close", function() { jQuery(".overlay-search").removeClass("open"); jQuery("body").css({'overflow':'auto'}); jQuery("#masthead").css({'z-index':'99'}); }) jQuery(document).ready(function() { window.axeptioSettings = { clientId: "61b86abca8b2e104d865c081" }; (function(d, s) { var t = d.getElementsByTagName(s)[0], e = d.createElement(s); e.async = true; e.src = "//static.axept.io/sdk.js"; t.parentNode.insertBefore(e, t); })(document, "script"); void 0 === window._axcb && (window._axcb = []); window._axcb.push(function(axeptio) { axeptio.on("cookies:complete", function(choices) { axeptio.cookiesConfig.strings.axeptioButtonTitle = "Gérer vos préférences sur les cookies"; }); }); }); document.addEventListener("DOMContentLoaded", function(){ window.addEventListener('scroll', function() { if (window.scrollY > 200) { jQuery('#navbar_top').find('section').addClass('fixed-top'); jQuery('#slider_home_1').find('section').addClass('fixed-top'); // add padding top to show content behind navbar navbar_height = jQuery('.header-navbar').offsetHeight; document.body.style.paddingTop = navbar_height + 'px'; } else { jQuery('#navbar_top').find('section').removeClass('fixed-top'); jQuery('#slider_home_1').find('section').removeClass('fixed-top'); // remove padding top from body document.body.style.paddingTop = '0'; } }); }); // DOMContentLoaded end jQuery(document).ready(function() { jQuery( ".product-by-cat noscript" ).remove(); jQuery('.product-by-cat').addClass('owl-carousel owl-theme'); jQuery('.product-by-cat').owlCarousel({ loop: true, margin: 20, nav: false, autoplay: true, autoplayTimeout: 2000, dots:false, responsive: { 0: { items: 1, }, 350: { items: 2, }, 768: { items: 3, }, 981: { items: 3.5 } } }); /* jQuery('.ue_post_blocks.uc-items-wrapper').addClass('owl-carousel owl-theme'); jQuery('.ue_post_blocks.uc-items-wrapper').owlCarousel({ loop: true, margin: 30, nav: false, autoplay: true, autoplayTimeout: 2000, dots:false, responsive: { 0: { items: 1, }, 350: { items: 1, }, 768: { items: 1, }, 981: { items: 1, }, 1350: { items: 2 } } }); */ });