PageSourceSearch

https://gameinformer.com/themes/custom/gi5/js/components/image-lightbox.js?21090100f837

js gameinformer.com collected 2026-09-24 15:18:00 UTC 997 bytes, 32 lines download raw bytes

1(function (Drupal, once, window) {
2  "use strict";
3
4  Drupal.behaviors.gi5ImageLightbox = {
5    attach: function (context) {
6      once("gi5-image-lightbox", "a[data-gi5-lightbox]", context).forEach(function (link) {
7        link.addEventListener("click", function (event) {
8          var image = link.querySelector("img");
9          if (!image || !window.gi5PhotoSwipe) {
10            return;
11          }
12
13          event.preventDefault();
14          window.gi5PhotoSwipe.open(
15            [
16              {
17                src: link.href,
18                msrc: image.currentSrc || image.src,
19                width: Number(image.getAttribute("width")) || image.naturalWidth || 1600,
20                height: Number(image.getAttribute("height")) || image.naturalHeight || 900,
21                alt: image.alt || "",
22              },
23            ],
24            0,
25            null,
26            { correctNaturalDimensions: true }
27          );
28        });
29      });
30    },
31  };
32})(Drupal, once, window);

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.