Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
212
/
task
/
212
/
root
/
srv
/
data
/
web
/
vhosts
/
www.impressionrapide.fr
/
htdocs
/
assets
/
js
/
front
/
//proc/212/task/212/root/srv/data/web/vhosts/www.impressionrapide.fr/htdocs/assets/js/front/app.js
/* * Welcome to your app's main JavaScript file! * * We recommend including the built version of this JavaScript file * (and its CSS file) in your base layout (base.html.twig). */ // any CSS you import will output into a single css file (app.css in this case) import '../../css/front/app.scss'; // start the Stimulus application import '../../bootstrap'; const $ = require('jquery'); require("bootstrap"); require("owl.carousel/dist/owl.carousel"); require("animate.css") addEventListener("DOMContentLoaded", () => { $(".owl-carousel").owlCarousel({ autoplay: true, autoplayTimeout: 6000, smartSpeed: 1000, nav: false, pager: true, rewind: true, items: 1, animateIn: "zoomIn", animateOut: "zoomOut" }) }) let closables = document.getElementsByClassName("closable"); let fullHeight = []; let closedHeight = []; let opened = []; for (let i = 0; i < closables.length; i++) { fullHeight[i] = closables[i].getBoundingClientRect().height; let closableY = closables[i].getBoundingClientRect().y; let endElem = document.getElementById(closables[i].getAttribute("data-closed-height")); let endElemY = endElem.getBoundingClientRect().y + endElem.getBoundingClientRect().height + 30; closedHeight[i] = endElemY - closableY; closables[i].style.height = closedHeight[i] + "px"; opened[i] = false; let toggle = closables[i].querySelector(".closable-toggle"); toggle.addEventListener("click", () => { if (opened[i]) { closables[i].style.height = closedHeight[i] + "px"; toggle.innerText = "Voir plus"; opened[i] = false; closables[i].classList.remove("open"); } else { closables[i].style.height = fullHeight[i] + "px"; toggle.innerText = "Voir moins"; opened[i] = true; closables[i].classList.add("open"); } }) }