From aa367ecd0a81085fd41289456ef661a47f282a64 Mon Sep 17 00:00:00 2001 From: justin Date: Tue, 28 Apr 2026 04:08:35 -0500 Subject: [PATCH] Fix JS syntax error in CTA button: style= was outside string literal The replace_all for orange button styling put `style="..."` after the className assignment as bare JS, causing `Unexpected identifier 'style'` which killed the entire enhancement script (no toggles, no CTA). Co-Authored-By: Claude Opus 4.6 (1M context) --- site/public/tools/fcc-compliance-check/index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/public/tools/fcc-compliance-check/index.html b/site/public/tools/fcc-compliance-check/index.html index 52ba720..bb90520 100644 --- a/site/public/tools/fcc-compliance-check/index.html +++ b/site/public/tools/fcc-compliance-check/index.html @@ -490,7 +490,8 @@ Send reset link if (btn && newCount > 0) { var link = document.createElement("a"); link.href = newUrl; - link.className = "inline-block px-6 py-2.5 font-semibold rounded-lg transition-colors text-sm shadow-lg" style="background:#f97316;color:#fff;padding:10px 24px"; + link.className = "inline-block px-6 py-2.5 font-semibold rounded-lg transition-colors text-sm shadow-lg"; + link.style.cssText = "background:#f97316;color:#fff;padding:10px 24px"; link.textContent = "Get Started \u2014 Fix " + newCount + " Item" + (newCount > 1 ? "s" : ""); btn.replaceWith(link); } else if (btn) {