|
@@ -1401,12 +1401,17 @@
|
|
// | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
|
|
// | _/ '_/ _ \/ _` | || / _| _| / _ \ ' \(_-<
|
|
// |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/
|
|
// |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/
|
|
function initProductions(){
|
|
function initProductions(){
|
|
- // console.log('theme : initProductions');
|
|
|
|
|
|
+ console.log('theme : initProductions');
|
|
|
|
+
|
|
|
|
+ _$row.find('.col').addClass('offfield');
|
|
|
|
+
|
|
var $grid = $('.grid',_$row).masonry({
|
|
var $grid = $('.grid',_$row).masonry({
|
|
itemSelector:'.col',
|
|
itemSelector:'.col',
|
|
columnWidth:'.col-2',
|
|
columnWidth:'.col-2',
|
|
horizontalOrder: true,
|
|
horizontalOrder: true,
|
|
containerStyle: null,
|
|
containerStyle: null,
|
|
|
|
+ transitionDuration:0,//'0.2s',
|
|
|
|
+ // stagger:30,
|
|
// disable initial layout
|
|
// disable initial layout
|
|
// initLayout: false,
|
|
// initLayout: false,
|
|
});
|
|
});
|
|
@@ -1422,9 +1427,25 @@
|
|
|
|
|
|
$grid.imagesLoaded(function(){
|
|
$grid.imagesLoaded(function(){
|
|
$grid.masonry('layout');
|
|
$grid.masonry('layout');
|
|
|
|
+ // checkProductionBlockVisible();
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ $grid.on('layoutComplete', checkProductionBlockVisible);
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ function checkProductionBlockVisible(e,items){
|
|
|
|
+ console.log('checkProductionBlockVisible', e, items);
|
|
|
|
+ for (var i in items) {
|
|
|
|
+ if(!items[i].isTransitioning){
|
|
|
|
+ if(items[i].position.y+items[i].size.outerHeight < _$row.height()){
|
|
|
|
+ $(items[i].element).removeClass('offfield');
|
|
|
|
+ }else{
|
|
|
|
+ $(items[i].element).addClass('offfield');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
// ___ _ _ _
|
|
// ___ _ _ _
|
|
// | __|_ _ _ _ ___ __ _(_)__| |_ _ _ ___ _ __ ___ _ _| |_
|
|
// | __|_ _ _ _ ___ __ _(_)__| |_ _ _ ___ _ __ ___ _ _| |_
|
|
// | _|| ' \| '_/ -_) _` | (_-< _| '_/ -_) ' \/ -_) ' \ _|
|
|
// | _|| ' \| '_/ -_) _` | (_-< _| '_/ -_) ' \/ -_) ' \ _|
|
|
@@ -1528,24 +1549,6 @@
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
- // _ _ _
|
|
|
|
- // | || |___| |_ __ ___ _ _ ___
|
|
|
|
- // | __ / -_) | '_ \/ -_) '_(_-<
|
|
|
|
- // |_||_\___|_| .__/\___|_| /__/
|
|
|
|
- // |_|
|
|
|
|
-
|
|
|
|
- // https://plainjs.com/javascript/utilities/set-cookie-get-cookie-and-delete-cookie-5/
|
|
|
|
- // function getCookie(name) {
|
|
|
|
- // var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
|
|
|
|
- // return v ? v[2] : null;
|
|
|
|
- // }
|
|
|
|
- // function setCookie(name, value, days) {
|
|
|
|
- // var d = new Date;
|
|
|
|
- // d.setTime(d.getTime() + 24*60*60*1000*days);
|
|
|
|
- // document.cookie = name + "=" + value + ";path=/;expires=" + d.toGMTString();
|
|
|
|
- // }
|
|
|
|
- // function deleteCookie(name) { setCookie(name, '', -1); }
|
|
|
|
-
|
|
|
|
init();
|
|
init();
|
|
} // end EdlpTheme()
|
|
} // end EdlpTheme()
|
|
|
|
|