PageSourceSearch

https://www.legends953.com/wp-content/plugins/wpb-super-gallery/public/inc/js/image-gallery.js

js legends953.com collected 2026-09-26 18:40:21 UTC 1,774 bytes, 56 lines download raw bytes

1(function($){	
2	$(document).ready(function(){
3		$.noConflict();
4		var galleryItems = [];
5		$(".wpb-gallery figure a.wpbg-thumbnail").each(function(i, el){
6			var aEl = $(el);
7			var aHref = aEl.data('imgsrc');
8			var size = aEl.data('size').split('x');
9			
10			galleryItems.push({
11				src: aHref,
12				w: size[0],
13				h: size[1],
14				title: aEl.data('caption'),
15			});
16
17			 $(this).attr('data-uid', i);
18		});
19
20		/* $(".wpb-gallery").on('click', 'figure a.wpbg-thumbnail', function(e){
21			e.preventDefault();
22
23			var pswpElement = document.querySelectorAll('.pswp')[0];
24
25			// grab the ID of this element, use it to retrieve index of corresponding element in wpb-gallery-hidden
26	        var index = $(this).data('uid');
27	        var options = {
28	            index: index,
29	            bgOpacity: 0.75,
30	            showHideOpacity: true,
31	            zoomEl: false,
32	            tapToToggleControls: false,
33				shareButtons: [
34				    {id:'facebook', label:'Share on Facebook', url:'https://www.facebook.com/sharer/sharer.php?u='+$(this).data('imgsrc')},
35				    {id:'twitter', label:'Tweet', url:'https://twitter.com/intent/tweet?text={{text}}&url='+$(this).data('imgsrc')},
36				],	            
37	        };
38
39	        var lightBox = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, galleryItems, options);
40	        lightBox.init();
41		}); */
42		$("body").on("click", "a[rel^='prettyPhoto']", function() {
43			$(".wpb-gallery a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',slideshow:3000,show_title: false,});
44			return false;
45		});
46		$(".wpb-gallery a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',slideshow:3000,show_title: false,});
47		// if( wpobj.is_user_logged_in ){
48		// 	$(".pswp__top-bar").css('top', '32px');
49		// }
50
51			
52
53		
54
55	});
56})(jQuery);

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.