imporved home display (masonry) and fixed visibility of production footer menu
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
// ___ _ _ _
|
||||
// | _ \_ _ ___ __| |_ _ __| |_(_)___ _ _ ___
|
||||
// | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
|
||||
|
||||
Reference in New Issue
Block a user