PageSourceSearch

https://www.gpp.pt/templates/shaper_newedge/js/addon.lp_slider.js

js gpp.pt collected 2026-10-02 04:09:20 UTC 2,448 bytes, 84 lines download raw bytes

1/**
2 * @package Helix3 Framework
3 * @author JoomShaper http://www.joomshaper.com
4 * @copyright Copyright (c) 2010 - 2015 JoomShaper
5 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
6 */
7
8jQuery(document).ready(function($) {
9    'use strict';
10
11    // Full width Slideshow
12    var $slideArtLeading = $('#slide-art-leading');
13
14    $slideArtLeading.owlCarousel({
15        center: true,
16        loop: true,
17        margin: 0,
18        autoplay: true,
19        animateIn: 'fadeIn',
20        animateOut: 'fadeOut',
21        autoWidth: false,
22        items: 1,
23        singleItem: true,
24        dots: true,
25    });
26
27
28    $('.sppbArtSlidePrev').click(function() {
29        $slideArtLeading.trigger('prev.owl.carousel', [400]);
30    });
31
32    $('.sppbArtSlideNext').click(function() {
33        $slideArtLeading.trigger('next.owl.carousel', [400]);
34    });
35
36    var observer = new MutationObserver(function(mutations) {
37        mutations.forEach(function(mutation) {
38            var newNodes = mutation.addedNodes;
39            if (newNodes !== null) {
40                var $nodes = $(newNodes);
41
42                $nodes.each(function() {
43                    var $node = $(this);
44                    $node.find('#slide-art-leading').each(function() {
45
46                        var $slideArtLeading = $(this);
47
48                        $slideArtLeading.owlCarousel({
49                            center: true,
50                            loop: true,
51                            margin: 0,
52                            autoplay: true,
53                            animateIn: 'fadeIn',
54                            animateOut: 'fadeOut',
55                            autoWidth: false,
56                            items: 1,
57                            singleItem: true,
58                            dots: true,
59                        });
60
61
62                        $('.sppbArtSlidePrev').click(function() {
63                            $slideArtLeading.trigger('prev.owl.carousel', [400]);
64                        });
65
66                        $('.sppbArtSlideNext').click(function() {
67                            $slideArtLeading.trigger('next.owl.carousel', [400]);
68                        });
69
70                    });
71                });
72            }
73        });
74    });
75
76    var config = {
77        childList: true,
78        subtree: true
79    };
80
81    // Pass in the target node, as well as the observer options
82    observer.observe(document.body, config);
83
84});

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.