PageSourceSearch

https://gobrides.org/wp-content/plugins/cpm-extra-features/templat…/style-2/script.js?ver=3.7.4

js gobrides.org collected 2026-10-10 02:35:30 UTC 1,680 bytes, 55 lines download raw bytes

1(function($) {
2    function initialiseSlider(sliderNode) {
3        const sliderObject = $(sliderNode),
4            parentBlock = sliderObject.closest('.cpm-success-stories');
5
6        let storiesSlider = tns({
7            container: sliderObject.get(0),
8            gutter: 15,
9            items: 1,
10            slideBy: 1,
11            loop: false,
12            mouseDrag: true,
13            autoHeight: true,
14            nav: true,
15            navContainer: parentBlock
16                .find('.success-stories-slider-nav')
17                .get(0),
18            controls: true,
19            controlsContainer: parentBlock
20                .find('.success-stories-slider-controls')
21                .get(0),
22            responsive: {
23                768: {
24                    items: 2,
25                    autoHeight: true
26                }
27            },
28        });
29
30        storiesSlider.events.on('transitionStart', (info) => {
31            parentBlock
32                .find('.success-stories-slider-nav .item')
33                .eq(info.index)
34                .addClass('tns-nav-active')
35                .siblings()
36                .removeClass('tns-nav-active');
37        });
38    }
39
40    if (window.acf) {
41        window.acf.addAction('render_block_preview/type=cpm-success-stories', (block) => {
42            const slider = block.find('.success-stories-2');
43
44            if (slider.length) {
45                initialiseSlider(slider);
46            }
47        });
48    } else {
49        $(window).on('load', () => {
50            document.querySelectorAll('.success-stories-2').forEach(sli
50derNode => {
51                initialiseSlider(sliderNode);
52            })
53        });
54    }
55})(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.