PageSourceSearch

https://ampmetropole.fr/wp-content/plugins/mamp-elementor-widgets/…/public/lib/js/app.js?ver=2.24.0

js ampmetropole.fr collected 2026-09-24 09:18:08 UTC 4,780 bytes, 103 lines download raw bytes

1jQuery(document).ready(function () {
2    jQuery('#en-un-clic-more').click(function(){
3        var hiddenIcons = jQuery('.en-un-clic-hidden');
4        var visibleIcons = jQuery('.en-un-clic-visible');
5        let clicMore = jQuery('#en-un-clic-more').find('svg');
6
7        visibleIcons.addClass('en-un-clic-hidden');
8        hiddenIcons.addClass('en-un-clic-visible');
9
10        hiddenIcons.removeClass('en-un-clic-hidden');
11        visibleIcons.removeClass('en-un-clic-visible');
12
13        if (clicMore.css('transform') == 'matrix(1, 0, 0, 1, 0, 0)' || clicMore.css('transform') == 'none') {
14            clicMore.css('transform','rotate(180deg)');
15        } else {
16            clicMore.css('transform','rotate(0deg)');
17        }
18    })
19});
20
21function initCarouselHome() {
22    jQuery(".slider").on('change.owl.carousel', function(event) {
23        changeImgHomeBannerAuto();
24    })
25
26    jQuery(".slider").on("initialized.owl.carousel changed.owl.carousel", function (e) {
27
28        jQuery("#counterActiveItem").text(
29            e.relatedTarget.relative(e.item.index) + 1
30        );
31        jQuery("#counterTotalItems").text(
32            e.item.count
33        );
34    }).owlCarousel({
35        autoHeight: false,
36        stagePadding: 0,
37        items: 1,
38        loop: true,
39        nav: true,
40        touchDrag: false,
41        mouseDrag: false,
42        dots: false,
43        navText: [
44            '<img src="/wp-content/plugins/mamp-elementor-widgets/mamp-carousel-home/public/lib/images/fleche.svg" alt="">',
45            '<img src="/wp-content/plugins/mamp-elementor-widgets/mamp-carousel-home/public/lib/images/fleche.svg" alt="">'
46        ],
47        autoplay:true,
48        autoplayTimeout:6000,
49        autoplaySpeed:2000,
50        autoplayHoverPause:true,
51    }).trigger("stop.owl.autoplay")
52        .trigger("play.owl.autoplay");
53
54    /** SYNCHRONIZE BACKGROUND IMAGE */
55    changeImgHomeBanner();
56
57    jQuery('.owl-prev').hide();
58    jQuery('.owl-next').hide();
59    jQuery('#image-home-banner').prepend('<span style="width: 1px"><div class="handle-owl-prev"><svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
60        '<rect width="48" height="48" transform="matrix(-1 0 0 -1 48 48)" fill="#0D1D2D" fill-opacity="0.75"/>\n' +
61        '<path d="M37.5 25.5C38.3284 25.5 39 24.8284 39 24C39 23.1716 38.3284 22.5 37.5 22.5V25.5ZM9.43934 22.9393C8.85355 23.5251 8.85355 24.4749 9.43934 25.0607L18.9853 34.6066C19.5711 35.1924 20.5208 35.1924 21.1066 34.6066C21.6924 34.0208 21.6924 33.0711 21.1066 32.4853L12.6213 24L21.1066 15.5147C21.6924 14.9289 21.6924 13.9792 21.1066 13.3934C20.5208 12.8076 19.5711 12.8076 18.9853 13.3934L9.43934 22.9393ZM37.5 22.5L10.5 22.5V25.5L37.5 25.5V22.5Z" fill="white"/>\n' +
62        '</svg></div></span>');
63    jQuery('#image-home-banner').append('<span style="width: 1px"><div class="handle-owl-next"><svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
64        '<rect width="48" height="48" fill="#0D1D2D" fill-opacity="0.75"/>\n' +
65        '<path d="M10.5 22.5C9.67157 22.5 9 23.1716 9 24C9 24.8284 9.67157 25.5 10.5 25.5V22.5ZM38.5607 25.0607C39.1464 24.4749 39.1464 23.5251 38.5607 22.9393L29.0147 13.3934C28.4289 12.8076 27.4792 12.8076 26.8934 13.3934C26.3076 13.9792 26.3076 14.9289 26.8934 15.5147L35.3787 24L26.8934 32.4853C26.3076 33.0711 26.3076 34.0208 26.8934 34.6066C27.4792 35.1924 28.4289 35.1924 29.0147 34.6066L38.5607 25.0607ZM10.5 25.5H37.5V22.5H10.5V25.5Z" fill="white"/>\n' +
66        '</svg></div></span>');
67    jQuery('.handle-owl-prev').click(function() {
68        jQuery('.owl-prev').click();
69    });
70    jQuery('.handle-owl-next').click(function() {
71        jQuery('.owl-next').click();
72    });
73    jQuery('.owl-prev').click(function () {
74        changeImgHomeBanner();
75    });
76    jQuery(".owl-next").click(function () {
77        changeImgHomeBanner();
78    });
79
80    function changeImgHomeBanner() {
81        var imagePostHomeBanner = jQuery('.owl-item.active #image-post-home-banner img').attr('src');
82        setImgHomeSrc(imagePostHomeBanner);
83    }
84
85    /**
86     * Permet de récupperer l'url de l'image du post pour le bandeau de l'accueil
87     */
88    function changeImgHomeBannerAuto() {
89        let item = jQuery('.owl-item.active').next();
90        var imagePostHomeBanner = item.find('#image-post-home-banner img').attr('src');
91        setImgHomeSrc(imagePostHomeBanner);
92    }
93
94    /**
95     * Permet d'utiliser l'url de l'image du post pour le bandeau de l'accueil
96     *
97     * @param imagePostHomeBanner
98     */
99    function setImgHomeSrc(imagePostHomeBanner) {
100        jQuery('#image-home-banner img').attr('src', imagePostHomeBanner);
101        jQuery('#image-home-banner img').attr('srcset', imagePostHomeBanner);
102    }
103}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.