|
@@ -38,6 +38,8 @@
|
|
|
|
|
|
initHistory();
|
|
|
|
|
|
+ // initHome();
|
|
|
+
|
|
|
// if(!drupalSettings.path.isFront)
|
|
|
// return;
|
|
|
//
|
|
@@ -120,7 +122,7 @@
|
|
|
var $audioplayer = $("#audio-player");
|
|
|
if($audioplayer.length){
|
|
|
var navpos = $('#block-mainnavigation').position();
|
|
|
- console.log('navpos', navpos);
|
|
|
+ // console.log('navpos', navpos);
|
|
|
if(typeof navpos != 'undefined'){
|
|
|
$audioplayer.css({
|
|
|
'width':navpos.left+'px'
|
|
@@ -1490,23 +1492,19 @@
|
|
|
// |_| |_| \___/\__,_|\_,_\__|\__|_\___/_||_/__/
|
|
|
function initProductions(){
|
|
|
console.log('theme : initProductions');
|
|
|
-
|
|
|
- _$row.find('.col').addClass('offfield');
|
|
|
-
|
|
|
+ return;
|
|
|
+ // _$row.find('.col').addClass('offfield');
|
|
|
var $grid = $('.grid',_$row).masonry({
|
|
|
itemSelector:'.col',
|
|
|
columnWidth:'.col-2',
|
|
|
- horizontalOrder: true,
|
|
|
containerStyle: null,
|
|
|
+ resizeContainer:false,
|
|
|
+ // horizontalOrder: true,
|
|
|
transitionDuration:0,//'0.2s',
|
|
|
// stagger:30,
|
|
|
// disable initial layout
|
|
|
// initLayout: false,
|
|
|
});
|
|
|
- // bind event
|
|
|
- // $grid.masonry( 'on', 'layoutComplete', function() {
|
|
|
- // console.log('layout is complete');
|
|
|
- // });
|
|
|
|
|
|
// layout Masonry after each image loads
|
|
|
$grid.imagesLoaded().progress( function() {
|
|
@@ -1518,17 +1516,23 @@
|
|
|
// checkProductionBlockVisible();
|
|
|
});
|
|
|
|
|
|
- $grid.on('layoutComplete', checkProductionBlockVisible);
|
|
|
+ // bind event
|
|
|
+ // $grid.masonry( 'on', 'layoutComplete', function() {
|
|
|
+ // console.log('layout is complete');
|
|
|
+ // });
|
|
|
+ // $grid.on('layoutComplete', checkProductionBlockVisible);
|
|
|
};
|
|
|
|
|
|
function checkProductionBlockVisible(e,items){
|
|
|
console.log('checkProductionBlockVisible', e, items);
|
|
|
for (var i in items) {
|
|
|
if(!items[i].isTransitioning){
|
|
|
+ console.log('y+outerHeight', items[i].position.y+items[i].size.outerHeight);
|
|
|
+ console.log('_$row.height()', _$row.height());
|
|
|
if(items[i].position.y+items[i].size.outerHeight < _$row.height()){
|
|
|
$(items[i].element).removeClass('offfield');
|
|
|
}else{
|
|
|
- $(items[i].element).addClass('offfield');
|
|
|
+ // $(items[i].element).addClass('offfield');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1595,7 +1599,8 @@
|
|
|
|
|
|
function initHome(){
|
|
|
addCloseModalBtnToCols();
|
|
|
- // console.log('theme : initHome');
|
|
|
+ return;
|
|
|
+ console.log('theme : initHome');
|
|
|
// console.log('theme : initProductions');
|
|
|
var $grid = $('.grid',_$row).masonry({
|
|
|
itemSelector:'.col',
|