(function () { var MKT_SIGNUP_URL = "https://www.acmiworld.com/sign-up/"; var MKT_BTN_LABEL = "Marketplace sign up"; var HERO_BTN_LABEL = "Sign up to the marketplace"; var NL_HEADING = "Get the ACMIWORLD newsletter"; var NL_SUBHEAD = "Free aviation intelligence, ACMI and aircraft leasing briefs delivered to your inbox."; var NL_BTN_LABEL = "Subscribe to newsletter"; if (!document.getElementById("acmi-cta-split-css")) { var st = document.createElement("style"); st.id = "acmi-cta-split-css"; st.textContent = [ "#gh-navigation .gh-navigation-members a.gh-button,", "#gh-navigation a.acmi-signup-btn {", " display: inline-flex !important;", " align-items: center !important;", " justify-content: center !important;", " box-sizing: border-box !important;", " min-height: 44px !important;", " padding: 10px 18px !important;", " background: #0F4C81 !important;", " color: #FFFFFF !important;", " border: 0 !important;", " border-radius: 8px !important;", " font-size: 14px !important;", " font-weight: 700 !important;", " line-height: 1 !important;", " letter-spacing: 0 !important;", " text-decoration: none !important;", " white-space: nowrap !important;", " box-shadow: 0 2px 8px rgba(15, 76, 129, 0.28) !important;", " opacity: 1 !important;", " transform: none !important;", " width: auto !important;", "}", "#gh-navigation .gh-navigation-members a.gh-button:hover,", "#gh-navigation .gh-navigation-members a.gh-button:focus-visible,", "#gh-navigation a.acmi-signup-btn:hover,", "#gh-navigation a.acmi-signup-btn:focus-visible {", " background: #082F52 !important;", " color: #FFFFFF !important;", "}", "@media (min-width: 768px) {", " #gh-navigation a.acmi-signup-btn { display: none !important; }", "}", "@media (max-width: 767px) {", " #gh-navigation .gh-navigation-brand {", " grid-template-columns: 1fr auto auto auto !important;", " gap: 6px !important;", " }", " #gh-navigation a.acmi-signup-btn {", " display: inline-flex !important;", " min-height: 38px !important;", " padding: 7px 12px !important;", " font-size: 13px !important;", " z-index: 2 !important;", " }", " #gh-navigation.is-open .gh-navigation-members a.gh-button {", " width: 100% !important;", " min-height: 48px !important;", " padding: 12px 16px !important;", " font-size: 16px !important;", " }", "}", "@media (max-width: 410px) {", " #gh-navigation .gh-navigation-logo img { max-height: 28px !important; }", " #gh-navigation a.acmi-signup-btn {", " min-height: 36px !important;", " padding: 6px 10px !important;", " font-size: 12px !important;", " }", "}", "@media (min-width: 601px) {", " .gh-footer-signup form.gh-form .gh-form-input { padding-right: 245px !important; }", " .gh-footer-signup form.gh-form .gh-button { padding-left: 18px !important; padding-right: 18px !important; white-space: nowrap !important; }", "}", "@media (max-width: 600px) {", " .gh-footer-signup form.gh-form {", " display: flex !important;", " flex-direction: column !important;", " height: auto !important;", " gap: 10px !important;", " background: transparent !important;", " border: 0 !important;", " border-radius: 0 !important;", " box-shadow: none !important;", " padding: 0 !important;", " }", " .gh-footer-signup form.gh-form .gh-form-input {", " position: static !important;", " width: 100% !important;", " height: 52px !important;", " padding: 0 20px !important;", " background: #F4F6F8 !important;", " border: 1px solid #DCE6EF !important;", " border-radius: 999px !important;", " }", " .gh-footer-signup form.gh-form .gh-button {", " position: static !important;", " width: 100% !important;", " height: 48px !important;", " justify-content: center !important;", " }", "}" ].join("\n"); (document.head || document.documentElement).appendChild(st); } function updateHeaderMarketplaceBtn() { var header = document.getElementById("gh-navigation"); if (!header) return; var orig = header.querySelector(".gh-navigation-members a.gh-button"); if (orig) { orig.setAttribute("href", MKT_SIGNUP_URL); orig.removeAttribute("data-portal"); orig.textContent = MKT_BTN_LABEL; orig.classList.add("acmi-mkt-header-btn"); var brand = header.querySelector(".gh-navigation-brand"); if (brand) { var mobileBtn = brand.querySelector("a.acmi-signup-btn"); if (!mobileBtn) { mobileBtn = orig.cloneNode(true); mobileBtn.classList.add("acmi-signup-btn"); var burger = brand.querySelector(".gh-burger"); if (burger) brand.insertBefore(mobileBtn, burger); else brand.appendChild(mobileBtn); } mobileBtn.setAttribute("href", MKT_SIGNUP_URL); mobileBtn.removeAttribute("data-portal"); mobileBtn.textContent = MKT_BTN_LABEL; } } } function updateHomeHeroBtn() { var heroBtn = document.querySelector('#acmi-home-hero a.acmi-home-hero-btn-primary[href*="/sign-up"]'); if (heroBtn && heroBtn.textContent.trim() === "Sign up") { heroBtn.textContent = HERO_BTN_LABEL; } } function updateNewsletterSection() { var sec = document.querySelector("section.gh-footer-signup"); if (sec) { var h = sec.querySelector(".gh-footer-signup-header"); if (h) h.textContent = NL_HEADING; var sub = sec.querySelector(".gh-footer-signup-subhead"); if (sub) sub.textContent = NL_SUBHEAD; } document.querySelectorAll('form[data-members-form] button.gh-button').forEach(function (btn) { btn.setAttribute("aria-label", NL_BTN_LABEL); var inner = btn.querySelector("span > span"); if (inner) { var t = (inner.textContent || "").trim(); if (t === "Subscribe" || t === "Sign up" || t === "") { inner.textContent = NL_BTN_LABEL; } } }); document.querySelectorAll('a[data-portal="signup"], a[href*="#/portal/signup"]').forEach(function (a) { if (a.closest && a.closest("#gh-navigation")) return; var t = (a.textContent || "").trim(); if (t === "Subscribe" || t === "Sign up" || t === "Become a Subscriber" || t === "Become a Subscriber →") { a.textContent = t.indexOf("→") !== -1 ? (NL_BTN_LABEL + " →") : NL_BTN_LABEL; } }); } function updateFooterMarketplaceLinks() { document.querySelectorAll('.gh-footer-menu a[href*="/sign-up"], #acmi-seo-footer .acmi-bottom-links a[href*="/sign-up"]').forEach(function (a) { var t = (a.textContent || "").trim(); if (t === "Sign up") { a.textContent = MKT_BTN_LABEL; } }); } function runAll() { updateHeaderMarketplaceBtn(); updateHomeHeroBtn(); updateNewsletterSection(); updateFooterMarketplaceLinks(); } runAll(); if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", runAll); } var ticks = 0; var timer = setInterval(function () { runAll(); ticks += 1; if (ticks >= 20) clearInterval(timer); }, 150); })();