PageSourceSearch

https://www.famillesrurales.org/themes/fr_multisites/js/carousel.js?tlvj0i

js famillesrurales.org collected 2026-10-02 05:30:54 UTC 1,436 bytes, 52 lines download raw bytes

1jQuery(document).ready(function($) {
2    "use strict";
3
4    enableOwlCarousel();
5
6    function enableOwlCarousel() {
7
8        jQuery('.owl-carousel').each(function() {
9
10            /* Number Of Items */
11            var max_items = jQuery(this).attr('data-max-items');
12            var tablet_items = max_items;
13            if (max_items > 1) {
14                tablet_items = max_items - 1;
15            }
16            var mobile_items = 1;
17
18            var parent = $(this).parents('.view-custom-carousel');
19
20            /* Initialize */
21            // if (parent.hasClass('.fr-carousel-homepage')) {
22                jQuery(this).owlCarousel({
23                    items: max_items,
24                    pagination: false,
25                    itemsDesktop: [1600, max_items],
26                    itemsDesktopSmall: [1170, max_items],
27                    itemsTablet: [991, tablet_items],
28                    itemsMobile: [767, mobile_items],
29                    slideSpeed: 400
30                });
31            // }
32
33
34
35            var owl = jQuery(this).data('owlCarousel');
36
37            // Left Arrow
38            jQuery(this).parent().find('.carousel-arrows span.left-arrow').click(function(e) {
39                owl.prev();
40            });
41
42            // Right Arrow
43            jQuery(this).parent().find('.carousel-arrows span.right-arrow').click(function(e) {
44                owl.next();
45            });
46
47        });
48
49
50    }
51
52}(jQuery));

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.