Skip to content Skip to footer
February 2026
March 2026
No event found!
(function($){ var SELS = [ '#uc_post_carousel_elementor_cf509e8', '#uc_post_carousel_elementor_5a61deb' ]; function firstRealItemWidth(sel){ var el = document.querySelector(sel + ' .owl-item:not(.cloned)') || document.querySelector(sel + ' .owl-item'); return el ? el.getBoundingClientRect().width : null; } function fixIfBad(sel){ var $owl = $(sel); if (!$owl.length || !$owl.hasClass('owl-loaded')) return; var w = firstRealItemWidth(sel); // your broken state is ~48px, so this is a safe threshold if (w && w < 120) { $owl.trigger('invalidate.owl.carousel'); $owl.trigger('refresh.owl.carousel'); } } function attach(sel){ var $owl = $(sel); if (!$owl.length) return; // When Owl finishes initialising, immediately sanity-check width $owl.on('initialized.owl.carousel', function(){ setTimeout(function(){ fixIfBad(sel); }, 0); setTimeout(function(){ fixIfBad(sel); }, 150); setTimeout(function(){ fixIfBad(sel); }, 600); }); // Also check after any refresh/resizing Owl does itself $owl.on('refreshed.owl.carousel resized.owl.carousel', function(){ setTimeout(function(){ fixIfBad(sel); }, 0); }); } function boot(){ SELS.forEach(attach); // Safety net: UE sometimes initialises late; keep checking longer for first-time visitors var tries = 0, maxTries = 200; // 20 seconds var t = setInterval(function(){ tries++; SELS.forEach(fixIfBad); var ok = SELS.every(function(sel){ var w = firstRealItemWidth(sel); return (w === null) || (w >= 120); }); if (ok || tries >= maxTries) clearInterval(t); }, 100); } // start as early as possible $(boot); window.addEventListener('pageshow', function(){ setTimeout(boot, 0); }); })(jQuery);