PageSourceSearch

https://lyndabryans.uk/wp-content/themes/unfinityplus/assets/js/ct-carousel.js?ver=1.3.4

js lyndabryans.uk collected 2026-10-02 02:11:29 UTC 3,472 bytes, 79 lines download raw bytes

1(function($) {
2    "use strict";
3
4    $(document).ready(function () {
5
6        $('.owl-carousel').each(function() {
7            var _this = $(this);
8            var data = {
9                navText : ['<i class="zmdi zmdi-chevron-left"></i></i>','<i class="zmdi zmdi-chevron-right"></i>'],
10                responsive:{
11                    0:{
12                        items:parseInt($(this).attr('data-item-xs')),
13                    },
14                    768:{
15                        items:parseInt($(this).attr('data-item-sm')),
16                    },
17                    992:{
18                        items:parseInt($(this).attr('data-item-md')),
19                    },
20                    1200:{
21                        items:parseInt($(this).attr('data-item-lg')),
22                        stagePadding  :parseInt($(this).attr('data-stagepadding')),
23                    }
24                }
25            };
26            if(typeof _this.attr('data-loop') !== 'undefined') {
27                data.loop = _this.attr('data-loop') == 'true' ? true : false;
28            }
29            if(typeof _this.attr('data-autoplay') !== 'undefined') {
30                data.autoplay = _this.attr('data-autoplay') == 'true' ? true : false;
31            }
32            if(typeof _this.attr('data-bullets') !== 'undefined') {
33                data.dots = _this.attr('data-bullets') == 'true' ? true : false;
34            }
35            if(typeof _this.attr('data-dotscontainer') !== 'undefined') {
36                data.dotsContainer = _this.attr('data-dotscontainer') == 'true' ? _this.parent().find('.slider-nav .thumbs') : '';
37            }
38            if(typeof _this.attr('data-center') !== 'undefined') {
39                data.center = _this.attr('data-center') == 'true' ? true : false;
40            }
41            if(typeof _this.attr('data-arrows') !== 'undefined') {
42                data.nav = _this.attr('data-arrows') == 'true' ? true : false;
43            }
44            if(typeof _this.attr('data-rtl') !== 'undefined') {
45                data.rtl = _this.attr('data-rtl') == 'true' ? true : false;
46            }
47            if(typeof _this.attr('data-margin') !== 'undefined') {
48                data.margin = parseInt(_this.attr('data-margin'));
49            }
50            if(typeof _this.attr('data-autoplaytimeout') !== 'undefined') {
51                data.autoplayTimeout = parseInt(_this.attr('data-autoplaytimeout'));
52            }
53            if(typeof _this.attr('data-smartspeed') !== 'undefined') {
54                data.smartSpeed = parseInt(_this.attr('data-smartspeed'));
55            }
56            
57            var owl = _this.owlCarousel(data);
58            var owlAnimateFilter = function(even) {
59                $(this)
60                .addClass('item-loading')
61                .delay(70 * $(this).parent().index())
62                .queue(function() {
63                    $(this).dequeue().removeClass('item-loading');
64                });
65            };
66
67            _this.parent().find('.ct-carousel-filter').on('click', '.ct-filter-item', function(e) {
68                var filter_data = $(this).attr('data-filter');
69                if($(this).hasClass('ct-filter-active')) return;
70                $(this).addClass('ct-filter-active').siblings().removeClass('ct-filter-active');
71                owl.owlFilter(filter_data, function(_owl) {
72                    $(_owl).find('.ct-item').each(owlAnimateFilter);
73                });
74            });
75
76        });
77
78    });
79}(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.