// checkout-free.el -- Free plan: reveal payment section after auth completes. // Watches the auth-badge element; when it becomes visible, shows payment-section. // Compiled with: elc --target=js --bundle --minify --obfuscate fn main() -> Void { native_js("(function() { var pay = document.getElementById('payment-section'); if (!pay) return; var timer = setInterval(function() { var badge = document.getElementById('auth-badge'); if (badge && badge.offsetParent !== null) { pay.style.display = ''; clearInterval(timer); } }, 150); })()") }