PageSourceSearch

https://auroravillage.info/wp-content/themes/adomus/js/photoswipe-launch.js?ver=1.5.1.1504209212

js auroravillage.info collected 2026-09-24 18:04:09 UTC 2,898 bytes, 84 lines download raw bytes

1jQuery( document ).ready( function( $ ) {
2	
3	"use strict";
4	
5	var photoswipe_mark_up = '' +
6		'<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">' +
7			'<div class="pswp__bg"></div>' +
8			'<div class="pswp__scroll-wrap">' +
9				'<div class="pswp__container">' +
10					'<div class="pswp__item"></div>' +
11					'<div class="pswp__item"></div>' +
12					'<div class="pswp__item"></div>' +
13				'</div>' +
14				'<div class="pswp__ui pswp__ui--hidden">' +
15					'<div class="pswp__top-bar">' +
16						'<div class="pswp__counter"></div>' +
17						'<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>' +
18						'<button class="pswp__button pswp__button--share" title="Share"></button>' +
19						'<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>' +
20						'<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>' +
21						'<div class="pswp__preloader">' +
22							'<div class="pswp__preloader__icn">' +
23								'<div class="pswp__preloader__cut">' +
24									'<div class="pswp__preloader__donut"></div>' +
25								'</div>' +
26							'</div>' +
27						'</div>' +
28					'</div>' +
29					'<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">' +
30						'<div class="pswp__share-tooltip"></div> ' +
31					'</div>' +
32					'<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"></button>' +
33					'<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"></button>' +
34					'<div class="pswp__caption">' +
35						'<div class="pswp__caption__center"></div>' +
36					'</div>' +
37				'</div>' +
38			'</div>' +
39		'</div>';
40	
41	$( 'body' ).append( photoswipe_mark_up );
42	var pswpElement = $( '.pswp' )[0];
43
44	var options = {
45		bgOpacity: 0.9,
46		showHideOpacity: true,
47		loop: false,
48		shareEl: false
49	};
50
51	$( 'body' ).on( 'click', '.photoswipe-item', function( e ) {
52        e.preventDefault();
53		var $clicked_thumbnail = $( this ),
54            items = [],
55            $items = $clicked_thumbnail.parents( '.gallery-wrapper' ).find( '.photoswipe-item' );
56        if ( $items.length < 1 ) {
57            $items = $clicked_thumbnail;
58            options.index = 0;
59        } else {
60            options.index = $items.index( $clicked_thumbnail );
61        }
62         
63		$items.each( function() {
64			var item = {
65				src: $( this ).attr( 'href' ),
66				w: $( this ).data( 'width' ),
67				h: $( this ).data( 'height' ),
68				title: $( this ).data( 'caption' )
69			};
70			items.push( item );
71		});
72        var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options );
73		$( 'body' ).css( 'overflow', 'hidden' );
74		gallery.init();
75		if ( $( '#wpadminbar' ).length > 0 ) {
76			$( '.pswp' ).css( 'top', '32px' );
77			$( '.pswp__caption' ).css( 'bottom', '32px' );
78		}
79		gallery.listen( 'close', function() { 
80			$( 'body' ).css( 'overflow', 'auto' );
81		});
82	});
83	
84});

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.