fix: wire Book Meeting (nav + hero) and Request scoped help to calendar modal

This commit is contained in:
oliver
2026-05-05 18:04:37 -03:00
parent 43d66fd295
commit 966441e6aa
+11 -6
View File
@@ -2508,8 +2508,8 @@
</div> </div>
<div class="nav-right"> <div class="nav-right">
<a <a
class="nav-cta-book plausible-event-name=Meeting" class="nav-cta-book open-cal plausible-event-name=Meeting"
href="#story" href="#"
>Book Meeting</a >Book Meeting</a
> >
<div class="nav-chat" id="nav-chat"> <div class="nav-chat" id="nav-chat">
@@ -2875,8 +2875,8 @@
style="margin-top: auto; justify-content: flex-end" style="margin-top: auto; justify-content: flex-end"
> >
<a <a
class="btn-secondary plausible-event-name=Meeting" class="btn-secondary open-cal plausible-event-name=Meeting"
href="#pricing" href="#"
>Book Meeting</a >Book Meeting</a
> >
</div> </div>
@@ -3095,7 +3095,7 @@
stack and can ship practical improvements without drama. stack and can ship practical improvements without drama.
</p> </p>
<a <a
class="custom-link open-modal plausible-event-name=Trial" class="custom-link open-cal plausible-event-name=Meeting"
href="#" href="#"
>Request scoped help &#8594;</a >Request scoped help &#8594;</a
> >
@@ -4492,7 +4492,12 @@
setTimeout(function () { calIframe.src = ''; }, 300); setTimeout(function () { calIframe.src = ''; }, 300);
} }
if (schedBtn) schedBtn.addEventListener('click', openCal); document.querySelectorAll('.open-cal').forEach(function (el) {
el.addEventListener('click', function (e) {
e.preventDefault();
openCal();
});
});
if (calClose) calClose.addEventListener('click', closeCal); if (calClose) calClose.addEventListener('click', closeCal);
if (calOverlay) { if (calOverlay) {
calOverlay.addEventListener('click', function (e) { calOverlay.addEventListener('click', function (e) {