index general, fixe #541

This commit is contained in:
2019-11-13 13:21:37 +01:00
parent 28f4ba143a
commit b72c6da623
19 changed files with 443 additions and 136 deletions
@@ -1940,32 +1940,32 @@
}
}
function initHome(){
addCloseModalBtnToCols();
return;
console.log('theme : initHome');
var $grid = $('.grid',_$row).masonry({
itemSelector:'.col',
columnWidth:'.col-2',
horizontalOrder: true,
containerStyle: null,
// disable initial layout
// initLayout: false,
});
// bind event
// $grid.masonry( 'on', 'layoutComplete', function() {
// console.log('layout is complete');
// function initHome(){
// addCloseModalBtnToCols();
// return;
// console.log('theme : initHome');
// var $grid = $('.grid',_$row).masonry({
// itemSelector:'.col',
// columnWidth:'.col-2',
// horizontalOrder: true,
// containerStyle: null,
// // disable initial layout
// // initLayout: false,
// });
// layout Masonry after each image loads
$grid.imagesLoaded().progress( function() {
$grid.masonry('layout');
});
$grid.imagesLoaded(function(){
$grid.masonry('layout');
});
}
// // bind event
// // $grid.masonry( 'on', 'layoutComplete', function() {
// // console.log('layout is complete');
// // });
//
// // layout Masonry after each image loads
// $grid.imagesLoaded().progress( function() {
// $grid.masonry('layout');
// });
//
// $grid.imagesLoaded(function(){
// $grid.masonry('layout');
// });
// }
// __ __ _ _
// | \/ |___ __| |__ _| |___