546
edits
No edit summary |
No edit summary |
||
Line 242: | Line 242: | ||
} | } | ||
} | } | ||
function align_mp_box(){ | |||
$('.mp-box').each(function(index){ | |||
if(index%2 === 0) { | |||
return; | |||
} | |||
var that = $('.mp-box').eq(index-1); | |||
var that_height = that.outerHeight(); | |||
var this_height = $(this).outerHeight(); | |||
if(this_height > that_height) { | |||
that.css('min-height', this_height); | |||
} else { | |||
$(this).css('min-height', that_height); | |||
} | |||
}); | |||
} | |||
var mp_y_item_h = 50; | |||
$('.mp-yadbood-item').each(function(){ | |||
if($(this).height() > mp_y_item_h){ | |||
mp_y_item_h = $(this).height(); | |||
} | |||
}); | |||
$('.mp-yadbood-item').height(mp_y_item_h); | |||
$( createNavigationBarToggleButton ); | $( createNavigationBarToggleButton ); | ||
$(document).ready(function(){ | |||
align_mp_box(); | |||
}); | |||
$(window).on('load', function(){ | $(window).on('load', function(){ | ||
align_mp_box(); | |||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||
Line 254: | Line 287: | ||
ga('send', 'pageview'); | ga('send', 'pageview'); | ||
}) | }) | ||
$(window).on('resize', function(){ | |||
align_mp_box(); | |||
}); |