PageSourceSearch

https://asset.siu.edu/_files/js/Gallery.js

js siu.edu collected 2026-10-01 08:40:41 UTC 3,434 bytes, 29 lines download raw bytes

1/*
2  @preserve
3  Don't mess with this file -- it's automatically generated.
4*/(function(){"use strict";/*
5  @preserve
6  Don't mess with this file -- it's automatically generated.
7*/window.IS_STORYBOOK||(()=>{const a=()=>{window.jQuery(document).ready(()=>{const a=window.jQuery("[data-mfp-image-gallery]"),b=("inert"in HTMLElement.prototype),c=new Set;a.each(function(){window.jQuery(this).magnificPopup({delegate:"a",type:"image",mainClass:"mfp-fade",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!1,preload:!1},image:{tError:`<a href="%url%">The image #%curr%</a> could not be loaded.`,verticalFit:!1,titleSrc:({el:a})=>jQuery(a).attr("data-caption"),markup:`
8              <div class="mfp-figure">
9                <div class="mfp-close"></div>
10                <h2 class="mfp-heading sr-only" tabindex="-1">Viewing item <span class="mfp-counter"></span></h2>
11                <div class="mfp-img"></div>
12                <div class="mfp-bottom-bar">
13                  <div class="mfp-title"></div>
14                  <div class="mfp-counter" aria-hidden="true"></div>
15                </div>
16              </div>
17            `},closeMarkup:`
18            <button
19              type="button"
20              class="mfp-close"
21              aria-label="Close modal"
22            ><span aria-hidden="true" class="pointer-events-none">&#215;</span></button>
23          `,arrowMarkup:`
24            <button
25              type="button"
26              class="mfp-arrow mfp-arrow-%dir%"
27              aria-label="%title%"
28            ></button>
29          `,callbacks:{elementParse(a){a.type="image",a.tLoading="Loading image #%curr%...",a.mainClass="image-gallery__popup-launcher",a.image={tError:`<a href="%url%">The image #%curr%</a> could not be loaded.`}},beforeOpen(){jQuery("body").addClass("mfp-active")},beforeClose(){jQuery("body").removeClass("mfp-active")},open(){const[a]=this.wrap;if(a){a.setAttribute("role","dialog"),a.setAttribute("aria-modal","true"),a.setAttribute("aria-label","Gallery lightbox");for(const d of document.body.children)d!==a&&d instanceof HTMLElement&&(d.hasAttribute("aria-hidden")&&(d.dataset.tempAriaHidden=d.getAttribute("aria-hidden")||""),b&&d.inert&&(d.dataset.tempInert="true"),d.setAttribute("aria-hidden","true"),b&&(d.inert=!0),c.add(d))}},close(){for(const a of c){const{tempAriaHidden:c,tempInert:d}=a.dataset;c?(a.setAttribute("aria-hidden",c),delete a.dataset.tempAriaHidden):a.removeAttribute("aria-hidden"),b&&(d?delete a.dataset.tempInert:a.inert=!1)}c.clear()},imageLoadComplete(){const a=document.querySelector(".mfp-heading");a instanceof HTMLHeadingElement&&a.focus()}}})});const d=document.querySelector("[data-gallery-description]");d&&(d.id="mfp-gallery-description");const e=document.querySelector("[data-gallery-item-description]");e&&(e.id="mfp-gallery-item-description"),a.each((a,b)=>{d&&d.id&&b.setAttribute("aria-describedby",d.id);const c=b.querySelectorAll("[data-mfp-image-gallery-delegate]");
29c.forEach(a=>a instanceof HTMLAnchorElement?void(a.setAttribute("role","button"),e&&e.id&&a.setAttribute("aria-describedby",e.id)):void console.error("A `[data-mfp-image-gallery-delegate]` is not an anchor element but must be."))})})};if(window.jQuery.magnificPopup)a();else{const b=document.createElement("script");b.src="//cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js",b.onload=a,document.head.appendChild(b)}})()})();

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.