jQuery(document).ready(function ($) {
if($.fn.vglacier_iso_sort) {
var $container = $(‘.img-boxes’);
$container.vglacier_iso_sort();
}
});
(function($) {
$.fn.vglacier_iso_sort = function(options) {
return this.each(function() {
var the_body = $(‘body’),
container = $(this),
portfolio_id = container.data(‘portfolio-id’),
filter = container.parent().find(‘.filters[data-portfolio-id=”‘ + portfolio_id + ‘”]’),
imgParent = container.find(‘.object-non-visible’);
function applyIso()
{
container.isotope({
layoutMode : ‘masonry’,
itemSelector : ‘.isotope-item’,
transitionDuration: ‘0.6s’,
filter: “*”
}, function()
{
container.css({overflow:’visible’});
// the_body.trigger(‘av_resize_finished’);
});
// filter items on button click
filter.on(‘click’, ‘ul.nav li a’, function () {
var filterValue = $(this).attr(‘data-filter’);
$(“.filters”).find(“li.active”).removeClass(“active”);
$(this).parent().addClass(“active”);
container.isotope({filter: filterValue});
return false;
});
};
// update columnWidth on window resize
$(window).on( ‘debouncedresize’, function()
{
applyIso();
});
$.vglacier_utilities.preload({container: container, single_callback: function() {
applyIso();
}
});
});
}
})(this.jQuery);
All
Government
Institutional
Government