PageSourceSearch

https://cgventanas.com/wp-content/plugins/trx_addons/components/cpt/portfolio/portfolio.js

js cgventanas.com collected 2026-10-06 20:50:23 UTC 1,193 bytes, 33 lines download raw bytes

1/* global jQuery, TRX_ADDONS_STORAGE */
2
3// Init portfolio gallery
4jQuery( document ).on( 'action.init_hidden_elements', function( e, cont ) {
5
6	"use strict";
7	
8	cont.find( '.sc_portfolio_masonry_wrap,[class*="portfolio_page_gallery_type_masonry_"]').each( function() {
9		var portfolio = jQuery(this);
10		if ( portfolio.parents( 'div:hidden,article:hidden' ).length > 0 ) return;
11		if ( ! portfolio.hasClass( 'inited' ) ) {
12			portfolio.addClass( 'inited' );
13			trx_addons_when_images_loaded( portfolio, function() {
14				setTimeout( function() {
15					portfolio.masonry( {
16						itemSelector: portfolio.hasClass( 'sc_portfolio_masonry_wrap' ) ? '.sc_portfolio_masonry_item' : '.portfolio_page_gallery_item',
17						columnWidth: portfolio.hasClass( 'sc_portfolio_masonry_wrap' ) ? '.sc_portfolio_masonry_item' : '.portfolio_page_gallery_item',
18						percentPosition: true
19					} );
20					// Trigger events after masonry layout is finished
21					setTimeout( function() {
22						jQuery( window ).trigger( 'resize' );
23						jQuery( window ).trigger( 'scroll' );
24					}, 100 );
25				}, 0 );
26			});
27		} else {
28			// Relayout after 
29			//setTimeout( function() { portfolio.masonry(); }, 310 );
30		}
31	});
32
33});

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.