ajustement carrousel

This commit is contained in:
armansansd
2021-08-28 18:16:14 +02:00
parent 995dfa8ea1
commit b8bf16eaee
5 changed files with 14 additions and 15 deletions

View File

@@ -2,6 +2,8 @@ import 'slick-carousel';
$(function(){
console.log("$ ready !!");
if($(".path-frontpage").length > 0){
$('.last-news').slick({
slidesToShow: 1,
@@ -112,14 +114,19 @@ $(function(){
});
}
if($(this).parents().eq(2).attr("id") == "villes-block_1" ){
//console.log("squik")
$("#home_map_container").fadeIn();
// var map = L.map('leaflet-map-view-villes-block-1');
// map.invalidateSize();
// Drupal.behaviors.leaflet
// console.log("squik", Drupal.behaviors.leaflet.lMap );
}
}
if($('.page-node-type-programme').length > 0){
$(this).parent().find(".views-row").fadeToggle();
}
@@ -159,11 +166,6 @@ $(function(){
let map = $('#villes-block_1').find("#leaflet-map-view-villes-block-1").clone();
$("#home_map_container").empty().append(map);
Drupal.behaviors.leaflet = {
attach: function (context, settings) {
console.log("hello");
}
};
}