PageSourceSearch

https://www.ammersbek.de/wp-content/plugins/wp-media-folder/assets…/single_image_lightbox.js?ver=6.2.3

js ammersbek.de collected 2026-10-02 21:33:15 UTC 2,624 bytes, 59 lines download raw bytes

1(function ($) {
2    $(document).ready(function () {
3        if (jQuery().magnificPopup) {
4            /* open lightbox when click to image */
5            if ($('.wpmf_image_lightbox, .open-lightbox-feature-image').length) {
6                $('.wpmf_image_lightbox, .open-lightbox-feature-image').magnificPopup({
7                    gallery: {
8                        enabled: true,
9                        tCounter: '<span class="mfp-counter">%curr% / %total%</span>',
10                        arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>' // markup of an arrow button
11                    },
12                    callbacks: {
13                        elementParse: function (q) {
14                            if (q.el.closest('a').length) {
15                                q.src = q.el.closest('a').attr('href');
16                            } else {
17                                q.src = q.el.attr('src');
18                            }
19                        }
20                    },
21                    type: 'image',
22                    showCloseBtn: false,
23                    image: {
24                        titleSrc: 'title'
25                    }
26                });
27            }
28
29            /* open lightbox when click to image */
30            $('body a').each(function(i,v){
31                if($(v).find('img[data-wpmflightbox="1"]').length !== 0){
32                    $(v).magnificPopup({
33                        delegate: 'img',
34                        gallery: {
35                            enabled: true,
36                            tCounter: '<span class="mfp-counter">%curr% / %total%</span>',
37                            arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>' // markup of an arrow button
38                        },
39                        callbacks: {
40                            elementParse: function(q) { 
41                                var wpmf_lightbox = q.el.data('wpmf_image_lightbox');
42                                if(typeof wpmf_lightbox === "undefined"){
43                                    q.src = q.el.attr('src'); 
44                                }else{
45                                    q.src = wpmf_lightbox; 
46                                }
47                            }
48                        },
49                        type: 'image',
50                        showCloseBtn : false,
51                        image: {
52                            titleSrc: 'title'
53                        }
54                    });
55                }
56            });
57        }
58    });
59})(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.