var $boxes = $('.loop');
var $container = $('#content_masonry');
$container.imagesLoaded( function() {
$boxes.fadeIn();
$( ".popup-loader" ).hide();
$container.masonry({
itemSelector : '.loop',
columnwidth: 300,
gutter: 23,
isFitWidth: true,
isAnimated: !Modernizr.csstransforms
});
});
});
var msnry = $container.data('masonry');
// init Infinite Scroll
$container.infiniteScroll({
path: '#page-nav a',
append: '.loop',
outlayer: msnry,
history: false
});
// with Masonry & jQuery
// init Masonry
$container.masonry({
itemSelector : '.loop',
columnwidth: 300,
gutter: 23,
isFitWidth: true,
isAnimated: !Modernizr.csstransforms
});
// get Masonry instance
var msnry = $container.data('masonry');
// init Infinite Scroll
$container.infiniteScroll({
path: '#page-nav a'
append: '.loop',
outlayer: msnry,
});
display: none
. Или нет?! $(this'#support nav a').addClass('active').siblings().removeClass('active');
$('#support nav a[data-id="' + tab + '"]').addClass('active').siblings().removeClass('active');
function showNextSlide() {
var $activeslide = $('#support .slide.active');
var $nextslide = $activeslide.next();
if ($nextslide.length == 0) {
$nextslide = $('#support .slide').first();
}
var tab =$nextslide.data('id');
$('#support .nav a[data-id="' + tab + '"]').addClass('active').siblings().removeClass('active');
$activeslide.removeClass('active');
$nextslide.addClass('active');
}
function upTo(el, class) {
while (el && el.parentNode) {
el = el.parentNode;
if (el.className && el.className.indexof(class) > -1) {
return el;
}
}
return null;
}
var parent = upTo(element, 'product');