function toggleMobileClass(){768>=jQuery(window).width()?jQuery("body").addClass("tribe-mobile"):jQuery("body").removeClass("tribe-mobile")}jQuery(document).ready(function(){var e,t=jQuery(".tribe-events-nav-previous").length?jQuery(".tribe-events-nav-previous").html().trim():"",i=jQuery(".tribe-events-nav-previous").length?jQuery(".tribe-events-nav-previous").html().trim():"";jQuery(".tribe-ticket-quantity, .tribe-tickets-quantity").addClass("qty").wrap('<div class="quantity"></div>'),jQuery(".tribe-events-tickets-rsvp").find(".quantity input").on("change",function(){setTimeout(function(){calcSelectArrowDimensions()},100)}),t.length||i.length||jQuery(".tribe-events-sub-nav").parent("#tribe-events-footer").hide(),jQuery(".fusion-tribe-has-featured-image").each(function(){var e=jQuery(this).parent().height();jQuery(this).find(".tribe-events-event-image").css("height",e)}),jQuery(window).on("resize",function(){var e;jQuery(".fusion-tribe-has-featured-image").each(function(){jQuery(this).find(".tribe-events-event-image").css("height","auto"),e=jQuery(this).parent().height(),jQuery(this).find(".tribe-events-event-image").css("height",e)})}),jQuery("body").hasClass("avada-ec-views-v2")&&jQuery(window).on("resize",function(){clearTimeout(e),e=setTimeout(toggleMobileClass,200)})}),jQuery(document).ajaxComplete(function(){var e,t;(jQuery("body").hasClass("events-archive")||jQuery("body").find(".tribe-events-shortcode .fusion-blog-layout-grid").length)&&(e=jQuery(this).parents("#tribe-events").length?jQuery(this):jQuery("#tribe-events .fusion-blog-layout-grid"),(t=e.find(".post")).each(function(){jQuery(this).find(".fusion-post-slideshow").flexslider(),jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()}),e.css("height",e.height()),t.hide(),imagesLoaded(t,function(){e.css("height",""),t.fadeIn(),e.isotope(),jQuery(window).trigger("resize",!1),jQuery('[data-spy="scroll"]').each(function(){jQuery(this).scrollspy("refresh")})})),jQuery("body").hasClass("events-archive")&&(jQuery(".fusion-tribe-has-featured-image").each(function(){var e=jQuery(this).parent().height();jQuery(this).find(".tribe-events-event-image").css("height",e)}),jQuery(".fusion-page-title-bar h1").length&&(jQuery("#tribe-events-header").length?jQuery(".fusion-page-title-bar h1").html(jQuery("#tribe-events-header").data("viewtitle")):jQuery(".tribe-events-page-title").length&&jQuery(".fusion-page-title-bar h1").html(jQuery(".tribe-events-page-title").html())))}),jQuery(window).on("load",function(){jQuery(".tribe_events_filters_close_filters, .tribe_events_filters_show_filters").on("click",function(){var e=jQuery(this);setTimeout(function(){jQuery(e).parents("#tribe-events-content-wrapper").find(".fusion-blog-layout-grid").isotope()})})});