imporved home display (masonry) and fixed visibility of production footer menu

This commit is contained in:
Bachir Soussi Chiadmi
2018-03-28 12:03:04 +02:00
parent 0bf219cf35
commit 4b986903cb
4 changed files with 82 additions and 30 deletions
@@ -31,7 +31,7 @@
}
if(_$body.is('.path-frontpage')){
addCloseBtnToCols();
initHome();
}
// initScrollbars();
@@ -859,6 +859,27 @@
};
// _ _
// | || |___ _ __ ___
// | __ / _ \ ' \/ -_)
// |_||_\___/_|_|_\___|
function initHome(){
addCloseBtnToCols();
console.log('theme : initProductions');
var $grid = $('.row', _$row).masonry({
itemSelector:'.col',
columnWidth:'.col-2'
});
// layout Masonry after each image loads
$grid.imagesLoaded().progress( function() {
$grid.masonry('layout');
});
}
// ___ _ _ _
// | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
// | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<