<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" charset="UTF-8"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js" charset="UTF-8"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/components/dimmer.min.js" charset="UTF-8"></script>
{#<script type="text/javascript" src="https://cdn.boomcdn.com/libs/wow-js/1.3.0/wow.min.js" charset="UTF-8"></script>#}
<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js" integrity="sha512-Eak/29OTpb36LLo2r47IpVzPBLXnAMPAVypbSZiZ4Qkf8p/7S/XRG5xp7OKWPPYfJT6metI+IORkR5G8F900+g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.js" integrity="sha512-Yk47FuYNtuINE1w+t/KT4BQ7JaycTCcrvlSvdK/jry6Kcxqg5vN7/svVWCxZykVzzJHaxXk5T9jnFemZHSYgnw==" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.css" integrity="sha512-6qkvBbDyl5TDJtNJiC8foyEVuB6gxMBkrKy67XpqnIDxyvLLPJzmTjAj1dRJfNdmXWqD10VbJoeN4pOQqDwvRA==" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-expander/1.7.0/jquery.expander.min.js" integrity="sha512-owmUWt/accgjJVsM8cWGa/n2qT77yC2+dJ8BDmGOQSKQ42DApWgpjINbUhWQ9CTTpdlTJa6OJEycyuaSzBN6lw==" crossorigin="anonymous"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-zoom/1.7.21/jquery.zoom.min.js" integrity="sha512-m5kAjE5cCBN5pwlVFi4ABsZgnLuKPEx0fOnzaH5v64Zi3wKnhesNUYq4yKmHQyTa3gmkR6YeSKW1S+siMvgWtQ==" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-multifile@2.2.2/jquery.MultiFile.min.js" type="text/javascript" language="javascript"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.js"></script>
<script>
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
$(this).ekkoLightbox({ wrapping: false });
});
$('.scrollPerso').mCustomScrollbar({
theme:"dark"
})
$('.expand-desc').expander({
slicePoint: 350,
expandEffect: 'slideDown',
expandSpeed: 0,
expandText: '<a href="#" class="text-underline d-block color-blue-s font-pro-bold" title=""> > Lire le détail</a>',
userCollapseText: '<a href="#" class=" text-underline d-block color-blue-s font-pro-bold" title=""> < Réduire </a>',
collapseSpeed: 0,
collapseEffect: 'slideUp'
});
function initZoomable(selector) {
if (selector) {
var $elt = $(selector), option = {url: $elt.attr('href')};
$(selector).on('click', function (e) {
e.preventDefault();
}).trigger('zoom.destroy').zoom(option);
}
}
function changeImg(srcImg,srcImg2){
document.getElementById('big').src = srcImg ;
document.getElementById('bigLink').href = srcImg2;
document.getElementsByClassName('zoomImg')[0].href=srcImg2;
initZoomable('.zoomable');
}
$("#bigLink").on('click', function (e) {
e.preventDefault();
});
$('#bigLink').zoom();
{% if chcookieconsent_isCookieConsentSavedByUser() == false %}
$('#modalCookies2').show();
{% endif %}
var checkoutSelectButtons = document.getElementsByName('sylius_checkout_select_shipping[shipments][0][method]');
checkoutSelectButtons.forEach(function(checkoutSelectButton) {
checkoutSelectButton.addEventListener('change', function () {
$.ajax({
url: '{{ path('app_shop_cart_shipping_method') }}',
type: "POST",
data: $("[name='sylius_checkout_select_shipping']")
.serialize(),
success: function (data) {
$("#recapitulatif-total-commande")
.html(data);
},
// La fonction à appeler si la requête n'a pas abouti
error: function () {
alert("error");
}
})
})
})
function init_slide(){
/********HOME SLIDER********/
if($(".slider-home").length>0){
const swiperhome = new Swiper('.slider-home', {
pagination: {
el: '.swiper-pagination-home',
clickable : true
},
slidesPerView: 1,
spaceBetween: 30,
loop: false,
autoplay: {
delay: 2500,
},
speed: 900,
effect: 'fade'
});
/* cpte slide */
var nbre_pag= $('.slider-home').children('.swiper-pagination').find('.swiper-pagination-bullet').length;
if(nbre_pag<=1){
$('.slider-home').addClass('just-one')
}
else{
$('.slider-home').removeClass('just-one')
}
}
/***********IMAGE ARTICLE***********/
var galleryThumbs = new Swiper('.gallery-thumbs-art', {
spaceBetween: 10,
slidesPerView: 3,
watchSlidesVisibility: true,
watchSlidesProgress: true,
breakpoints: {
1200: {
spaceBetween: 25
}
}
});
const galleryTop = new Swiper('.gallery-art-image', {
watchSlidesVisibility: true,
watchSlidesProgress: true,
preventInteractionOnTransition: true,
spaceBetween: 10,
slidesPerView: 1,
navigation: {
nextEl: '.artimg-next',
prevEl: '.artimg-prev',
},
pagination: {
el: '.swiper-pagination-produit',
clickable : true
},
effect: 'fade',
thumbs: {
swiper: galleryThumbs
}
});
galleryTop.on('slideChangeTransitionStart', function() {
galleryThumbs.slideTo(galleryTop.activeIndex);
});
galleryThumbs.on('transitionStart', function(){
galleryTop.slideTo(galleryThumbs.activeIndex);
});
/*********ART COLLECTION************/
var swiper_coll = new Swiper('.art-collection', {
slidesPerView: 2,
slidesPerGroup : 1,
spaceBetween: 8,
navigation: {
nextEl: '.coll-next',
prevEl: '.coll-prev',
},
pagination: {
el: '.swiper-pagination-coll',
clickable : true
},
autoplay: 'false',
speed: 600,
breakpoints: {
576: {
slidesPerView: 2,
spaceBetween: 10
},
993: {
slidesPerView: 3,
spaceBetween: 20,
},
1100: {
slidesPerView: 4,
spaceBetween: 32
},
}
});
var nbre_pags= $('.art-collection').children('.content-pagination').children('.select-container').children('.swiper-pagination').find('.swiper-pagination-bullet').length;
if(nbre_pags<=1){
$('.art-collection').addClass('just-one')
}
else{
$('.art-collection').removeClass('just-one')
}
/*********REVIEW***********/
var swiper_coll = new Swiper('.review-swiper', {
slidesPerView: 1,
slidesPerGroup : 1,
spaceBetween: 8,
navigation: {
nextEl: '.review-next',
prevEl: '.review-prev',
},
autoplay: 'false',
speed: 600,
breakpoints: {
576: {
slidesPerView: 2,
spaceBetween: 10
},
1100: {
slidesPerView: 3,
spaceBetween: 8
},
}
});
}
window.addEventListener("resize", function(){
init_slide();
});
$(document).ready(function(e) {
init_slide();
/* LIGHTBOX*/
});
</script>
{{ encore_entry_script_tags('app', null, 'bootstrapTheme') }}
{#{{ encore_entry_script_tags('bitbag-wishlist-shop', null, 'wishlist_shop') }}#}