Fix: remove escaped backticks that broke compliance checker JS
The lead capture template literal used \` (escaped backtick) which passed through Astro's compiler literally, creating an invalid JS token that prevented the entire script from executing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
397e006321
commit
5a07335b2f
1 changed files with 3 additions and 3 deletions
|
|
@ -915,10 +915,10 @@ import Base from "../../layouts/Base.astro";
|
|||
</div>`;
|
||||
|
||||
// Lead capture for people not ready to buy
|
||||
html += \`<div style="margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb;">
|
||||
html += `<div style="margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb;">
|
||||
<div style="background:#f0f4f8;border-radius:10px;padding:16px;text-align:center;">
|
||||
<p style="font-size:13px;font-weight:600;color:#1e3a5f;margin:0 0 4px;">Not ready yet? Get your compliance report emailed to you.</p>
|
||||
<p style="font-size:11px;color:#64748b;margin:0 0 12px;">We'll send a detailed breakdown of what needs to be fixed — free, no obligation.</p>
|
||||
<p style="font-size:11px;color:#64748b;margin:0 0 12px;">We will send a detailed breakdown of what needs to be fixed - free, no obligation.</p>
|
||||
<div style="display:flex;gap:8px;max-width:400px;margin:0 auto;">
|
||||
<input type="email" id="lead-email" placeholder="Your email address" style="flex:1;border:1px solid #cbd5e1;border-radius:6px;padding:8px 12px;font-size:13px;" />
|
||||
<button type="button" id="lead-submit-btn" style="background:#1e3a5f;color:#fff;font-weight:600;padding:8px 16px;border-radius:6px;border:none;cursor:pointer;font-size:12px;white-space:nowrap;">
|
||||
|
|
@ -927,7 +927,7 @@ import Base from "../../layouts/Base.astro";
|
|||
</div>
|
||||
<p id="lead-status" style="font-size:11px;margin-top:6px;display:none;"></p>
|
||||
</div>
|
||||
</div>\``;
|
||||
</div>`;
|
||||
|
||||
ctaContent.innerHTML = html;
|
||||
paymentIcons.classList.remove("hidden");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue