ajustement carrousel
This commit is contained in:
@@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user