Meg Raiano

jQuery(document).ready(function ($) { $('body:not(.home).page .entry-content .section-page-footer .section_wrapper').append('
CLICK HERE FORMOVE-IN OFFERS
'); $(window).on('load resize orientationchange', function () { $('.tab-ref a.vc_single_image-wrapper').each(function (i, el) { if (i !== 0) { $(this).addClass('inactive'); } $caption = $(this).parent().find('.vc_figure-caption'); $capClone = $caption.clone(); $capClone.appendTo($(this)); $caption.remove(); }); $('.vc_tta-panel').each(function (i) { if ($(this).hasClass('vc_active')) { $(this).show(0); } else { $(this).hide(0); } $(this).find('.vc_tta-panel-body').css({ 'height': 'auto', 'display': 'block', }); }); $('.tab-ref a.vc_single_image-wrapper').click(function (e) { var activeTab = $(this).attr('href'); if ($(this).hasClass('inactive')) { $('.tab-ref').find('a.vc_single_image-wrapper').addClass('inactive'); $(this).removeClass('inactive'); $('.vc_tta-panel').fadeOut(0); $('.vc_tta-panel').removeClass('vc_active'); $(activeTab).find('.vc_tta-panel-body').show('slow'); $(activeTab).addClass('vc_active'); $(activeTab).fadeIn(500); } if( $(window).width() > 767) { e.preventDefault(); } else { //Scroll to link } }); }); });