PageSourceSearch

https://www.arktos.be/global/js/magnific-popup/mfp.js

js arktos.be collected 2026-09-24 10:37:55 UTC 3,482 bytes, 112 lines download raw bytes

1/* Magnific-Popup */
2//readme: dimsemenov.com/plugins/magnific-popup/documentation.html
3
4$('[data-popup="imagelist"][href^="/"],[data-popup="oneimage"][href^="/"],[data-popup="oneimage"][href*="uitdatabank.be"]').magnificPopup({
5    type: 'image',
6    gallery: {
7        enabled: true,
8    }, image: {
9        titleSrc: function (item) {
10            return magnificPopupTitle(item);
11        }
12    },
13    callbacks: {
14        markupParse: function (template, values, item) {
15            magnificPopupCheckAlt(item);
16        }
17    }
18});
19
20$(document).on('click', '[data-popup="showall"]', function (e) {
21    e.preventDefault();
22    $('a[data-popup="imagelist"][href^="/"],[data-popup="oneimage"][href^="/"],[data-popup="oneimage"][href*="uitdatabank.be"]').magnificPopup('open');
23});
24
25$('[data-popup*="shadowbox"]').magnificPopup({
26    type: 'iframe',
27    iframe: {
28        markup:
29            '<div class="mfp-iframe-scaler">' +
30            '<div class="mfp-close"></div>' +
31            '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>' +
32            '</div>',
33        patterns: null,
34        srcAction: 'iframe_src',
35    },
36});
37function magnificPopupCheckAlt(item) {
38    var alt = $(item.img).attr('alt');
39    if (!alt) {
40        var fallbackAltByLang = {
41            nl: 'vergroot foto',
42            fr: 'agrandir la photo',
43            de: 'Foto vergrößern',
44            en: 'enlarge photo'
45        };
46        alt = fallbackAltByLang[lang] || fallbackAltByLang.nl;
47    }
48    var t = $('[data-large-view-text]').attr('data-large-view-text');
49    if (typeof (t) !== 'undefined') {
50        alt = alt.replace(t, '').trim();
51    }
52
53    $(item.img).attr('alt', alt);
54}
55function magnificPopupTitle(item) {
56    var title = item.el.next().find('.photo__title');
57    var copyright = item.el.next().find('.copyright__name');
58
59    if (title.length == 0) {
60        title = item.el.find('span.title');
61    }
62    var info = '';
63    if (title.length > 0) {
64        info = '<span>' + title.text() + '</span>';
65    }
66    if (copyright.length > 0) {
67        info += '<span>&copy; ' + copyright.text() + '</span>';
68    }
69    return info;
70}
71var lang = $('html').attr('lang').split('-')[0];
72if (lang === 'nl') {
73    $.extend(true, $.magnificPopup.defaults, {
74        tClose: 'Sluiten (Esc)',
75        tLoading: 'Laden...',
76        gallery: {
77            tPrev: 'Vorige (Pijl toets links)',
78            tNext: 'Next (Pijl toets rechts)',
79            tCounter: '%curr% van %total%',
80        },
81    });
82} else if (lang === 'fr') {
83    $.extend(true, $.magnificPopup.defaults, {
84        tClose: 'Fermez (Esc)',
85        tLoading: 'Charge...',
86        gallery: {
87            tPrev: 'précédent (Touche fléchée gauche)',
88            tNext: 'suivante (Touche fléchée droite)',
89            tCounter: '%curr% de %total%',
90        },
91    });
92} else if (lang === 'de') {
93    $.extend(true, $.magnificPopup.defaults, {
94        tClose: 'Schließen (Esc)',
95        tLoading: 'Wird geladen...',
96        gallery: {
97            tPrev: 'Zurück (linke Pfeiltaste)',
98            tNext: 'Weiter (rechte Pfeiltaste)',
99            tCounter: '%curr% von %total%',
100        },
101    });
102} else if (lang === 'en') {
103    $.extend(true, $.magnificPopup.defaults, {
104        tClose: 'Close (Esc)',
105        tLoading: 'Loading...',
106        gallery: {
107            tPrev: 'Previous (Left arrow key)',
108            tNext: 'Next (Right arrow key)',
109            tCounter: '%curr% of %total%',
110        },
111    });
112}

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.