<script src="{{ asset("/slick/jquery-3.6.0.min.js") }}" type="text/javascript"></script>
<script src="{{ asset("/slick/jquery-migrate-3.4.0.min.js") }}"></script>
<script src="{{ asset("/slick/slick.js?v2022") }}" type="text/javascript" charset="utf-8"></script>
{#<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>#}
{#<script src="{{ asset("/bootstrap.bundle.min.js") }}"></script>#}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/js/bootstrap-select.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/js/i18n/defaults-*.min.js"></script>
<script src="{{ asset("/zoom/jquery.elevateZoom-3.0.8.min.js") }}"></script>
<script src="{{ asset("/zoom/lightbox.min.js") }}"></script>
<script src="{{ asset("/rSlider.min.js") }}"></script>
<script>
function zoom(element) {
let elemt = $("#"+element);
elemt.elevateZoom({
scrollZoom: true,
zoomWindowFadeIn: 300,
zoomWindowFadeOut: 300,
lensFadeIn: 300,
lensFadeOut: 300,
zoomWindowHeight:250,
zoomWindowWidth:250,
easing : true,
borderSize: 1,
borderColour: '#048b9a',
responsive: true,
cursor: 'pointer',
});
}
// zoom("z-image-1")
$(".navbar-toggler").click(function (e) {
let cible = $('.navbar-collapse');
if (cible.hasClass("show")){
$(this).attr("data-bs-target","navbarText_no")
cible.removeClass('show');
cible.addClass('hide');
}else{
$(this).attr("data-bs-target","navbarText")
cible.addClass('show');
cible.removeClass('hide');
}
})
$(".product_one_block_link").click(function () {
window.location.href = $(this).attr("data-link");
})
function linkClick(linkData) {
window.location.href = linkData;
}
$(".show_image_with_color").click(function () {
let id = $(this).attr("id");
let idProduit = $(this).attr("data-id-produit")
let idColor = $(this).attr("data-id-color")
let typeColor = $(this).attr("data-type-color")
let urlImages = $(this).attr("data-url")
let cible = $(".show-img-selected-color-in-product");
$(".img_with_color").addClass("d-none");
$(".show_image_with_color_"+id).removeClass("d-none");
cible.html("<p class='text-center'>Chargement...</p>");
$.ajax({
method: "POST",
url: urlImages,
data: {"idProduit":idProduit,"idColor":idColor,"typeColor":typeColor,"isMobil":2},
// dataType: 'json'
}).done(function( images ) {
cible.html(images);
// $(".price-products-fiche").text($(".price_loaded").text());
});
})
$('.show_image_with_color_mobil').on('change', function (e) {
var optionSelected = $("option:selected", this);
let idProduit = optionSelected.attr("data-id-produit")
let idColor = optionSelected.attr("data-id-color")
let typeColor = optionSelected.attr("data-type-color")
let urlImages = optionSelected.attr("data-url")
let cible = $(".show-img-selected-color-in-product-mobil");
$(".img_with_color").addClass("d-none");
if (idProduit){
cible.html("<p class='text-center'>Chargement...</p>");
$.ajax({
method: "POST",
url: urlImages,
data: {"idProduit":idProduit,"idColor":idColor,"typeColor":typeColor,"isMobil":1},
// dataType: 'json'
}).done(function( images ) {
cible.html(images);
// $(".price-products-fiche").text($(".price_loaded").text());
$('.center-list-sm').slick({
centerMode: false,
// centerPadding: '60px',
slidesToShow: 1,
infinite: false,
dots: true,
});
});
}
});
</script>
<script type="text/javascript">
$(document).on('ready', function() {
$('.center').slick({
centerMode: false,
// centerPadding: '60px',
slidesToShow: 3,
infinite: false,
responsive: [
{
breakpoint: 1193,
settings: {
arrows: true,
centerMode: true,
// centerPadding: '40px',
slidesToShow: 1
}
},
{
breakpoint: 768,
settings: {
arrows: true,
centerMode: true,
// centerPadding: '40px',
slidesToShow: 1
}
},
{
breakpoint: 480,
settings: {
arrows: true,
centerMode: true,
// centerPadding: '40px',
slidesToShow: 1
}
}
],
dots: true,
});
$('.center-list-sm').slick({
centerMode: false,
// centerPadding: '60px',
slidesToShow: 1,
infinite: false,
dots: true,
});
$('.port_center-list').slick({
centerMode: false,
// centerPadding: '60px',
slidesToShow: 1,
infinite: false,
dots: true,
});
});
</script>
<script type="text/javascript">
$('.option_select').selectpicker({
placeholder: 'Option'
});
$('.garantie_select').selectpicker({
placeholder: 'Garantie',
});
$('.color_select').selectpicker({
placeholder: 'Couleurs',
});
$('.sliders_0').slick({
infinite: false,
slidesToShow: 5,
slidesToScroll: 1,
arrows: true,
// centerMode: true,
variableHeight: true,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 4,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 3,
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 2,
}
}
]
});
$('.sliders_1').slick({
infinite: false,
slidesToShow: 5,
slidesToScroll: 1,
arrows: true,
// centerMode: true,
variableHeight: true,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 4,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 3,
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 2,
}
}
]
});
$('.sliders_2').slick({
infinite: false,
slidesToShow: 5,
slidesToScroll: 1,
arrows: true,
// centerMode: true,
variableHeight: true,
responsive: [
{
breakpoint: 1200,
settings: {
slidesToShow: 4,
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 3,
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 2,
}
}
]
});
(function () {
'use strict';
var init = function () {
var sliderInput1 = new rSlider({
target: '#sliderInput1',
values: ["2 à 4 plcs","5 à 6 plcs", "6 à 8 plcs", "9 plcs et +"],
range: false,
tooltip: true,
scale: false,
labels: true,
step: 0,
set: ["2 à 4 plcs"],
onChange: function (vals) {
// console.log(vals);
}
});
var sliderInput2 = new rSlider({
target: '#sliderInput2',
values: [0+" €",4500+" €", 6500+" €", 8500+" €", 10000+" €", 15000+" €", 20000+" € et +"],
range: true,
tooltip: true,
scale: false,
labels: false,
step: 0,
set: [0+" €", 20000+" € et +"],
onChange: function (vals) {
// console.log(vals);
}
});
};
window.onload = init;
})();
// $("body").click(function () {
// console.log(mySlider.getValue());
// })
</script>