page actualite js

This commit is contained in:
Ouidade Soussi Chiadmi 2025-03-31 10:16:36 +02:00
parent d975cc467f
commit f15763890c
2 changed files with 12 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -402,6 +402,10 @@ $( document ).ready(function() {
// });
//////////// end slideshow actus home //////////////////////////
//////////// start slideshow images home //////////////////////////
$(document).ready(function () {
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 //////////////////////////
$(document).ready(function(){
// 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');
if (actuview2.length > 0) {
@ -447,14 +451,14 @@ $(document).ready(function(){
slidesToShow: 1,
dots: false,
arrows: true,
adaptiveHeight: true,
adaptiveHeight: false,
autoplay: false,
responsive: [
{
breakpoint: 810,
settings: {
slidesToShow: 1,
adaptiveHeight: true,
adaptiveHeight: false,
arrows: true,
draggable: true,
autoplay: false,
@ -463,9 +467,10 @@ $(document).ready(function(){
]
});
console.log('Slick activé sur les actualités');
// }
console.log('Slick activé sur 1 actu');
}
// } else {
console.log('Slick désactivé sur la page Home');
// console.log('Slick désactivé sur la page Home');
}
});