Skip to content

Commit

Permalink
Merge pull request #835 from neiesc/834-migrate-from-calendly-to-calcom
Browse files Browse the repository at this point in the history
add cal.com
  • Loading branch information
neiesc committed Sep 7, 2023
2 parents 3e438d2 + dcea1d8 commit b096546
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/shared/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@
});
</script>

<!-- Calendly badge widget begin -->
<link href="https://assets.calendly.com/assets/external/widget.css" rel="stylesheet">
<script src="https://assets.calendly.com/assets/external/widget.js" type="text/javascript" async></script>
<script type="text/javascript">window.onload = function() { Calendly.initBadgeWidget({ url: 'https://calendly.com/edineidev', text: 'Agendar mentoria', color: '#0069ff', textColor: '#ffffff', branding: true }); }</script>
<!-- Calendly badge widget end -->
<!-- Cal floating-popup embed code begins -->
<script type="text/javascript">
(function (C, A, L) { let p = function (a, ar) { a.q.push(ar); }; let d = C.document; C.Cal = C.Cal || function () { let cal = C.Cal; let ar = arguments; if (!cal.loaded) { cal.ns = {}; cal.q = cal.q || []; d.head.appendChild(d.createElement("script")).src = A; cal.loaded = true; } if (ar[0] === L) { const api = function () { p(api, arguments); }; const namespace = ar[1]; api.q = api.q || []; typeof namespace === "string" ? (cal.ns[namespace] = api) && p(api, ar) : p(cal, ar); return; } p(cal, ar); }; })(window, "https://app.cal.com/embed/embed.js", "init");
Cal("init", {origin:"https://cal.com"});
Cal("floatingButton", {"calLink":"edineidev/30min","config":{"layout":"month_view"},"buttonPosition":"bottom-left","buttonText":"Vamos conversar?"});
Cal("ui", {"styles":{"branding":{"brandColor":"#000000"}},"hideEventTypeDetails":false,"layout":"month_view"});
</script>
<!-- Cal floating-popup embed code ends -->

0 comments on commit b096546

Please sign in to comment.