$('
Upcoming Getaway Adventures
View All Getaway Adventures
').appendTo('#upcoming_getaways');(function(){ $('.trip-info-body').each( function(index){var a = $(this).height(); if(a>100){ var ele = $('▾ More Info
').addClass('expand-post-'+index).click(function(){showFull('post-'+index);});$(this).css('maxHeight','100px');$(this).css('overflow','hidden');$(this).attr('id','post-'+index);$(this).after(ele);$(this).addClass('overflow-shadow-inset');}});})();function showFull(ele){ $('.expand-'+ele).remove(); $('#'+ele).removeClass('overflow-shadow-inset').css('maxHeight','1000px'); };