PageSourceSearch

https://www.onroerenderfgoed.be/modules/contrib/photoswipe/js/prepare-galleries.js?tlvnhz

js onroerenderfgoed.be collected 2026-10-01 10:43:12 UTC 619 bytes, 21 lines download raw bytes

1(function (Drupal) {
2  /**
3   * Adds wrapper for images without it.
4   *
5   * @type {Drupal~behavior}
6   */
7  Drupal.behaviors.photoswipePrepareGalleries = {
8    /**
9     * Ensures all photoswipe photos are inside an photoswipe-gallery wrapper.
10     */
11    attach(context) {
12      once('photoswipePrepareGalleries', 'a.photoswipe', context).forEach(
13        (element) => {
14          if (!element.closest('.photoswipe-gallery')) {
15            element.outerHTML = `<span class="photoswipe-gallery photoswipe-gallery--fallback-wrapper">${element.outerHTML}</span>`;
16          }
17        },
18      );
19    },
20  };
21})(Drupal);

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.