1equalWideBlockHeight = function(){ 2 if($('.wide-block').length) //sliceheight for wide block 3 { 4 if(window.matchMedia('(min-width: 768px)').matches) 5 { 6 $('.wide-block').each(function(){ 7 $(this).css('height', ''); 8 var _this = $(this), 9 parent_block = _this.closest('.blog_items'), 10 block_height = _this.actual('outerHeight', { includeMargin : true })-1, 11 margin = parseInt($('.wide-block').css('margin-bottom')), 12 equal_height = 0; 13 14 if(parent_block.find('.col-item').length) 15 { 16 parent_block.find('.col-item').each(function(){ 17 equal_height += $(this).find('.item').actual('outerHeight', { includeMargin : true }); 18 }) 19 if(equal_height) 20 { 21 equal_height -= margin; 22 if(equal_height >= block_height) 23 _this.css('height', equal_height); 24 else 25 { 26 equal_height += margin; 27 var last_item = parent_block.find('.col-item:last-child .item'); 28 last_item.css('height', (last_item.actual('outerHeight') + (block_height - equal_height))); 29 } 30 } 31 } 32 }) 33 } 34 else 35 { 36 $('.wide-block').css('height', ''); 37 $('.col-item .item').css('height', ''); 38 } 39 } 40} 41equalWideBlockHeight(); 42BX.addCustomEvent('onWindowResize', function(eventdata) { 43 try{ 44 ignoreResize.push(true); 45 equalWideBlockHeight(); 46 } 47 catch(e){} 48 finally{ 49 ignoreResize.pop(); 50 } 51}); 52BX.addCustomEvent('onCompleteAction', function(eventdata){ 53 if(eventdata.action === 'ajaxContentLoaded') 54 { 55 setTimeout(function(){ 56 equalWideBlockHeight(); 57 }, 100); 58 } 59});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.