Galerie photos_Saint-Aunès aujourd'hui_ (2)
.jweb-portfolio-items-margin{
margin-left:-0; margin-right:-0;}
!function($){
$(document).ready(function(){
var $container = $('#jweb-portfolio-items-199');
// layout Isotope after each image loads
$container.imagesLoaded().progress( function() {
$container.isotope({
// options
itemSelector : '.jweb-item',
layoutMode : 'masonry'
});
var imgLoad = imagesLoaded( $container );
imgLoad.on( 'always', function( instance ) {
console.log('all images are loaded');
});
});
// bind filter button click
$('.jweb-portfolio-filters').on( 'click', 'a', function() {
var filterValue = jQuery( this ).attr('data-option-value');
$container.isotope({ filter: filterValue });
});
// filter class
$("ul#filter>li a:first").addClass('active');
$('.jweb-portfolio-filters li a').on('click', function (e) {
e.preventDefault();
$('.jweb-portfolio-filters li a.active').removeClass('active');
$(this).addClass('active');
});
// magfinic popup
$('.open-popup-link').magnificPopup({
gallery: {
enabled: true, // set to true to enable gallery
preload: [0,2], // read about this option in next Lazy-loading section
navigateByImgClick: true,
arrowMarkup: '', // markup of an arrow button
tPrev: 'Previous (Left arrow key)', // title for left button
tNext: 'Next (Right arrow key)', // title for right button
tCounter: '%curr% of %total%' // markup of counter
},
image: {
// options for image content type
titleSrc: 'title'
},
type:'inline',
alignTop:false,
closeBtnInside:true,
midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href.
});
});
}(jQuery);