Project – Style 1

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 : ‘fitRows’,
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
Education
Hi-Tech
Housing
Industrial
Offices

Service Express
Education, Housing

Service Express

Lorem ipsum dolor sit amet, mea cu omnium urbanitas, labitur volumus id eum. Ius ignota offendit similique et.

Read more

Sandy High School
Education, Housing

Sandy High School

Aliquip pertinax vix ad, ea eos euismod officiis. Utamur minimum repudiare qui ex. Rationibus theophrastus his ut.

Read more

Science Research & Teaching Center
Education, Offices

Science Research & Teaching Center

Has ne legere tibique. At eam decore probatus. Delenit interesset an mei, ut eos tota vivendo deseruisse.

Read more

Data Centers
Hi-Tech, Industrial

Data Centers

Ne pro quaeque labores liberavisse, sumo hendrerit in nam. No duo dico atomorum, nam dicit consetetur in.

Read more

Millennium Tower
Industrial, Offices

Millennium Tower

Ne sea agam quas, appetere constituto percipitur qui ex. Has ne legere tibique. At eam decore probatus.

Read more

MySalon Suite
Housing, Offices

MySalon Suite

Aperiri admodum voluptaria ut pri, adhuc velit augue in per. Qui te vero tritani, at nibh epicuri voluptaria quo.

Read more
jQuery(document).ready(function ($) {
$(‘.vglacier-portfolio-load-more’).click(function(e) {
e.preventDefault();
var current = $(this),
data = current.data(),
loader = $(“.spinner”)
//calculate a new offset
if ( !data.offset ) {
data.offset = 0;
}
data.offset += data.items;
data.action = ‘vglacier_ajax_portfolio_more’;
$.ajax({
url: “https://mp-costruzioni.com/wp-admin/admin-ajax.php”,
type: “POST”,
data:data,
beforeSend: function()
{
current.hide();
loader.show();
},
success: function(response)
{
if(response.indexOf(“{vglacier_ajax_portfolio_more}”) !== -1) {
//fetch the response. if any php warnings were displayed before rendering of the items the are removed by the string split
var response = response.split(‘{vglacier_ajax_portfolio_more}’),
new_items = $(response.pop()).filter(‘.isotope-item’);
if(new_items.length < data.items) { current.remove(); } var $container = $('.isotope-container-59fb062001ef7'); var $newElems = $(new_items); $newElems.imagesLoaded( function() { $container.isotope('insert', $newElems).fadeIn(); }); } }, error: function() { current.show(); loader.hide(); }, complete: function() { current.show(); loader.hide(); } }); }); }); load more

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *