What Stage is Your Accessory Dwelling Unit At?
(function($){
jQuery(window).on('load', function(){
var stagesHeight = $('#mx-stage-sec').outerHeight();
var windowWidth = $(window).width();
if ( windowWidth > 715 && $('.fusion-blog-archive .post:nth-child(5)').length ) {
$('.fusion-blog-archive .post:nth-child(5),.fusion-blog-archive .post:nth-child(6)').css('padding-top', stagesHeight + 80);
} else if ( $('.fusion-blog-archive .post:nth-child(5)').length ) {
$('.fusion-blog-archive .post:nth-child(5)').css('padding-top', stagesHeight + 80);
} else {
$('.fusion-blog-archive .post:last-child').css('margin-bottom', stagesHeight + 80);
}
setTimeout(function(){
var articleTop = $('.fusion-blog-archive .post:nth-child(4)').length ? $('.fusion-blog-archive .post:nth-child(4)').offset().top+$('.fusion-blog-archive .post:nth-child(4)').outerHeight() : $('.fusion-blog-archive .post:last-child').offset().top+$('.fusion-blog-archive .post:last-child').outerHeight();
$('#mx-stage-sec').css('top', articleTop);
},1000);
});
})(jQuery);