page actualite js
This commit is contained in:
parent
d975cc467f
commit
f15763890c
File diff suppressed because one or more lines are too long
@ -402,6 +402,10 @@ $( document ).ready(function() {
|
|||||||
|
|
||||||
// });
|
// });
|
||||||
|
|
||||||
|
//////////// end slideshow actus home //////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
//////////// start slideshow images home //////////////////////////
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
let diapohome = $('.config_pages--type--diaporama-home .diaporama');
|
let diapohome = $('.config_pages--type--diaporama-home .diaporama');
|
||||||
|
|
||||||
@ -433,13 +437,13 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//////////// end slideshow actus home //////////////////////////
|
//////////// end slideshow images home //////////////////////////
|
||||||
|
|
||||||
|
|
||||||
//////////// start slideshow /actualites //////////////////////////
|
//////////// start slideshow /actualites //////////////////////////
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
// Vérifier si on N'EST PAS sur la page #home
|
// Vérifier si on N'EST PAS sur la page #home
|
||||||
// if (!$("#home").length) {
|
if (!$("#page-node").length) {
|
||||||
let actuview2 = $('.content-wrapper-actu .field_field_images .actu-diaporama');
|
let actuview2 = $('.content-wrapper-actu .field_field_images .actu-diaporama');
|
||||||
|
|
||||||
if (actuview2.length > 0) {
|
if (actuview2.length > 0) {
|
||||||
@ -447,14 +451,14 @@ $(document).ready(function(){
|
|||||||
slidesToShow: 1,
|
slidesToShow: 1,
|
||||||
dots: false,
|
dots: false,
|
||||||
arrows: true,
|
arrows: true,
|
||||||
adaptiveHeight: true,
|
adaptiveHeight: false,
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
responsive: [
|
responsive: [
|
||||||
{
|
{
|
||||||
breakpoint: 810,
|
breakpoint: 810,
|
||||||
settings: {
|
settings: {
|
||||||
slidesToShow: 1,
|
slidesToShow: 1,
|
||||||
adaptiveHeight: true,
|
adaptiveHeight: false,
|
||||||
arrows: true,
|
arrows: true,
|
||||||
draggable: true,
|
draggable: true,
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
@ -463,9 +467,10 @@ $(document).ready(function(){
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
console.log('Slick activé sur les actualités');
|
console.log('Slick activé sur les actualités');
|
||||||
// }
|
console.log('Slick activé sur 1 actu');
|
||||||
|
}
|
||||||
// } else {
|
// } else {
|
||||||
console.log('Slick désactivé sur la page Home');
|
// console.log('Slick désactivé sur la page Home');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user