PageSourceSearch

https://www.alexiaofficial.com/wp-content/themes/rockford/config/m…/photogallery/js/photogallery.js?ver=6.2.2

js alexiaofficial.com collected 2026-10-02 14:08:44 UTC 3,294 bytes, 100 lines download raw bytes

1( function( $ ) {
2	window.thb_photogallery_adjust = function( photogallery_container, old_height, target_photogallery, new_data_url ) {
3		var scroll = photogallery_container.outerHeight() - old_height;
4
5		$.scrollTo( "+=" + scroll + "px", 400, {
6			"easing": "easeInOutQuint",
7			"onAfter": function() {
8				if( ! target_photogallery.find("#thb-infinite-scroll-nav").length ) {
9					$("#thb-infinite-scroll-nav").remove();
10				}
11				else {
12					photogallery_container.attr("data-url", new_data_url);
13				}
14
15				if ( window.thb_photogallery_adjust_callback !== undefined ) {
16					window.thb_photogallery_adjust_callback();
17				}
18			}
19		} );
20	};
21
22	$( document ).on( "ready", function() {
23		var isotopePhotogalleries = $( ".thb-photogallery" ),
24			photosetPhotogalleries = $( /*".thb-photogallery-photoset-grid-container */".thb-photoset-grid" );
25
26		photosetPhotogalleries.each( function( index ) {
27			var photoset = $( this );
28
29			photoset.photosetGrid({
30				gutter: photoset.data( "gutter" ) !== undefined ? photoset.data( "gutter" ) : 0,
31				onComplete: function() {
32					var lightbox = photoset.data( "lightbox" ) !== undefined ? parseInt( photoset.data( "lightbox" ), 10 ) : 1;
33
34					if ( lightbox ) {
35						if ( window.thb_lightbox_handler ) {
36							window.thb_lightbox_handler.init( photoset.find("img"), true );
37						}
38					}
39				}
40			});
41		} );
42
43		isotopePhotogalleries.each( function( index ) {
44			var	photogallery = $( this ),
45				photoset = photogallery.find( ".thb-photoset-grid" ),
46				photogallery_container = photogallery.find( ".thb-photogallery-container" ),
47				hasIsotope = typeof THB_Isotope !== 'undefined',
48				button = photogallery.find( ".thb-infinite-scroll-button" ),
49				photogallery_grid_container = photogallery_container;
50
51			if ( ! photogallery_container.length ) {
52				return;
53			}
54
55			if ( photogallery_container.attr( 'class' ).indexOf( 'thb-grid-images-height-' ) > -1 ) {
56				if ( photogallery_container.hasClass( 'thb-grid-images-height-fixed' ) ) {
57					hasIsotope = false;
58				}
59			}
60
61			if ( photogallery_container.data( 'force-isotope' ) == '1' ) {
62				hasIsotope = true;
63			}
64
65			if ( hasIsotope ) {
66				photogallery_grid_container = new THB_Isotope( photogallery_container );
67			}
68
69			if ( button.length ) {
70				button.on( "click", function() {
71					$.thb.loadUrl(photogallery_container.attr("data-url"), {
72						complete: function( data ) {
73							var target_photogallery = $(data).find( ".thb-photogallery" ).eq( index );
74
75							var items = target_photogallery.find(".thb-photogallery-container .item"),
76								new_data_url = target_photogallery.find(".thb-photogallery-container").data("url"),
77								old_height = photogallery_container.outerHeight();
78
79							if ( hasIsotope ) {
80								photogallery_grid_container.insert( items, function() {
81									window.thb_photogallery_adjust( photogallery_container, old_height, target_photogallery, new_data_url );
82								} );
83							}
84							else {
85								photogallery_grid_container.append( items );
86								window.thb_photogallery_adjust( photogallery_container, old_height, target_photogallery, new_data_url );
87							}
88
89							if ( window.thb_lightbox_handler ) {
90								window.thb_lightbox_handler.init();
91							}
92						}
93					});
94
95					return false;
96				} );
97			}
98		} );
99	} );
100} )( 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.