function fixSpotLineBanner() { function i() { var i = $("#spot-line-div").width(); $(".spot-line-item iframe").each(function t(e, s) { var n = $(s).closest(".spot-line-item").height(), r = $(s).closest(".spot-line-item").width(), a = r/300; if (a < 1) { $(s).css({ transform: "scale(" + a + ")", transformOrigin: "top left", width: (1/a*r) + "px", height: "100px", maxWidth: "fit-content", maxHeight: "fit-content" }) } else if (a > 1) { $(s).css({ transform: "scale(" + a + ")", transformOrigin: "top left", width: (1/a*r) + "px", height: "100px", maxWidth: "fit-content", maxHeight: "fit-content" }) } $(s).closest(".spot-line-item").css({ height: "" + (r/3) + "px", }); }) } $(".spot-line-item iframe").length && (i(), setTimeout(i, 500), setTimeout(i, 1e3), $(window).on("resize", function() { i() }), $(window).on("scroll", function() { i() })) } if (typeof jQuery === 'undefined') { var script = document.createElement('script'); script.src = 'https://code.jquery.com/jquery-3.6.0.min.js'; script.onload = function() { fixSpotLineBanner(); }; document.head.appendChild(script); } else {fixSpotLineBanner();}