PageSourceSearch

https://www.caritas.es/main-files/themes/101wp/modules/image/image-build.js?ver=1.0.0

js caritas.es collected 2026-10-01 10:35:04 UTC 1,367 bytes, 56 lines download raw bytes

1(function ($) {
2
3    'use strict';
4
5    var Image = function() {
6
7        var instances = [];
8
9        function onReady() {
10            $('.module.image').each(function () {
11                instances.push(initInstance($(this)));
12            });
13        }
14
15        function initInstance() {
16
17            // Private properties
18            // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
19            var $window = $(window),
20                scroll,
21                yPos,
22                position;
23
24            function adjustPosition() {
25                $('div.module-image-container-wrapper').each(function() {
26                    scroll = $(this);
27
28                    $(window).scroll(function() {
29                        yPos = -($window.scrollTop() / scroll.data('speed'));
30                        position = '50% ' + yPos + 'px';
31                        scroll.css({ backgroundPosition: position });
32                    });
33                }); 
34            };
35            
36            var instance = {
37                init: function () {
38
39                    adjustPosition();
40        
41                }
42            };
43
44            instance.init();
45            return instance;
46        }
47
48        // DOMContentLoaded
49        Events.subscribe('WINDOW_LOADED', function () {});
50        $(onReady);
51    }
52
53    Image();
54
55
56})(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.